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.

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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top