mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-09-03 08:03:32 +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]>
17 lines
244 B
Verilog
17 lines
244 B
Verilog
// Check that not providing a value during module instantiation for a parameter
|
|
// without a default value generates an error.
|
|
|
|
module a #(
|
|
parameter A
|
|
);
|
|
|
|
initial begin
|
|
$display("FAILED");
|
|
end
|
|
|
|
endmodule
|
|
|
|
module test;
|
|
a i_a();
|
|
endmodule
|