do_sim 4.9 KB
#!/bin/csh -f
#
#  Shell script for generating tabular trace file 
#
#  Usage: do_sim <test>
#
#  11/16/94  kluster
#  based on
#  11/9/94   TD
#

if ( $#argv != 1 ) then
  echo "Usage: $0 <test>"
  exit
endif

vlsishell << EOF
set echo on

####################################
# invoke qsim and load netlist
####################################
qsim
mode compassqsim
load [nls]st

####################################
# setup environment
####################################
radix 16
options bidirConflict
options failTestOnZ
trace (static, tabular)
#options tabularReportOnChange
#trace (dynamic, tabular)

####################################
# display current environment
####################################
preprocess
simparms
options
trace
modeloptions

####################################
# bus and signal aliases
####################################

vector ep_st_r[15:0]            
vector ep_st_g[15:0]            
vector ep_st_b[15:0]            
vector ep_st_a[15:0]            
vector ep_st_z[21:0]            
vector ep_st_s[21:0]            
vector ep_st_t[21:0]            
vector ep_st_w[21:0]            
vector ep_st_l[21:0]            
vector at_st_dxr[21:0]          
vector at_st_dxg[21:0]          
vector at_st_dxb[21:0]          
vector at_st_dxa[21:0]          
vector at_st_dxz[31:0]          
vector at_st_dxs[26:0]          
vector at_st_dxt[26:0]          
vector at_st_dxw[26:0]          
vector at_st_dxl[26:0]          
vector at_st_dyr[12:0]          
vector at_st_dyg[12:0]          
vector at_st_dyb[12:0]          
vector at_st_dya[12:0]          
vector at_st_dyz[21:0]          
vector x_offsetr[1:0]           
vector x_offsetg[1:0]           
vector x_offsetb[1:0]           
vector x_offseta[1:0]           
vector x_offsetz[1:0]           
vector y_offsetr[1:0]           
vector y_offsetg[1:0]           
vector y_offsetb[1:0]           
vector y_offseta[1:0]           
vector y_offsetz[1:0]           
vector st_cc_r[7:0]             
vector st_cc_g[7:0]             
vector st_cc_b[7:0]             
vector st_cc_a[7:0]             
vector st_bl_z[17:0]            
vector st_tc_s[15:0]            
vector st_tc_t[15:0]            
vector st_tc_w[15:0]            
vector st_tc_l[15:0]            

####################################
# assign static inputs
####################################

inputs l startspan_r              
inputs l startspan_g              
inputs l startspan_b              
inputs l startspan_a              
inputs l startspan_z              
inputs l startspan_s              
inputs l startspan_t              
inputs l startspan_w              
inputs l startspan_l              
inputs l ep_st_r[15:0]            
inputs l ep_st_g[15:0]            
inputs l ep_st_b[15:0]            
inputs l ep_st_a[15:0]            
inputs l ep_st_z[21:0]            
inputs l ep_st_s[21:0]            
inputs l ep_st_t[21:0]            
inputs l ep_st_w[21:0]            
inputs l ep_st_l[21:0]            
inputs l at_st_dxr[21:0]          
inputs l at_st_dxg[21:0]          
inputs l at_st_dxb[21:0]          
inputs l at_st_dxa[21:0]          
inputs l at_st_dxz[31:0]          
inputs l at_st_dxs[26:0]          
inputs l at_st_dxt[26:0]          
inputs l at_st_dxw[26:0]          
inputs l at_st_dxl[26:0]          
inputs l at_st_dyr[12:0]          
inputs l at_st_dyg[12:0]          
inputs l at_st_dyb[12:0]          
inputs l at_st_dya[12:0]          
inputs l at_st_dyz[21:0]          
inputs l x_offsetr[1:0]           
inputs l x_offsetg[1:0]           
inputs l x_offsetb[1:0]           
inputs l x_offseta[1:0]           
inputs l x_offsetz[1:0]           
inputs l y_offsetr[1:0]           
inputs l y_offsetg[1:0]           
inputs l y_offsetb[1:0]           
inputs l y_offseta[1:0]           
inputs l y_offsetz[1:0]           
inputs l ncyc_r                   
inputs l ncyc_g                   
inputs l ncyc_b                   
inputs l ncyc_a                   
inputs l ncyc_z                   
inputs l ncyc_s                   
inputs l ncyc_t                   
inputs l ncyc_w                   
inputs l ncyc_l                   
inputs l left_r                   
inputs l left_g                   
inputs l left_b                   
inputs l left_a                   
inputs l left_z                   
inputs l left_s                   
inputs l left_t                   
inputs l left_w                   
inputs l left_l                   


####################################
# list signals to be dumped in trace file
####################################
# none

####################################
# open trc file
####################################
output (only) [trc]$1

####################################
# load sim file
####################################
load [sim]$1

####################################
# close trc file
####################################
output .

####################################
# display % of nodes toggled
####################################
toggles (totals)

q
q
EOF