do_sim
3.24 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
#!/bin/csh -f
#
# Shell script for generating tabular trace file
#
# Usage: do_sim <test>
#
# 12/2/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]cc
####################################
# 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 cc_x_sel_0_r[3:0]
vector cc_y_sel_0_r[3:0]
vector cc_a_sel_0_r[4:0]
vector cc_c_sel_0_r[2:0]
vector cc_x_sel_0_a[2:0]
vector cc_y_sel_0_a[2:0]
vector cc_a_sel_0_a[2:0]
vector cc_c_sel_0_a[2:0]
vector cc_x_sel_1_r[3:0]
vector cc_y_sel_1_r[3:0]
vector cc_a_sel_1_r[4:0]
vector cc_c_sel_1_r[2:0]
vector cc_x_sel_1_a[2:0]
vector cc_y_sel_1_a[2:0]
vector cc_a_sel_1_a[2:0]
vector cc_c_sel_1_a[2:0]
vector st_r[7:0]
vector st_g[7:0]
vector st_b[7:0]
vector st_a[7:0]
vector tf_r[8:0]
vector tf_g[8:0]
vector tf_b[8:0]
vector tf_a[8:0]
vector tf_lod_frac[8:0]
vector prim_lod_frac[8:0]
vector prim_r[7:0]
vector prim_g[7:0]
vector prim_b[7:0]
vector prim_a[7:0]
vector env_r[7:0]
vector env_g[7:0]
vector env_b[7:0]
vector env_a[7:0]
vector center_r[7:0]
vector center_g[7:0]
vector center_b[7:0]
vector scale_r[7:0]
vector scale_g[7:0]
vector scale_b[7:0]
vector width_r[11:0]
vector width_g[11:0]
vector width_b[11:0]
vector k4_coeff[8:0]
vector k5_coeff[8:0]
vector noise[8:0]
vector cvg[3:0]
vector cc_r[16:0]
vector cc_g[16:0]
vector cc_b[16:0]
vector cc_a[8:0]
vector shade_a[7:0]
vector pixel_r[7:0]
vector pixel_g[7:0]
vector pixel_b[7:0]
vector pixel_a[8:0]
vector pixel_cvg[3:0]
####################################
# assign static inputs
####################################
####################################
# 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