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.
2 parents 6eaf3f5 + 2c01a3a commit 2b63ce4Copy full SHA for 2b63ce4
regression/verilog/signed1/test.desc renamed to regression/verilog/expressions/signed1.desc
@@ -1,6 +1,6 @@
1
CORE
2
-main.v
3
---module main --bound 1
+signed1.sv
+--module main --bound 0
4
^EXIT=0$
5
^SIGNAL=0$
6
--
regression/verilog/expressions/signed1.sv
@@ -0,0 +1,15 @@
+module main;
+
+ wire signed [31:0] wire1 = -1;
+ wire [31:0] wire2 = -1;
+ p1: assert final (wire1==wire2);
7
+ p2: assert final ((wire1 >>> 1)==-1);
8
+ p3: assert final ((wire2 >>> 1)!=-1);
9
+ p4: assert final ((wire1[31:0] >>> 1)!=-1); // part-selects are unsigned
10
+ p5: assert final (($unsigned(wire1) >>> 1)!=-1);
11
+ p6: assert final (($signed(wire2) >>> 1)==-1);
12
+ p7: assert final ((-'d1 >>> 1)!=-1); // based numbers are unsigned
13
+ p8: assert final ((-1 >>> 1)==-1);
14
15
+endmodule
regression/verilog/signed1/main.v
0 commit comments