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 1: Using <strong>Synopsys</strong> <strong>Models</strong> with <strong>Simulator</strong>sInstantiating DesignWare Memory <strong>Models</strong> in SystemCUse this general procedure to instantiate DWMM models in SystemC.1. Generate the model wrapper files as described in “Using DesignWare Memory<strong>Models</strong> with SystemC” on page 264.The resulting model wrapper files model.h and model.cpp contain the SystemCinterface to the DWMM model.2. The model.h wrapper file defines the model’s public interface, and must be includedwithin any file in which you instantiate the model. For example:#include "model.h"3. Instantiate the model as shown in the example included in the model’s .h wrapperfile.Constructor ArgumentsEach DWMM model requires seven string arguments in the call to its constructor, asshown in the following example of a DWMM model’s constructor definition:(sc_module_name Name,const string& DefaultData,const string& MemoryFile,const string& MessageLevel,const string& ModelAlias,const string& ModelConfig,const string& ModelId);These seven arguments relate directly to the model’s SWIFT parameters, which areattributes used to configure the model.The first argument, Name, represents the parameter InstanceName as described inTable 2, “SmartModel SWIFT Parameters” on page 19.The other six arguments relate directly to the DWMM-specific parameters of the samename, as described in Table 5, “DesignWare Memory Model SWIFT Parameters” onpage 29.HintSee your model’s datasheet <strong>for</strong> configuration in<strong>for</strong>mation. You can accessthe datasheet using the sl_browser tool ($LMC_HOME/bin/sl_browser).October 6, 2003 <strong>Synopsys</strong>, Inc. 35

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

Saved successfully!

Ooh no, something went wrong!