mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-09-03 16:29:25 +02:00
Check that assignment patterns cannot be connected directly to unpacked array output ports. Signed-off-by: Lars-Peter Clausen <[email protected]>
18 lines
247 B
Verilog
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
|