One thing I do rarely is compile Altera libraries for simulation, and when I have to it involves web searching. Anyway, now it is appearing here so I don't have to think about it anymore
This example compiles the altera_mf.v file into a library. Update the path accordingly, as of this moment I am using quartus 11.1. The main thing is paying attention to where altera_mf.v can be found
vlib altera_mf_ver
vmap altera_mf_ver altera_mf_ver
vlog -work altera_mf_ver C:/altera/11.1/quartus/eda/sim_lib/altera_mf.v
Showing posts with label Modelsim. Show all posts
Showing posts with label Modelsim. Show all posts
Wednesday, January 23, 2013
Thursday, August 30, 2012
Xilinx + Modelsim
I keep forgetting how to compile Xilinx libraries and import them into modelsim...so here goes a list
use compxlib from appropriate Xilinx version, select version of modelsim (in my case 10.0d)
--Will output to Xilinx\Ver##\ISE\verilog\modelsim_10dbli
In Modelsim, right click work, add library
DONE
Simulate and include the appropriate libraries as so...
vsim -L SimPrim_Vers10 -L UniMacro_Ver10 -L UniSim_Ver10 -L XilinxCoreLib_Ver10 work.afe_tb work.glbl
Remembering to include the global file glbl
Tada!
use compxlib from appropriate Xilinx version, select version of modelsim (in my case 10.0d)
--Will output to Xilinx\Ver##\ISE\verilog\modelsim_10dbli
In Modelsim, right click work, add library
DONE
Simulate and include the appropriate libraries as so...
vsim -L SimPrim_Vers10 -L UniMacro_Ver10 -L UniSim_Ver10 -L XilinxCoreLib_Ver10 work.afe_tb work.glbl
Remembering to include the global file glbl
Tada!
Subscribe to:
Posts (Atom)