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 445ac04 commit 5520bdfCopy full SHA for 5520bdf
regression/verilog/expressions/unary_minus1.sv
@@ -3,4 +3,7 @@ module main;
3
// Any arithmetic with x or z returns x.
4
initial assert(-32'bz === 32'hxxxx_xxxx);
5
6
+ // Downwards type propagation passes through unary minus.
7
+ initial assert(-(1'sb1 + 1'sb1) == 2);
8
+
9
endmodule
0 commit comments