mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-08-29 01:03:29 +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]>
15 lines
251 B
Verilog
15 lines
251 B
Verilog
// Check that modules with undefined parameters do not get picked as top-level
|
|
// modules.
|
|
|
|
module a #(
|
|
parameter A
|
|
);
|
|
initial $display("FAILED");
|
|
endmodule
|
|
|
|
module b #(
|
|
parameter B = 1
|
|
);
|
|
initial $display("PASSED");
|
|
endmodule
|