Forum Discussion
Altera_Forum
Honored Contributor
10 years ago --- Quote Start --- You need to add the 'cycloneive_atoms' library to your simulation. In the ModelSim console, or in your tcl script, add:
vlib cycloneive_atoms
vmap cycloneive_atoms ./cycloneive_atoms
vlog -work ./cycloneive_atoms C:/altera/14.1/quartus/eda/sim_lib/cycloneive_atoms.v
vsim -L cycloneive_atoms {your_top_level_test_bench} -t ns
Substitute the location of your version of Quartus in place of "C:/altera/14.1" and the name of your test bench as appropriate. Cheers, Alex --- Quote End --- Thank you Alex. The "the design unit was not found" error has been solved. You help is much appreciated. However, I'm not really sure about the testbench file that you mentioned. Here is the screenshot of all the files in ..\QuartusII\simulation\modelsim folder (PWM_Gen is the name of the top module): http://www.alteraforum.com/forum/attachment.php?attachmentid=10686&stc=1 Should I put the PWM_Gen.vo as the testbench file? Here is the screenshot of the do script: http://www.alteraforum.com/forum/attachment.php?attachmentid=10687&stc=1 When I execute the do script, modelsim just open-up the PWM_Gen.vo file, without running simulations on it. Please help, I'm a newbie.