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

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

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

Simulating SystemC designs<br />

Loading the design<br />

Running simulation<br />

Simulating SystemC designs UM-173<br />

After compiling the SystemC source code, you can simulate your design with vsim (CR-<br />

373).<br />

For SystemC, invoke vsim (CR-373) with the top-level module of the design. This example<br />

invokes vsim (CR-373) on a design named top:<br />

vsim top<br />

When the GUI comes up, you can exp<strong>and</strong> the hierarchy of the design to view the SystemC<br />

modules. SystemC objects are denoted by green icons (see "Design object icons <strong>and</strong> their<br />

meaning" (GR-12) for more information).<br />

To simulate from a comm<strong>and</strong> shell, without the GUI, invoke vsim with the -c option:<br />

vsim -c <br />

Run the simulation using the run (CR-252) comm<strong>and</strong> or select one of the Simulate > Run<br />

options from the menu bar.<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!