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-36 Lesson 3 - <strong>ModelSim</strong> projectsCompiling and loading a designFigure 19: The Library tab with an expanded library1 Compile the files.a Right-click anywhere in the Project tab and select Compile > CompileAll from the pop-up menu.<strong>ModelSim</strong> compiles both files and changes the symbol in the Statuscolumn to a check mark. A check mark means the compile succeeded. Ifthe compile had failed, the symbol would be a red ’X’, and you wouldsee an error message in the Transcript pane.2 View the design units.a Click the Library tab in the workspace.b Click the "+" icon next to the work library.You should see two compiled design units, their types (modules in thiscase), and the path to the underlying source files (Figure 19).3 Load the test_counter design unit.a Double-click the test_counter design unit.You should see a new tab named sim that displays the structure of thetest_counter design unit (Figure 20). A fourth tab named Files containsinformation about the underlying source files.At this point you would generally run the simulation and analyze ordebug your design like you did in the previous lesson. For now, you’llcontinue working with the project. However, first you need to end thesimulation that started when you loaded test_counter.4 End the simulation.a Select Simulate > End Simulation.b Click Yes.2a 2b 3aFigure 20: The structure tab for the counter design unit4a<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!