Skip to content

Commit bb1e5a3

Browse files
committed
Verilog: KNOWNBUG test for four-valued zero extension
1 parent edcbc8d commit bb1e5a3

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
KNOWNBUG
2+
equality4.v
3+
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
--
7+
^warning: ignoring
8+
--
9+
zero_extend doesn't work for four-valued operands.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module main;
2+
3+
// The two operands are zero-extended to 8 bits.
4+
initial assert(2'b10 + 1'sbx === 8'bxxxxxxxx);
5+
initial assert(2'b10 | 1'sbx === 8'b0000000x);
6+
7+
endmodule

0 commit comments

Comments
 (0)