verilog array referencing <p>I have this module. The question is <code>gameArray[0][x][y-1]</code> doesn't work. What is the correct way to perform this kind of operation? Basically it is similar to C++ syntax but can not get it to work.</p> <pre><code>module write_init_copy( input clk, input gameArray [1:0][63:0][127:0], writecell, processedcell, input [5:0] x, input [6:0] y, input initialize, copyover, output reg done_initialize, done_copy, done_writecell); always@(posedge clk) begin if(writecell == 1) begin gameArray[1][x][y] &lt;= processedcell; done_writecell &lt;= 1; end else if(initialize == 1) begin end end endmodule </code></pre>