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 4896186 + 307d9a6 commit ca73b8dCopy full SHA for ca73b8d
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