diff --git a/ivtest/ivltests/br_gh1323_lib.v b/ivtest/ivltests/br_gh1323_lib.v new file mode 100644 index 000000000..a3ae0b55b --- /dev/null +++ b/ivtest/ivltests/br_gh1323_lib.v @@ -0,0 +1,10 @@ +module br_gh1323_lib #(parameter `typ(X) = 0) (); + +initial begin + if (X == 1) + $display("PASSED"); + else + $display("FAILED"); +end + +endmodule diff --git a/ivtest/ivltests/br_gh1323_top.v b/ivtest/ivltests/br_gh1323_top.v new file mode 100644 index 000000000..c7efe7f60 --- /dev/null +++ b/ivtest/ivltests/br_gh1323_top.v @@ -0,0 +1,7 @@ +`define typ(n) n + +module br_gh1323_top #(parameter `typ(X) = 1) (); + +br_gh1323_lib #(X) u0(); + +endmodule diff --git a/ivtest/regress-vvp.list b/ivtest/regress-vvp.list index 13a548189..fadf124b2 100644 --- a/ivtest/regress-vvp.list +++ b/ivtest/regress-vvp.list @@ -69,6 +69,7 @@ br_gh1256b vvp_tests/br_gh1256b.json br_gh1258a vvp_tests/br_gh1258a.json br_gh1258b vvp_tests/br_gh1258b.json br_gh1286 vvp_tests/br_gh1286.json +br_gh1323 vvp_tests/br_gh1323.json ca_time_real vvp_tests/ca_time_real.json case1 vvp_tests/case1.json case2 vvp_tests/case2.json diff --git a/ivtest/vvp_tests/br_gh1323.json b/ivtest/vvp_tests/br_gh1323.json new file mode 100644 index 000000000..d5cb0c46c --- /dev/null +++ b/ivtest/vvp_tests/br_gh1323.json @@ -0,0 +1,5 @@ +{ + "type" : "normal", + "source" : "br_gh1323_top.v", + "iverilog-args" : [ "-yivltests" ] +}