do_sim
3.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
#!/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