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

Create successful ePaper yourself

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

<strong>Simulator</strong> <strong>Configuration</strong> <strong>Guide</strong>Chapter 10: Using SystemC with <strong>Synopsys</strong> <strong>Models</strong>The model.h wrapper file includes an example of instantiating the model withdefault values <strong>for</strong> the required model configuration parameters. For details on therequired SmartModel SWIFT parameters, see “Using Smart<strong>Models</strong> with SWIFT<strong>Simulator</strong>s” on page 18.3. Modify your SystemC build environment to compile and link the models in yourdesign, and to link in the runtime support library:a. Add the following to the list of include directories used by your compiler:• The location of the model.h wrappers generated in step 1.• $LMC_HOME/includeExample: $CC -I$LMC_HOME/include -Imodel_wrapper_dir...b. Modify the list of source files compiled <strong>for</strong> your design to include themodel.cpp file generated in step 1 <strong>for</strong> each model in the design.Example: $CC -c model.cpp...c. Add the following to the list of object files linked into your design’s executable:• Each of the model interface objects compiled in step 3b.• The SWIFT SystemC interface library:– On Solaris: $(LMC_HOME)/lib/sun4Solaris.lib/libscswift.a– On Linux: $(LMC_HOME)/lib/x86_linux.lib/libscswift.aExample: $LD... $(LMC_HOME)/lib/sun4Solaris.lib/libscswift.a model.cpp...4. Compile your SystemC design.5. Link your SystemC executable.6. Run your SystemC executable.October 6, 2003 <strong>Synopsys</strong>, Inc. 263

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

Saved successfully!

Ooh no, something went wrong!