1 # compile technology libraries
2 # if you're using Quartus Web Edition combined with ModelSim-Altera you have
3 # to omit this step. ModelSim-Altera uses its own precompiled Altera technology
6 set SIM_LIBRARY_PATH /opt/altera8.1/quartus/eda/sim_lib
8 if {[file exists cyclonelib]} {
9 vdel -all -lib cyclonelib
13 vmap cycloneii cyclonelib
15 vcom -work cycloneii $SIM_LIBRARY_PATH/cycloneii_atoms.vhd
16 vcom -work cycloneii $SIM_LIBRARY_PATH/cycloneii_components.vhd
18 # end compile technology libraries
21 # create work library directory
24 # map directory to library name "work"
27 # compile gate-level netlist
28 set NETLIST_PATH ../../quartus/simulation/modelsim
30 vcom -work work "$NETLIST_PATH/demo.vho"
33 vcom -work work {../../src/demo_pkg.vhd}
34 vcom -work work demo_tb.vhd
36 # compile configuration file
37 vcom -work work config_post.vhd
40 vsim -t 1ps +transport_int_delays +transport_path_delays -sdftyp /uut=$NETLIST_PATH/demo_vhd.sdo -L cycloneii -L work work.conf
44 # add signals to waveform
45 # add all testbench signals