Answers Database
MODELSIM (MTI): How to compile the 2.1 Simprim, LogiBLOX, Unisim, and Coregen HDL libraries?Record #2561
Product Family: Software VHDL_DESTN - Location for compiled VHDL libraries set VHDL_DESTN [file join $MODEL_TECH/xilinx/vhdl] If you want logical library names to be available for all designs, set your MODELSIM environment variable to the location of your master .ini file, e.g.: setenv MODELSIM $MODEL_TECH/Xilinx/modelsim.ini If MODELSIM is not set when vmap is run, the logical library mapping is done locally, and therefore all vmap commands would have to be run for each new HDL design. For Verilog users, the compilation commands that need to be executed are: SIMPRIM: vlib $VERILOG_DESTN/simprims vmap simprims_ver $VERILOG_DESTN/simprims vlog -work simprims_ver $XILINX/verilog/src/simprims/*.v LogiBLOX: Uses the SIMPRIMS-based library. UNISIM: vlib $VERILOG_DESTN/uni3000 vmap uni3000 $VERILOG_DESTN/uni3000 vlog -work uni3000 $XILINX/verilog/src/uni3000/*.v vlib $VERILOG_DESTN/unisims_ver vmap unisims_ver $VERILOG_DESTN/unisims_ver vlog -work unisims_ver $XILINX/verilog/src/unisims/*.v vlib $VERILOG_DESTN/uni5200 vmap uni5200 $VERILOG_DESTN/uni5200 vlog -work uni5200 $XILINX/verilog/src/uni5200/*.v vlib $VERILOG_DESTN/uni9000 vmap uni9000 $VERILOG_DESTN/uni9000 vlog -work uni9000 $XILINX/verilog/src/uni9000/*.v Note: To refernce these libraries during Verilog simulation, the -L switch must be specified during VSIM execution specifying library name given for the VMAP command. Example for Verilog timing simulation: vlog testbench.v time_sim.v glbl.v vsim -L simprims_ver testbench_module_name glbl For VHDL users, the commands are: SIMPRIM: vlib $VHDL_DESTN/simprim vmap simprim $VHDL_DESTN/simprim vcom -87 -work simprim $XILINX/vhdl/src/simprims/simprim_Vpackage.vhd vcom -87 -work simprim $XILINX/vhdl/src/simprims/simprim_Vcomponents.vhd vcom -87 -work simprim $XILINX/vhdl/src/simprims/simprim_VITAL.vhd LogiBLOX: vlib $VHDL_DESTN/logiblox vmap logiblox $VHDL_DESTN/logiblox vcom -87 -work logiblox $XILINX/vhdl/src/logiblox/mvlutil.vhd vcom -87 -work logiblox $XILINX/vhdl/src/logiblox/mvlarith.vhd vcom -87 -work logiblox $XILINX/vhdl/src/logiblox/logiblox.vhd UNISIM (Versions A1.4 and later): vlib $VHDL_DESTN/unisim vmap unisim $VHDL_DESTN/unisim vcom -87 -work unisim $XILINX/vhdl/src/unisims/unisim_VPKG.vhd vcom -87 -work unisim $XILINX/vhdl/src/unisims/unisim_VCOMP.vhd vcom -87 -work unisim $XILINX/vhdl/src/unisims/unisim_VITAL.vhd vcom -87 -work unisim $XILINX/vhdl/src/unisims/unisim_VCFG4K.vhd vlib $VHDL_DESTN/unisim_5k vmap unisim_5k $VHDL_DESTN/unisim_5k vcom -87 -work unisim_5k $XILINX/vhdl/src/unisims/unisim_VPKG.vhd vcom -87 -work unisim_5k $XILINX/vhdl/src/unisims/unisim_VCOMP52K.vhd vcom -87 -work unisim_5k $XILINX/vhdl/src/unisims/unisim_VITAL.vhd vcom -87 -work unisim_5k $XILINX/vhdl/src/unisims/unisim_VITAL52K.vhd vcom -87 -work unisim_5k $XILINX/vhdl/src/unisims/unisim_VCFG52K.vhd Coregen (Coregen must be installed seperatly from M1): Please see (Xilinx Solution 6037) End of Record #2561 - Last Modified: 11/17/99 11:05 |
For the latest news, design tips, and patch information on the Xilinx design environment, check out the Technical Tips! |