24.03.2013 Views

ModelSim SE User's Manual - Electrical and Computer Engineering

ModelSim SE User's Manual - Electrical and Computer Engineering

ModelSim SE User's Manual - Electrical and Computer Engineering

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Simulator resolution limit<br />

Runtime modeling semantics<br />

Separate compilers, common design libraries UM-191<br />

In a mixed-language design with only one top, the resolution of the top design unit is<br />

applied to the whole design. If the root of the mixed design is VHDL, then VHDL simulator<br />

resolution rules are used (see "Simulator resolution limit" (UM-78) for VHDL details). If the<br />

root of the mixed design is Verilog, Verilog rules are used (see "Simulator resolution limit"<br />

(UM-129) for Verilog details). If the root is SystemC, then SystemC rules are used (see<br />

"Running simulation" (UM-173) for SystemC details).<br />

In the case of a mixed-language design with multiple tops, the following algorithm is used:<br />

If VHDL or SystemC modules are present, then the Verilog resolution is ignored. An<br />

error is issued if the Verilog resolution is finer than the chosen one.<br />

If both VHDL <strong>and</strong> SystemC are present, then the resolution is chosen based on which<br />

design unit is elaborated first. For example:<br />

vsim sc_top vhdl_top -do vsim.do<br />

In this case the SystemC resolution will be chosen.<br />

vsim vhdl_top sc_top -do vsim.do<br />

In this case the VHDL resolution will be chosen.<br />

All resolutions specified in the source files are ignored if vsim is invoked with the -t<br />

option.<br />

The <strong>ModelSim</strong> simulator is compliant with all pertinent Language Reference <strong>Manual</strong>s. To<br />

achieve this compliance, the sequence of operations in one simulation iteration (i.e. delta<br />

cycle) is as follows:<br />

SystemC processes are run<br />

Signal updates are made<br />

HDL processes are run<br />

<strong>ModelSim</strong> <strong>SE</strong> User’s <strong>Manual</strong>

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

Saved successfully!

Ooh no, something went wrong!