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 8: Using Scirocco with <strong>Synopsys</strong> <strong>Models</strong>Using Hardware <strong>Models</strong> with SciroccoTo use Scirocco with hardware models, follow this procedure. Note that your design caninclude a mix of event-based and cycle-based, but hardware models simulate only asevent-based.1. Make sure Scirocco is set up properly and all required environment variables areset, as explained in “Setting Environment Variables” on page 191.2. Add the hardware model install tree to your path variable, as shown in the followingexample:% set path=(/install_path/sms/bin/your_plat<strong>for</strong>m/ $path)3. Create the model.vhd wrapper file <strong>for</strong> your hardware model. You can use the nawkscript provided in “Scirocco Template Generator Script <strong>for</strong> Hardware <strong>Models</strong>” onpage 204 to generate this file. Copy the script and paste it into an executable filecalled hwm2vhdl.nawk.4. If you generate the wrapper by hand, you must provide:❍ an entity-architecture pair declaration so Scirocco can reference it in a latercomponent instantiation statement.❍a package <strong>for</strong> defining constants, declaring components, and instantiatingcomponents.5. Place the wrapper you just created in your testbench.6. Compile the wrapper and testbench you just created.% vhdlan hardwaremodel.vhd% vhdlan testbench7. Invoke the Scirocco simulator as shown in the following examples:a. If you are using Scirocco 2001.10 or later:% scs design% scsimb. If you are using Scirocco 2000.12:% scsim designAttentionWhen using hardware models with Scirocco, your design can include a mixof event-based and cycle-based, but hardware models simulate only asevent-based.October 6, 2003 <strong>Synopsys</strong>, Inc. 201

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

Saved successfully!

Ooh no, something went wrong!