Compiling Libraries and Design Files with the QuestaSim Software |
If your design contains the alt2gxb megafunction, type the following commands at the QuestaSim prompt:
vlib lpm vlib altera vlib sgate vmap lpm work vmap altera work vmap sgate work vcom -worklpm<path to library>/ 220pack.vhd vcom-work lpm <path to library>/220model.vhd vcom -work sgate <path to library>/ sgate_pack.vhd vcom -work sgate<path to library>/sgate.vhd vcom -work stratixiigx_gxb<path to library>/stratixiigx_hssi_atoms.vhd.vhd vcom -work stratixiigx_gxb<path to library>/stratixiigx_hssi_components.vhd
or, for a design targeting a StratixIV GX device:
vcom -work stratixivgx_gxb <path to library>/stratixivgx_hssi_atoms.vhd.vhd vcom -work stratixivgx_gxb <path to library>/stratixivgx_hssi_components.vhd
To compile the device-specific simulation models, VHDL Output File, and test bench file (if you are using one), type the following commands at the QuestaSim prompt:
vcom -work work <path to library>/<device family> _components.vhd vcom -work work <path to library>/<device family>_atoms.vhd vcom -work work <design name>.vho vcom -work work <test bench>.vhd
To compile the device-specific simulation models, Verilog Output File, and test bench file (if you use one), type the following commands at the QuestaSim prompt:
vlog -work work <path to library>/<device family> _atoms.v vlog -work work <design name>.vo vlog -work work <test bench>.v
Copyright© 2015 Altera Corporation. All rights reserved. ALTERA, ARRIA, CYCLONE, HARDCOPY, MAX, MEGACORE, NIOS, QUARTUS, STRATIX, and all other brands, unless noted otherwise, and/or trademarks of Altera Corporation in the U.S. and other countries.