UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Explorer
Explorer
1,228 Views
Registered: ‎10-12-2016

how to read/write internal memory in the PL using PS

Hi all,


I am doing a project sq100 related , we created block design using vivado

BD(Block Design) :  one AHB-master , one AXI-slave, interface . Zynq 7000 process and one AXI-interconnect .


my doubt is : with this BD i integrated PL and generated bit stream. But how to test internal PL memories using PS .


0 Kudos
6 Replies
Voyager
Voyager
1,213 Views
Registered: ‎06-24-2013

Re: how to read/write internal memory in the PL using PS

Hey @ssampath,

 

Block RAM (BRAM) contained in the Programmable Logic (PL) can be accessed from the PS via the AXI Bus, given that there is some AXI Slave present in the PL which does connect to the BRAM in some way.

 

Options here are ...

  • The AXI BRAM controller
  • A soft CPU with access to the BRAM
  • Logic which connects the BRAM to an AXI (Lite) Slave

Hope this helps,

Herbert

-------------- Yes, I do this for fun!
0 Kudos
Explorer
Explorer
1,130 Views
Registered: ‎10-12-2016

Re: how to read/write internal memory in the PL using PS

As you said AXI interface indirectly connected to BRAM , but in address editor am not getting any base address for this AXI-slave on PS side .

0 Kudos
Explorer
Explorer
1,108 Views
Registered: ‎10-12-2016

Re: how to read/write internal memory in the PL using PS

Now I directly connected AXI slave from Processor , using GP0 slave . 

 

But I am unable to get exact base address of this GP0 slave .

 

 

Please help on this .

 

Thank you .

0 Kudos
Voyager
Voyager
1,095 Views
Registered: ‎06-24-2013

Re: how to read/write internal memory in the PL using PS

Hey @ssampath,

 

Now I directly connected AXI slave from Processor , using GP0 slave.

If you connected to the GP0 slave port of the PS, then your interface acts as AXI Master and can access all of the memory. This is another option, but not the one I suggested. What I suggested was to use an AXI Slave connected to one of the GP Master ports to map the BRAM into the PS memory space.

 

Hope this clarifies,

Herbert

-------------- Yes, I do this for fun!
0 Kudos
Explorer
Explorer
1,035 Views
Registered: ‎10-12-2016

Re: how to read/write internal memory in the PL using PS

Thank you so much, but i am little bit confusing ,

 

In PL side AXI master interface is there, so i enabled S_AXI_GP0 in PS  and i connected these two, is it correct and how to generate communication on this AXI bus.

 

sq100BD.JPG

0 Kudos
Voyager
Voyager
1,031 Views
Registered: ‎06-24-2013

Re: how to read/write internal memory in the PL using PS

Hey @ssampath,

 

Thank you so much, but i am little bit confusing.

No problem, happens ... :)

 

In PL side AXI master interface is there, so i enabled S_AXI_GP0 in PS  and i connected these two

They do not look connected in your block diagram though ...

 

is it correct and how to generate communication on this AXI bus.

Basically yes, but you need to have the same AXI protocol on both sides or use some kind of protocol converter (like for example the samrt connect).

 

Hope this helps,

Herbert

-------------- Yes, I do this for fun!
0 Kudos