Files
iverilog/ivtest/ivltests/module_port_array_fail1.v
T
Lars-Peter Clausen 8519a30354 Add regression test for unpacked array output port expressions
Check that assignment patterns cannot be connected directly to unpacked
array output ports.

Signed-off-by: Lars-Peter Clausen <[email protected]>
2026-05-03 17:31:09 -07:00

18 lines
247 B
Verilog

// Check that an output array port expression must be assignable.
module M (
output int out [0:1]
);
initial begin
out = '{3, 4};
end
endmodule
module test;
M i_m('{1, 2}); // Error: output expression is not assignable
endmodule