Altera_Forum
Honored Contributor
16 years agomultidimensional RAM
hello everyone,
I am using altera DE2 cyclon II and quartusII 9.1 . I work on video frames and I need to store them in a two dimensional RAM. I wrote the code like this: module memory (iCLK, we, a, b, idata, odata); input iCLK; //input iRST; input we; input [639:0] a; input [1279:0]b; input [9:0] idata; output [9:0] odata; reg [9:0] memory [9:0][9:0]; integer j,k; always@(posedge iCLK) begin if (we) begin for(k = 0; k < 10; k = k +1) for(j = 0; j < 10; j = j + 1) memory[k][j] <= idata; end end assign odata = memory[a][b]; endmodule but the problem is, compiler says there is not enough pins. could any one help me? or have you another idea to do this. thanks.