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.

Chapter 9: Using VERA with <strong>Synopsys</strong> <strong>Models</strong><strong>Simulator</strong> <strong>Configuration</strong> <strong>Guide</strong>extern fmiModelTableT CpipeModelTable;2. Add the following line to the fmiLibrary table:{ "Cpipe", CpipeModelTable },3. Compile the sim_user.c file to create the sim_user.o file.Creating a VERA TestbenchTo create a VERA testbench to use with Flex<strong>Models</strong>, follow these steps:1. Include the header files.Table 31 lists the two required header files.Table 31: VERA Header FilesFile Name Description Locationflexmodel_pkg.vrhmodel_pkg.vrhContains definitions <strong>for</strong> generic constantsuseful in FlexModel commands.Contains definitions <strong>for</strong> model class andmodel-specific constants useful inFlexModel commands.$LMC_HOME/sim/vera/src$LMC_HOME/models/model_fx/model_fxversion/src/vera2. Create an instance of the ModelFx (or ModelFz) class.Be<strong>for</strong>e using FlexModel commands, you must create an instance of the ModelFx orModelFz class in the VERA testbench.3. Send commands to a FlexModel through the model’s methods.In VERA Command Mode, you can use the same FlexModel features andcommands that you use in HDL Command Mode. There are a few differences incommand usage, however; refer to “Command Syntax Differences in VERACommand Model” in the FlexModel User’s Manual. For details on specificcommands, refer to “FlexModel Command Reference” in the FlexModel User’sManual.210 <strong>Synopsys</strong>, Inc. October 6, 2003

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

Saved successfully!

Ooh no, something went wrong!