Using a single port SRAM

Status
Not open for further replies.

auroral

Newbie level 6
Joined
Apr 13, 2010
Messages
14
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,387
Hi,
I have a bunch of signals(X1,X2,X3,Y1,Y2,Y3) coming out of a module A, and these need to be stored in a single port RAM and immediately sent to another module B.

My question is how do I instantiate my RAM (how do i use the 'en'
signal at once for both read and write).

RAM r1 (.clk(clk), .rst(rst), .addr(addr), .en(en),
indata(X1), .outdata(Z1));

How do I extend this for signals X2, X3, Y1, .. etc on the same RAM instance r1? Thanks!
 

If you want to store data in the RAM, and send this specific data at the same time to another module B, then why reading this data from the RAM to module B?
You can split the data and write it to the RAM, and send it also to module B.
You can put the same signal both in indata() of the RAM, and in some input_port() of module B.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…