do_sim 3.34 KB
#!/bin/csh -f
#
#  Shell script for generating tabular trace file 
#
#  Usage: do_sim <test>
#
#  12/5/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]arb

####################################
# 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 cbus_select[1:0]
vector cbus_command[2:0]       

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

####################################
# list signals to be dumped in trace file
####################################
#watch clock
#watch reset_l                 
#watch dma_ready               
#watch sp_dma_request          
#watch sp_read_request         
#watch mem_read_request        
#watch mi_dma_request          
#watch mi_write_request        
#watch mi_read_request         
#watch cmd_dma_request         
#watch cmd_read_request        
#watch ri_read_request         
#watch pi_dma_request          
#watch pi_read_request         
#watch si_dma_request          
#watch si_read_request         
#watch ai_dma_request          
#watch ai_read_request         
#watch vi_dma_request          
#watch vi_read_request         
#watch span_dma_request        
#watch span_read_request       
#watch refresh_strobe        
#watch sp_cbus_read_enable     
#watch sp_cbus_write_enable    
#watch sp_dma_grant            
#watch sp_read_grant           
#watch mem_cbus_write_enable   
#watch mi_cbus_read_enable     
#watch mi_cbus_write_enable    
#watch mi_cbus_grant           
#watch cmd_cbus_read_enable    
#watch cmd_cbus_write_enable   
#watch cmd_dma_grant           
#watch cmd_read_grant          
#watch ri_cbus_read_enable     
#watch ri_cbus_write_enable    
#watch ri_read_grant           
#watch pi_cbus_read_enable     
#watch pi_cbus_write_enable    
#watch pi_dma_grant            
#watch pi_read_grant           
#watch si_cbus_read_enable     
#watch si_cbus_write_enable    
#watch si_dma_grant            
#watch si_read_grant           
#watch ai_cbus_read_enable     
#watch ai_cbus_write_enable    
#watch ai_dma_grant            
#watch ai_read_grant           
#watch vi_cbus_read_enable     
#watch vi_cbus_write_enable    
#watch vi_dma_grant            
#watch vi_read_grant           
#watch span_cbus_read_enable   
#watch span_cbus_write_enable  
#watch span_dma_grant         
#watch span_read_grant         
#watch cbus_select
#watch cbus_command

####################################
# 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