Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions regression/verilog/expressions/negation1.sv
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,7 @@ module main;
property06: assert final (!2'bxx===1'bx);
property07: assert final (!1'bz===1'bx);

// expression type contexts do not pass through !
initial assert(!(1'b1 + 1'b1) == 1);

endmodule
3 changes: 3 additions & 0 deletions regression/verilog/expressions/unary_minus1.sv
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@ module main;
// Any arithmetic with x or z returns x.
initial assert(-32'bz === 32'hxxxx_xxxx);

// Downwards type propagation passes through unary minus.
initial assert(-(1'sb1 + 1'sb1) == 2);

endmodule
Loading