Files
iverilog/ivtest/ivltests/sv_ps_array_cassign.v
T
Lars-Peter Clausen f42bb35c3e Add regression tests for packed scoped continuous array assign
Check that continuous array assignments from package scoped identifiers are
supported.

Signed-off-by: Lars-Peter Clausen <[email protected]>
2022-12-30 10:35:35 -08:00

30 lines
423 B
Verilog

// Check that continuous array assignments from package scoped identifiers are
// supported.
package P;
reg [3:0] y[2];
task init;
y[0] = 1;
y[1] = 2;
endtask
endpackage
module test;
import P::init;
wire [3:0] x[2];
assign x = P::y;
initial begin
init();
if (x[0] === 1 && x[1] === 2) begin
$display("PASSED");
end else begin
$display("FAILED");
end
end
endmodule