Skip to content

Commit

Permalink
Add additional regression tests for issue steveicarus#1099.
Browse files Browse the repository at this point in the history
  • Loading branch information
martinwhitaker committed Feb 25, 2024
1 parent fc29e51 commit 52d049b
Show file tree
Hide file tree
Showing 8 changed files with 63 additions and 5 deletions.
File renamed without changes.
24 changes: 24 additions & 0 deletions ivtest/ivltests/br_gh1099b.v
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
module top;
reg [3:0] inp1;
reg signed [3:0] inp2;
wire [4:0] out1, out2;
initial begin
$monitor("%b %b %b %b", inp1, inp2, out1, out2);
#1 inp1 = 4'b1111;
#1 inp2 = 4'b1111;
#1;
if ((out1 === 5'b01111) && (out2 === 5'b01111))
$display("PASSED");
else
$display("FAILED");
end
mod m1(inp1[3:0], out1);
mod m2(inp2[3:0], out2);
endmodule

module mod(
input [4:0] inp,
output [4:0] out
);
assign out = inp;
endmodule
24 changes: 24 additions & 0 deletions ivtest/ivltests/br_gh1099c.v
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
module top;
reg [3:0] inp1;
reg signed [3:0] inp2;
wire [4:0] out1, out2;
initial begin
$monitor("%b %b %b %b", inp1, inp2, out1, out2);
#1 inp1 = 4'b1111;
#1 inp2 = 4'b1111;
#1;
if ((out1 === 5'b01111) && (out2 === 5'b01111))
$display("PASSED");
else
$display("FAILED");
end
mod m1($unsigned(inp1), out1);
mod m2($unsigned(inp2), out2);
endmodule

module mod(
input [4:0] inp,
output [4:0] out
);
assign out = inp;
endmodule
4 changes: 3 additions & 1 deletion ivtest/regress-vvp.list
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ br_gh1087a2 vvp_tests/br_gh1087a2.json
br_gh1087a3 vvp_tests/br_gh1087a3.json
br_gh1087b vvp_tests/br_gh1087b.json
br_gh1087c vvp_tests/br_gh1087c.json
br_gh1099 vvp_tests/br_gh1099.json
br_gh1099a vvp_tests/br_gh1099a.json
br_gh1099b vvp_tests/br_gh1099b.json
br_gh1099c vvp_tests/br_gh1099c.json
br_gh1104 vvp_tests/br_gh1104.json
ca_time_real` vvp_tests/ca_time_real.json
case1 vvp_tests/case1.json
Expand Down
4 changes: 0 additions & 4 deletions ivtest/vvp_tests/br_gh1099.json

This file was deleted.

4 changes: 4 additions & 0 deletions ivtest/vvp_tests/br_gh1099a.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"type" : "normal",
"source" : "br_gh1099a.v"
}
4 changes: 4 additions & 0 deletions ivtest/vvp_tests/br_gh1099b.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"type" : "normal",
"source" : "br_gh1099b.v"
}
4 changes: 4 additions & 0 deletions ivtest/vvp_tests/br_gh1099c.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"type" : "normal",
"source" : "br_gh1099c.v"
}

0 comments on commit 52d049b

Please sign in to comment.