how to access 4,8-bit words from memory at the same time (32

L

linuxczar

Guest
hi everybody
i didn't get how to access 4,8-bit words from memory at
the same time through 32-bit bus width. is it possible?.
thanks and regards
gkreddybh
 
How about

reg [31:0] memory [0:1024];
reg [7:0] b0, b1, b2, b3;
....

always@(posedge clk) begin

....

b0 = memory[address][0+:8]; // get the low byte
b1 = memory[address][8+:8]; // get the lower middle byte
b2 = memory[address][16+:8]; // get the upper middle byte
b3 = memory[address][24+:8]; // get the high byte
....

end

David Walker

On Apr 11, 6:01 am, "linuxczar" <h.264wo...@gmail.com> wrote:
hi everybody
i didn't get how to access 4,8-bit words from memory at
the same time through 32-bit bus width. is it possible?.
thanks and regards
gkreddybh
 
"linuxczar" <h.264world@gmail.com> wrote in message
news:1176296505.441175.59560@n59g2000hsh.googlegroups.com...
hi everybody
i didn't get how to access 4,8-bit words from memory at
the same time through 32-bit bus width. is it possible?.
thanks and regards
gkreddybh
Since the bus is only 32 bits wide .. you can only get one word at a time.
You need multiple cycles to get multiple words from a word wide bus.

Mike
 

Welcome to EDABoard.com

Sponsor

Back
Top