11.07.2015 Views

ModelSim SE Tutorial

ModelSim SE Tutorial

ModelSim SE Tutorial

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

T-46 Lesson 4 - Working with multiple librariesLinking to the resource libraryFigure 31: Verilog simulation error reported in the Main windowTo wrap up this part of the lesson, you will link to the parts_lib library you createdearlier. But first, try simulating the testbench without the link and see whathappens.<strong>ModelSim</strong> responds differently for Verilog and VHDL in this situation.Verilog1 Simulate a Verilog design with a missing resource library.a In the Library tab, click the ’+’ icon next to the work library and doubleclicktest_counter.The Main window Transcript reports an error (Figure 31). When you seea message that contains text like "Error: (vsim-3033)", you can viewmore detail by using the verror command.b Type verror 3033 at the <strong>ModelSim</strong>> prompt.The expanded error message tells you that a design unit could not befound for instantiation. It also tells you that the original error messageshould list which libraries <strong>ModelSim</strong> searched. In this case, the originalmessage says <strong>ModelSim</strong> searched only work.Figure 32: VHDL simulation warning reported in Main windowVHDL1 Simulate a VHDL design with a missing resource library.a In the Library tab, click the ’+’ icon next to the work library and doubleclicktest_counter.The Main window Transcript reports a warning(Figure 32). When yousee a message that contains text like "Warning: (vsim-3473)", you canview more detail by using the verror command.b Type verror 3473 at the <strong>ModelSim</strong>> prompt.The expanded error message tells you that a component (’dut’ in thiscase) has not been explicitly bound and no default binding can be found.c Type quit -sim to quit the simulation.<strong>ModelSim</strong> <strong>SE</strong> <strong>Tutorial</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!