-
Notifications
You must be signed in to change notification settings - Fork 0
/
ALU.vcd
102 lines (102 loc) · 1.63 KB
/
ALU.vcd
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
$date
Wed Nov 22 13:41:12 2023
$end
$version
Icarus Verilog
$end
$timescale
1ps
$end
$scope module ALU_tb $end
$var wire 1 ! Zero $end
$var wire 32 " Result [31:0] $end
$var wire 1 # OverFlow $end
$var wire 1 $ Negative $end
$var wire 1 % Carry $end
$var reg 32 & A [31:0] $end
$var reg 4 ' ALUControl [3:0] $end
$var reg 32 ( Accumulator [31:0] $end
$var reg 32 ) B [31:0] $end
$scope module uut $end
$var wire 32 * A [31:0] $end
$var wire 4 + ALUControl [3:0] $end
$var wire 32 , Accumulator [31:0] $end
$var wire 32 - B [31:0] $end
$var wire 32 . Sum [31:0] $end
$var wire 64 / MultResult [63:0] $end
$var reg 1 % Carry $end
$var reg 1 $ Negative $end
$var reg 1 # OverFlow $end
$var reg 32 0 Result [31:0] $end
$var reg 1 ! Zero $end
$upscope $end
$upscope $end
$enddefinitions $end
$comment Show the parameter values. $end
$dumpall
$end
#0
$dumpvars
b11001 0
b10010110 /
b11001 .
b1010 -
b0 ,
b0 +
b1111 *
b1010 )
b0 (
b0 '
b1111 &
0%
0$
0#
b11001 "
0!
$end
#10000
b101 "
b101 0
b101 .
b1 '
b1 +
b1111 )
b1111 -
b100101100 /
b10100 &
b10100 *
#20000
b11111111111111111111111111111111 .
1!
b0 "
b0 0
b10 '
b10 +
b1010101010101010101010101010101 )
b1010101010101010101010101010101 -
b11100011100011100011100011100001110001110001110001110001110010 /
b10101010101010101010101010101010 &
b10101010101010101010101010101010 *
#30000
b1010101010101010101010101010101 .
1$
0!
b11111111111111111111111111111111 "
b11111111111111111111111111111111 0
b11 '
b11 +
#40000
b1000 .
0$
b10110 "
b10110 0
b100 '
b100 +
b111 (
b111 ,
b11 )
b11 -
b1111 /
b101 &
b101 *
#50000