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.

<strong>Simulator</strong> <strong>Configuration</strong> <strong>Guide</strong>Chapter 1: Using <strong>Synopsys</strong> <strong>Models</strong> with <strong>Simulator</strong>sf. For Linux:% mkdir workdir% flexm_setup -dir workdir model_fx% gcc -o executable_name \your_C_file.c \workdir/src/C/x86_linux/model_pkg.o \${LMC_HOME}/lib/x86_linux.lib/flexmodel_pkg.o \-Iworkdir/src/C \-I${LMC_HOME}/sim/C/srcThe C executable file that you created in this step is the program that you point to usingthe FlexCFile SWIFT attribute <strong>for</strong> the model instance in your design.Using DesignWare Memory <strong>Models</strong> withSWIFT <strong>Simulator</strong>sDesignWare Memory <strong>Models</strong> (DWMM) are binary simulation models. All DWMMmodels have an _mx extension in the model name: model_mx.DWMM models are available on several SWIFT simulators. This manual explains howto connect these models to the supported simulators.Regardless of the simulator you use, you must configure your DWMM models <strong>for</strong> thesimulator using the required SWIFT parameters, as explained in the next section.DesignWare Memory Model SWIFT ParametersDWMM model attributes — or parameters — are model-specific values needed by thesimulator to configure a model. You configure DWMM models when you instantiatethem in your design using these SWIFT parameters. This could take the <strong>for</strong>m of Verilogdefparams or VHDL generics, or symbol properties depending on the simulator you areusing. Table 5 explains how to configure DesignWare Memory <strong>Models</strong> using therequired SWIFT parameters.Table 5: DesignWare Memory Model SWIFT ParametersParameter Usage Valid Values, Examples, &DefaultsModelIdUse this parameter to specify a uniquehandle <strong>for</strong> a model instance. You use theModelId in testbench commands to modelinstances. The ModelId is also used inmessages to indicate which model instanceis issuing the message.Valid values are positive integers inquoted strings, and “-2”.Example: “8”Default: “-2”Note: Do not use the “-2” defaultvalue.October 6, 2003 <strong>Synopsys</strong>, Inc. 29

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

Saved successfully!

Ooh no, something went wrong!