![]() |
|
![]() |
|
Answers Database
NC-VERILOG: How to compile the 1.5 Verilog Simprims, LogiBLOX, Unisims, and Coregen libraries?
Record #4873
Problem Title: Edit $CDS_INST_DIR/share/local/xilinx/cds.lib to includeDEFINE simprims_ver $XILINX/verilog/data/nc_verilog/simprims DEFINE uni3000 $XILINX/verilog/data/nc_verilog/uni3000 DEFINE uni4000e $XILINX/verilog/data/nc_verilog/uni4000e DEFINE uni4000x $XILINX/verilog/data/nc_verilog/uni4000x DEFINE uni5200 $XILINX/verilog/data/nc_verilog/uni5200 DEFINE unispartan $XILINX/verilog/data/nc_verilog/unispartan DEFINE unispartanxl $XILINX/verilog/data/nc_verilog/unispartanxl DEFINE univirtex $XILINX/verilog/data/nc_verilog/univirtex DEFINE uni9000 $XILINX/verilog/data/nc_verilog/uni9000 Step 2 ------ Create a configuration variables file called hdl.var. The hdl.var file defines variables that determine how the user environment is configured. The variable (LIB_MAP, VIEW_MAP, WORK) are used to specify the search order of the libraries and views when the elaborator resolves instances. If you want the variable settings to be available for all designs, use INCLUDE or SOFTINCLUDE to the location of your master hdl.var file. EX: INCLUDE $CDS_INST_DIR/share/local/xilinx/hdl.var Edit $CDS_INST_DIR/share/local/xilinx/hdl.var SOFTINCLUDE $CDS_INST_DIR/tools/inca/files/hdl.varDEFINE LIB_MAP ( $LIB_MAP, \ $XILINX/verilog/data/nc_verilog/simprims_ver => simprims_ver, \ $XILINX/verilog/data/nc_verilog/uni3000 => uni3000, \ $XILINX/verilog/data/nc_verilog/uni4000e => uni4000e, \ $XILINX/verilog/data/nc_verilog/uni4000x => uni4000x, \ $XILINX/verilog/data/nc_verilog/uni5200 => uni5200, \ $XILINX/verilog/data/nc_verilog/unispartan => unispartan, \ $XILINX/verilog/data/nc_verilog/unispartanxl => unispartanxl, \ $XILINX/verilog/data/nc_verilog/univirtex => univirtex, \ $XILINX/verilog/data/nc_verilog/uni9000 => uni9000)DEFINE VIEW_MAP ( $VIEW_MAP, .vmd => vmd, .v => v) Depending on the family that you're simulating, you must edit the hdl.var file to correctly list the search order of the simulation libraries. Step 3 ------ Parse and analyze the Xilinx simulation libraries using ncvlog. SIMPRIMS -------- ncvlog -messages -work simprims_ver $XILINX/verilog/src/simprims/*.vmd UNISIMS ------- ncvlog -messages -work uni3000 $XILINX/verilog/src/UNI3000/*.v ncvlog -messages -work uni4000e $XILINX/verilog/src/UNI4000E/*.v ncvlog -messages -work uni4000x $XILINX/verilog/src/UNI4000X/*.v ncvlog -messages -work uni5200 $XILINX/verilog/src/UNI5200/*.v ncvlog -messages -work unispartan $XILINX/verilog/src/UNISPARTAN/*.v ncvlog -messages -work unispartanxl $XILINX/verilog/src/UNISPARTANXL/*.v ncvlog -messages -work univirtex $XILINX/verilog/src/UNIVIRTEX/*.v ncvlog -messages -work uni9000 $XILINX/verilog/src/UNI9000/*.v Solution 2: If you are using the UNIX OS, there are scripts availible on the Xilinx FTP site that will compile the Cadence's Affirma NC-Verilog libraries. Verilog: ftp://ftp.xilinx.com/pub/swhelp/cadence/ncv_ver_compile.tar.gz End of Record #4873 - Last Modified: 07/06/99 13:46 |
| For the latest news, design tips, and patch information on the Xilinx design environment, check out the Technical Tips! |