Skip to content

Commit 390d8fa

Browse files
committed
Verilog: make power3 test work
The test power3.desc uses 'x, which doesn't work right now. The test works when replacing 'x by a sized literal.
1 parent ff06c23 commit 390d8fa

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
KNOWNBUG
1+
CORE
22
power3.sv
33

44
^EXIT=0$
55
^SIGNAL=0$
66
--
77
^warning: ignoring
88
--
9-
The result is wrong.
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
module main;
22

33
// Any arithmetic with x or z returns x.
4-
initial assert('bx ** 1 === 'x);
5-
initial assert('bz ** 1 === 'x);
6-
initial assert(1 ** 'bx === 'x);
7-
initial assert(1 ** 'bz === 'x);
4+
initial assert('bx ** 1 === 32'hxxxx_xxxx);
5+
initial assert('bz ** 1 === 32'hxxxx_xxxx);
6+
initial assert(1 ** 'bx === 32'hxxxx_xxxx);
7+
initial assert(1 ** 'bz === 32'hxxxx_xxxx);
88

99
endmodule

0 commit comments

Comments
 (0)