Using a single port SRAM

J

John Smith

Guest
Hi,

I have a bunch of signals 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 for both read and write).

RAM r1 (.clk(clk), .rst(rst), .addr(addr), .en(en),
indata(X), .outdata(Y));
 
On Nov 17, 10:01 pm, John Smith <redditor...@gmail.com> wrote:
Hi,

I have a bunch of signals coming out of a module A, and these need to
be stored in a single port RAM and immediately sent to another module
B.
You're likely not describing correctly what you intend because the
obvious thing then would be to send the outputs of module A both to
the RAM for storage and in parallel send those same outputs to module
B.

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

RAM r1 (.clk(clk), .rst(rst), .addr(addr), .en(en),
indata(X), .outdata(Y));
Did you read the documentation for the RAM?

KJ
 

Welcome to EDABoard.com

Sponsor

Back
Top