Technical data

Basic Verilog simulation
ModelSim EE Tutorial ModelSim EE Lessons
-
135
12
Rearrange the windows to give yourself a clear view of all open windows (try the
Window > Initial Layout
menu selection), then click inside the Structure window.
Notice how this window describes the
hierarchical structure of the design. In the
illustration the Structure window shows three
hierarchical levels:
test_counter
,
counter
and
the function called
increment
. (If
test_counter
is not displayed you simulated
counter
instead
of
test_counter
.)
You can navigate within the hierarchy by
clicking on any line with a "+" (expand) or "-"
(contract) symbol. The same navigation
technique works anywhere you find these
symbols within Model
Sim
.
13
Click on
Function increment
and notice how other VSIM windows are automatically
updated as appropriate.
Specifically, the Source window displays the Verilog code at the hierarchical level
you selected in the Structure window. The source-file name is also displayed in
the Source window title bar.
Using the Structure window in this way is analogous to scoping commands in
interpreted Verilogs.
For now, make sure the
test_counter
module is showing in the Source window by
clicking on the top line in the Structure window.
14
Now you will exercise different Run functions from the toolbar.
15
Select
Run
button on the Main toolbar. This causes the simulation to run and then stop
after 100 ns (the default simulation length).
(PROMPT: run) (MENU: Run > Run 100 ns)