mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-09-03 01:33:07 +02:00
SystemVerilog allows to completely omit the `parameter` or `localparam` keyword in the parameter list. Both at the beginning and before redefining the parameter data type. This is not support in Verilog. Add regression tests that check that this is supported when in SystemVerilog mode. It is not valid to use an implicit data type e.g. just `signed` when `parameter` was omitted, add regression tests to check for this as well. Signed-off-by: Lars-Peter Clausen <[email protected]>
9 lines
182 B
Verilog
9 lines
182 B
Verilog
// Check that implicit type in a parameter port list without `parameter`
|
|
// generates an error.
|
|
|
|
module test #(signed A = 1);
|
|
initial begin
|
|
$display("FAILED");
|
|
end
|
|
endmodule
|