We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent edcbc8d commit c4f0cd0Copy full SHA for c4f0cd0
regression/verilog/expressions/equality4.desc
@@ -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.
regression/verilog/expressions/equality4.sv
@@ -0,0 +1,11 @@
+module main;
+ // The two operands are zero-extended to 8 bits.
+ initial assert((2'b10 + 1'sbx) === 8'bxxxxxxxx);
+ initial assert((2'b10 | 1'sbx) === 8'b0000001x);
+ // The two operands are sign-extended to 8 bits.
+ initial assert((2'sb10 + 1'sbx) === 8'sbxxxxxxxx);
+ initial assert((2'sb10 | 1'sbx) === 8'sb1111111x);
10
11
+endmodule
0 commit comments