mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-09-03 06:03:11 +02:00
SystemVerilog supports parameters without default values in parameter port list. Add regression tests to check this feature. Also add a regression test to check that modules without a default parameter are not automatically picked as a toplevel module. Signed-off-by: Lars-Peter Clausen <[email protected]>
21 lines
352 B
Verilog
21 lines
352 B
Verilog
// SystemVerilog allows parameters without default values in the parameter port
|
|
// list. Check that this is supported. The test should fail in Verilog mode.
|
|
|
|
module a #(
|
|
parameter A
|
|
);
|
|
|
|
initial begin
|
|
if (A == 1) begin
|
|
$display("PASSED");
|
|
end else begin
|
|
$display("FAILED");
|
|
end
|
|
end
|
|
|
|
endmodule
|
|
|
|
module test;
|
|
a #(.A(1)) i_a();
|
|
endmodule
|