Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Problem with pin availability in a code for multidimensional RAM

Status
Not open for further replies.

friendz101

Banned
Joined
Aug 22, 2009
Messages
21
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Location
Mumbai
Activity points
0
multidimensional RAM

hello everyone,
I am using altera DE2, cyclonII and quartusII 9.1 . I want to make multidimensional RAM. I am working on video frame, so I need to store pixels in the 2D-ram.

my code is 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];

endmodule

but problem is compiler says there is nothng avaliable pin for to implemet this.

is there anyone who can help me or anyone have any idea?
 

multidimensional RAM

input [639:0] a;
input [1279:0]b;
???

I think you cant pass such a large vector to the module in one stretch.Try breaking down the input into pieces and pass them one by one till the end of input sequence is reached..
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top