Skip to content

Commit 0679d7c

Browse files
Add regression test for issue steveicarus#1099
1 parent 09a134d commit 0679d7c

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed

ivtest/ivltests/br_gh1099.v

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
module top;
2+
reg [3:0] inp1;
3+
reg signed [3:0] inp2;
4+
wire [4:0] out1, out2;
5+
initial begin
6+
$monitor("%b %b %b %b", inp1, inp2, out1, out2);
7+
#1 inp1 = 4'b1111;
8+
#1 inp2 = 4'b1111;
9+
#1;
10+
if ((out1 === 5'b01111) && (out2 === 5'b01111))
11+
$display("PASSED");
12+
else
13+
$display("FAILED");
14+
end
15+
mod m1({inp1}, out1);
16+
mod m2({inp2}, out2);
17+
endmodule
18+
19+
module mod(
20+
input [4:0] inp,
21+
output [4:0] out
22+
);
23+
assign out = inp;
24+
endmodule

ivtest/regress-vvp.list

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ br_gh1087a2 vvp_tests/br_gh1087a2.json
4242
br_gh1087a3 vvp_tests/br_gh1087a3.json
4343
br_gh1087b vvp_tests/br_gh1087b.json
4444
br_gh1087c vvp_tests/br_gh1087c.json
45+
br_gh1099 vvp_tests/br_gh1099.json
4546
ca_time_real` vvp_tests/ca_time_real.json
4647
case1 vvp_tests/case1.json
4748
case2 vvp_tests/case2.json

ivtest/vvp_tests/br_gh1099.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type" : "normal",
3+
"source" : "br_gh1099.v"
4+
}

0 commit comments

Comments
 (0)