Add regression test for issue #1099
This commit is contained in:
parent
09a134d973
commit
0679d7c8cf
|
|
@ -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}, out1);
|
||||||
|
mod m2({inp2}, out2);
|
||||||
|
endmodule
|
||||||
|
|
||||||
|
module mod(
|
||||||
|
input [4:0] inp,
|
||||||
|
output [4:0] out
|
||||||
|
);
|
||||||
|
assign out = inp;
|
||||||
|
endmodule
|
||||||
|
|
@ -42,6 +42,7 @@ br_gh1087a2 vvp_tests/br_gh1087a2.json
|
||||||
br_gh1087a3 vvp_tests/br_gh1087a3.json
|
br_gh1087a3 vvp_tests/br_gh1087a3.json
|
||||||
br_gh1087b vvp_tests/br_gh1087b.json
|
br_gh1087b vvp_tests/br_gh1087b.json
|
||||||
br_gh1087c vvp_tests/br_gh1087c.json
|
br_gh1087c vvp_tests/br_gh1087c.json
|
||||||
|
br_gh1099 vvp_tests/br_gh1099.json
|
||||||
ca_time_real` vvp_tests/ca_time_real.json
|
ca_time_real` vvp_tests/ca_time_real.json
|
||||||
case1 vvp_tests/case1.json
|
case1 vvp_tests/case1.json
|
||||||
case2 vvp_tests/case2.json
|
case2 vvp_tests/case2.json
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"type" : "normal",
|
||||||
|
"source" : "br_gh1099.v"
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue