Download Simulator Configuration Guide for Synopsys Models
Transcript
LChapter 7: Using VSS with Synopsys Models Simulator Configuration Guide 5. Compile the MemPro VHDL files into logical library slm_lib. Note that rdramd_pkg.vhd is not required unless you are simulating RDRAM MemPro models. % vhdlan -c -w slm_lib $LMC_HOME/sim/vss/src/slm_hdlc.vhd % vhdlan -c -w slm_lib $LMC_HOME/sim/vss/src/mempro_pkg.vhd % vhdlan -c -w slm_lib $LMC_HOME/sim/vss/src/rdramd_pkg.vhd 8 Note The vhdlan program returns an “Error compiling file” warning message for rdramd_pkg.vhd and reverts to interpreted code for the file. Your designs containing MemPro RDRAMs will simulate properly, however. 6. After generating a model using MemPro, compile the VHDL code for the model, as shown in the following example: % vhdlan -c mymem.vhd 7. If you compiled the model to a library (SLM_MODELS in these examples), add a LIBRARY statement to your testbench: LIBRARY SLM_MODELS This makes models in SLM_MODELS accessible from your design. You can refer to the model using a standard VHDL convention, such as a CONFIGURATION statement: CONFIGURATION mymem_a OF mymem_tst IS FOR atest FOR ALL : mymem use CONFIGURATION SLM_MODELS.mymem_behav; END FOR; END FOR; END mymem_a; 8. Add LIBRARY and USE statements to your testbench: LIBRARY SLM_LIB USE SLM_LIB.mempro_pkg.all This also provides access to MemPro testbench commands. For more information on using the MemPro testbench interfaces, refer to the “HDL Testbench Interface” and “C Testbench Interface” chapters in the MemPro User’s Manual. 9. Instantiate MemPro models in your design. Define ports and generics as required. For information on generics used with MemPro models, refer to “Instantiating MemPro Models” on page 32. For information on message levels and message level constants, refer to “Controlling MemPro Model Messages” on page 33. July 31, 2001 Synopsys, Inc. 149