|
ELEC4200 Digital System Design Modesim Tips & Tricks Professor: Charles E. Stroud Tutorial by: Jie Qin |
||||
|
1) If no time units are given in the force and run statements, the default time units will be used for simulation. However, this could be very inconvenient sometimes. Under such a circumstance, we can specify the time units in the statements. The allowed time units include
It should be noted that at least a space is required to precede the time units as listed in the following examples. In this example, the three inputs will be square waves with 50% duty cycle where Sel has a period of 40us, Din0 has a period of 80ns, and Din1 has a period of 160ns. After the 3 force statement, the run statement will ask Modelsim to run a simulation of 200 ms.
2) It is often desired that the Modelsim can restart the simulation from the time 0 after
that simulation has been executed for a certain time. This can be done by
simply click a icon circled in the following figure.
This task can also be accomplished
by a restart statment.
|
|
|||