mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-09-03 06:53:48 +02:00
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]>
25 lines
343 B
Verilog
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
|