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 4: Using ModelSim VHDL with <strong>Synopsys</strong> <strong>Models</strong>3. Open the modelsim.ini file in a text editor, and edit the line <strong>for</strong> Resolution, as shownin the following example:Resolution = 100ps4. Modify the modelsim.ini or project_name.mpf file to include the hardwaremodeling in<strong>for</strong>mation. Locate the line:[lmc]Remove the semicolons from the libhm line and the libsfi line you will be changing<strong>for</strong> your plat<strong>for</strong>m. Provide the correct path <strong>for</strong> the SFI. For example:; ModelSim's interface to Logic Modeling's hardware modeler SFI softwarelibhm = $MODEL_TECH/libhm.sl; Logic Modeling's hardware modeler SFI software (HP 9000 Series 700)libsfi = hardware_model_install_path/lib/plat<strong>for</strong>m/libsfi.ext; Logic Modeling's hardware modeler SFI software (IBM RISC System/6000); libsfi = /lib/rs6000/libsfi.a; Logic Modeling's hardware modeler SFI software (Sun4 Solaris); libsfi = /lib/sun4.solaris/libsfi.so; Logic Modeling's hardware modeler SFI software (Sun4 SunOS); libsfi = /lib/sun4.sunos/libsfi.so;; libsfi = /lib/pcnt/lm_sfi.dllwhere ext is “so” <strong>for</strong> Solaris/SunOS and “a” <strong>for</strong> AIX, or “sl” <strong>for</strong> HP-UX.5. Run the hm_entity script to generate a .vhd file <strong>for</strong> the hardware model as shown inthe following example. For details on hm_entity, refer to “hm_entity CommandReference” on page 86.6. You are now ready to use the model in your simulation.ModelSim VHDL Example Using TILS299 HardwareModelHere is an example that uses the TILS299 hardware model. Follow these steps:1. Put the TILS299 hardware model in the testbench.2. Create a working library directory by invoking vsim -gui and selectingLibrary/Create. This creates a working directory called work.3. Compile the .vhd files, as shown in the following example:% vcom -work work TILS299.vhd TB_TILS299.vhdThis step compiles the two VHDL files and puts them in the specified work library.Note that the TILS299.vhd file must be specified first or you get an error becausethe TB_TILS299.vhd utilizes the TILS299 entity.October 6, 2003 <strong>Synopsys</strong>, Inc. 85

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

Saved successfully!

Ooh no, something went wrong!