Add regression test for issue #793

Check that $signed/$unsigned works when being combinatorially assigned with a
delay and the target of the function is a net without any drivers.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
This commit is contained in:
Lars-Peter Clausen 2022-11-29 20:16:43 -08:00
parent d97c1bc6db
commit 9e37f4382e
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,17 @@
// Check that $signed/$unsigned works when being combinatorially assigned with a
// delay and the target of the function is a net without any drivers.
module top ();
wire [7:0] a;
wire signed [7:0] b;
assign #1 b = $signed(a);
initial begin
#10
if (b === 8'hzz) begin
$display("PASSED");
end else begin
$display("FAILED");
end
end
endmodule

View File

@ -349,6 +349,7 @@ br_gh632b normal,-S ivltests
br_gh632c normal ivltests
br_gh674 normal ivltests
br_gh732 normal ivltests gold=br_gh732.gold
br_gh793 normal ivltests
br_ml20150315 normal ivltests gold=br_ml_20150315.gold
br_ml20150321 CE ivltests
br_mw20171108 normal ivltests