Mapping Dual Port Ram into Microblaze address space

Jun 09, 2005 3 Replies

Hallo, I have created a user logic template for obp bus with Create/Import Wizard of EDK with the feature: user logic address range support.



Into file user_logic.vhd I have created a Dual port ram with core generator to replace the ram example.



Is it possible to map port B of dual port ram into microblaze address space?



In this way I could use a C pointer that points to microblaze mapped address space.



Otherwise the only way to access it is to use Xio_in and Xio_out ?



Many Thanks in advance to everyone Marco



Sorry for my bad english


Yes, connect the address bits of the opb bus to your bram port. Make a state machine which steers the enable and write_enable and the acknowledge to the opb bus.

Yes you can.

AFAIK, you should always be able to access your custom device by using pointers

In EDK, if you browse the install software directory for the opb libraries, you can possibly use the bram_controller.vhd for your application. You just have connect the bram_controller to the IPIF signals and set up the read and write enable lines i.e. bus2ip_arcs(0) & bus2ip_rnw for the read enable and the same for the write enable but with not(bus2ip_rnw). Within the BRAM_controller, a dual-port RAM is instantiated and the control is all setup correctly.

Paul

Marco wrote:

Join the Discussion

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

Didn't find your answer?

Ask the community — no account required