Files
iverilog/ivtest/ivltests/parameter_no_default_toplvl.v
T
Lars-Peter Clausen 91579c7c79 Add regression tests for parameters without default
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]>
2022-02-13 18:21:56 +01:00

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