Mapping Dual Port Ram into Microblaze address space

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

Reply to
Marco
Loading thread data ...

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

Reply to
Frank van Eijkelenburg

Many Thanks Marco

Reply to
Marco

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:

Reply to
Paul Lee

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.