forked from CompArchFA17/HW2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDecoder.vcd
More file actions
162 lines (162 loc) · 1.41 KB
/
Decoder.vcd
File metadata and controls
162 lines (162 loc) · 1.41 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
$date
Thu Sep 21 00:01:30 2017
$end
$version
Icarus Verilog
$end
$timescale
1ps
$end
$scope module behavioralDecoder $end
$var wire 1 ! address0 $end
$var wire 1 " address1 $end
$var wire 1 # enable $end
$var wire 1 $ out0 $end
$var wire 1 % out1 $end
$var wire 1 & out2 $end
$var wire 1 ' out3 $end
$upscope $end
$scope module testDecoder $end
$var wire 1 ( out0 $end
$var wire 1 ) out1 $end
$var wire 1 * out2 $end
$var wire 1 + out3 $end
$var reg 1 , addr0 $end
$var reg 1 - addr1 $end
$var reg 1 . enable $end
$scope module decode $end
$var wire 1 / A0 $end
$var wire 1 0 A0andA1 $end
$var wire 1 1 A0andnA1 $end
$var wire 1 2 A1 $end
$var wire 1 3 enable $end
$var wire 1 4 nA0 $end
$var wire 1 5 nA0andA1 $end
$var wire 1 6 nA0andnA1 $end
$var wire 1 7 nA1 $end
$var wire 1 ( out0 $end
$var wire 1 ) out1 $end
$var wire 1 * out2 $end
$var wire 1 + out3 $end
$upscope $end
$upscope $end
$enddefinitions $end
#0
$dumpvars
z7
x6
z5
z4
03
02
z1
z0
0/
0.
0-
0,
z+
z*
z)
z(
x'
x&
x%
x$
z#
z"
z!
$end
#50000
0+
0*
0)
0(
00
05
01
14
17
#100000
16
#1000000
1,
1/
#1050000
04
11
#1100000
06
#2000000
1-
12
0,
0/
#2050000
07
14
01
#2100000
15
#3000000
1,
1/
#3050000
04
10
#3100000
05
#4000000
0-
02
0,
0/
1.
13
#4050000
17
14
00
1+
#4100000
16
0+
#4150000
1(
#5000000
1,
1/
#5050000
04
11
#5100000
06
1)
#5150000
0(
#6000000
1-
12
0,
0/
#6050000
07
14
01
#6100000
15
0)
#6150000
1*
#7000000
1,
1/
#7050000
04
10
#7100000
05
1+
#7150000
0*
#8000000