Files
iverilog/ivtest/ivltests/module_ordered_list2.v
T
Lars-Peter Clausen 37f7308f80 Add regression test for omitting trailing ports in ordered list connection
Check that it is possible to omit trailing ports in a module ordered list
connection list.

Also check that an error is generated if too many ports are specified in a
ordered list connection.

Signed-off-by: Lars-Peter Clausen <[email protected]>
2023-06-11 08:45:34 -07:00

25 lines
343 B
Verilog

// Check that an error is reported when specifying too many ports in a ordered
// list connection.
module M (
output a,
input b
);
assign a = b;
endmodule
module test;
wire a, b, c;
assign b = 1'b0;
assign c = 1'b1;
M i_M (a, b, c); // Error, too many ports.
initial begin
$display("FAILED");
end
endmodule