Memory Controller and State Machine

Jun 24, 2005 1 Replies

Hallo, I'm trying to create a memory controller based on a state machine to send to Microbalze signals like ram_data_out, read_acknowledge, write_acknowledge, etc...



I have connected it to OPB Bus.



My trouble is that I don't have a clear idea of the steps to read, write, read_acknowledge, write_acknowledge, etc...



In example: when microblaze must read data:



States:



0 -> 1) enable RAM
1 -> 2) assign address that comes from bus to ram address and assign ram_data_out to bus_data
2 -> 3) read_acknowledge = 1
3 -> 0) disable ram

Is it correct?



Where I could find a good documentation about it?



Many Thanks Marco


I just added a answer to your original thread with the dual-port RAM. Try using the bram_controller block within the opb libraries. You just have connect the IPIF signals to it and generate the read and write enables.

Paul

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required