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.

Chapter 8: Using Scirocco with <strong>Synopsys</strong> <strong>Models</strong><strong>Simulator</strong> <strong>Configuration</strong> <strong>Guide</strong>Scirocco Template Generator Script <strong>for</strong> Hardware <strong>Models</strong>Here is the nawk script that you can use to generate VHDL wrappers <strong>for</strong> the hardwaremodels. Because of the length this script, you will have to cut-and-paste one page at atime from this PDF file to get the whole thing copied to your environment.********************************************# In your design directory type:## nawk -f hwm2vhdl.nawk $HWM/.NAM > .vhd## (where "$HWM" is the full path to your hardware modeling directory)# Instantiate .vhd into your design.## THE SCRIPT:## Script to generate a VSS/Scirocco VHDL shell <strong>for</strong> a hardware model# using the .NAM fileBEGIN {pin_type = 0is_it_a_vector = "No"data_type = ""prev_signal = ""prev_test = ""prev_number = ""prev_dir = ""ending = ";"}printf "library SYNOPSYS;\n"printf " use SYNOPSYS.ATTRIBUTES.all;\n"printf "library IEEE;\n"printf " use IEEE.std_logic_1164.all;\n\n"$2 ~ /generic_device_name/ {device = $3printf "entity " device " is\n"printf " generic\n"printf " (\n"printf " timing : LMSI_TIMING_MEASUREMENT := DISABLED;\n"printf " delay_type : LMSI_DELAY_TYPE := TYPICAL;\n"printf " delay : LMSI_DELAY := ENABLED;\n"printf " log : LMSI_LOG := DISABLED;\n"printf " timing_violations : LMSI_TIMING_VIOLATIONS := DISABLED;\n"printf " xprop : LMSI_XPROP := DISABLED;\n"printf " xprop_method : LMSI_XPROP_METHOD := HIGH\n"printf " );\n\n"printf " port\n"printf " (\n"}$4 ~ /\(in_pin\)/ || $4 ~ /\(out_pin\)/ || $4 ~ /\(io_pin\)/ \|| $4 ~ /\(power_pin\)/ {pin_type++}204 <strong>Synopsys</strong>, Inc. October 6, 2003

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

Saved successfully!

Ooh no, something went wrong!