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.

6 - SystemC simulation<br />

Chapter contents<br />

Introduction . . . . . . . . . . . . . . . UM-160<br />

Supported platforms <strong>and</strong> compiler versions . . . . . . . UM-161<br />

Building gcc with custom configuration options . . . . . UM-161<br />

HP Limitations for SystemC . . . . . . . . . . UM-162<br />

Usage flow for SystemC-only designs . . . . . . . . . UM-163<br />

Compiling SystemC files . . . . . . . . . . . . UM-164<br />

Creating a design library . . . . . . . . . . . UM-164<br />

Modifying SystemC source code . . . . . . . . . UM-164<br />

Invoking the SystemC compiler . . . . . . . . . UM-167<br />

Compiling optimized <strong>and</strong>/or debug code . . . . . . . UM-167<br />

Specifying an alternate g++ installation . . . . . . . UM-168<br />

Maintaining portability between OSCI <strong>and</strong> <strong>ModelSim</strong> . . . UM-168<br />

Restrictions on compiling with HP aCC . . . . . . . UM-169<br />

Switching platforms <strong>and</strong> compilation . . . . . . . . UM-169<br />

Using sccom vs. raw C++ compiler . . . . . . . . UM-170<br />

Linking the compiled source . . . . . . . . . . . UM-164<br />

sccom -link . . . . . . . . . . . . . . UM-172<br />

Simulating SystemC designs . . . . . . . . . . . UM-173<br />

Running simulation . . . . . . . . . . . . UM-173<br />

Debugging the design . . . . . . . . . . . . . UM-176<br />

Viewable SystemC objects . . . . . . . . . . UM-176<br />

Source-level debug . . . . . . . . . . . . UM-178<br />

SystemC object <strong>and</strong> type display in <strong>ModelSim</strong> . . . . . . UM-176<br />

Support for aggregates . . . . . . . . . . . UM-180<br />

Viewing FIFOs . . . . . . . . . . . . . UM-181<br />

Differences between <strong>ModelSim</strong> <strong>and</strong> the OSCI simulator . . . . UM-182<br />

Fixed point types . . . . . . . . . . . . . UM-182<br />

OSCI 2.1 features supported . . . . . . . . . . UM-183<br />

Troubleshooting SystemC errors . . . . . . . . . . UM-184<br />

Errors during loading . . . . . . . . . . . . UM-184<br />

Note: The functionality described in this chapter requires a systemc license feature in<br />

your <strong>ModelSim</strong> license file. Please contact your Mentor Graphics sales representative if<br />

you currently do not have such a feature.<br />

UM-159<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!