do_sim
4.9 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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
#!/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