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 9c8a850 commit 307d9a6Copy full SHA for 307d9a6
regression/verilog/expressions/signing_cast1.sv
@@ -11,4 +11,9 @@ module main;
11
// signing casts yield constants
12
parameter Q = signed'(1);
13
14
+ // signing casts block downwards size/type propagation
15
+ initial assert (unsigned'(1'b1 + 1'b1) == 0);
16
+ initial assert (signed'(1'b1 + 1'b1) == 0);
17
+ initial assert ($bits(unsigned'(1'b1 + 1'b1)) == 1);
18
+
19
endmodule
0 commit comments