12.07.2015 Views

Simulator Configuration Guide for Synopsys Models

Simulator Configuration Guide for Synopsys Models

Simulator Configuration Guide for Synopsys Models

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.

Chapter 10: Using SystemC with <strong>Synopsys</strong> <strong>Models</strong><strong>Simulator</strong> <strong>Configuration</strong> <strong>Guide</strong>CautionDo not include la_dmon-based authorizations in the same file with snpslmdbasedauthorizations. If you have authorizations that use la_dmon, keepthem in a separate license file that uses a different license server (lmgrd)process than the one you use <strong>for</strong> snpslmd-based authorizations.3. Make sure your SystemC environment is properly set up — see your SystemCinstallation documentation <strong>for</strong> details.Using Smart<strong>Models</strong> with SystemCTo use Smart<strong>Models</strong> with SystemC, follow this procedure:1. Run the scsg utility to generate SystemC wrappers <strong>for</strong> the models you will use inyour design.To generate wrappers, enter the model names (separated by spaces) as arguments toscsg:% $LMC_HOME/bin/scsg model model2For each specified model, this creates the wrapper files model.h and model.cppwithin the working directory.The scsg command also includes two optional switches:❍ -a or --all: Generates wrappers <strong>for</strong> all installed models.❍ -r or --resolved: Generates wrappers using resolved logic vectors (typesc_signal_rv) <strong>for</strong> the model port interface. The default is togenerate a port interface using the sc_logic type <strong>for</strong> single bitports, and type sc_lv <strong>for</strong> bus ports.2. Instantiate the model in your design using the model wrapper model.h file as aguide:❍❍❍Include the header file <strong>for</strong> each SmartModel in your design.Example: #include “model.h”Assign values to the model’s SmartModel SWIFT parameters (modelconfiguration parameters).If needed, bind the model’s ports to system level signals.262 <strong>Synopsys</strong>, Inc. October 6, 2003

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

Saved successfully!

Ooh no, something went wrong!