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.

UM-172 6 - SystemC simulation<br />

Linking the compiled source<br />

sccom -link<br />

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

Once the design has been compiled, it must be linked using the sccom (CR-254) comm<strong>and</strong><br />

with the -link argument.<br />

The sccom -link comm<strong>and</strong> collects the object files created in the different design libraries,<br />

<strong>and</strong> uses them to build a shared library (.so) in the current work library or the library<br />

specified by the -work option. If you have changed your SystemC source code <strong>and</strong><br />

recompiled it using sccom, then you must relink the design by running sccom -link before<br />

invoking vsim. Otherwise, your changes to the code are not recognized by the simulator.<br />

Remember that any dependent .a or .o files should be listed on the sccom -link comm<strong>and</strong><br />

line before the .a or .o on which it depends. For more details on dependencies <strong>and</strong> other<br />

syntax issues, see sccom (CR-254).

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

Saved successfully!

Ooh no, something went wrong!