Assigning entire array in verilog
问题 I am trying to copy a 2d array into another like so: reg [11:0] input_matrix [0:array_width - 1] [0:array_height - 1]; reg [11:0] output_matrix [0:array_width - 1] [0:array_height - 1]; always @(posedge clk) begin if(<some condition>) output_matrix <= input_matrix; end So, we have two 2D arrays of 12-bit values. I'd like to copy one into the other. This doesn't seem to be possible. Does anyone know the correct way to do this? Or, if not, explain why it's not possible? I can't see any reason