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: 
Highlighted
Visitor michald
Visitor
8,872 Views
Registered: ‎03-21-2016

How to write data to BRAM from PL?

Hello,

 

I would like to transfer data (parts of video stream) from PL to PS. I thought that the best way would be using BRAM. I'd like to write data to BRAM from PL, than call inteerrupt (PL-PS) and read data with PS from BRAM. 

 

Could anyone help me to design it? I (think I) know how do read data from BRAM uisng PS, but I do not know how to access BRAM using PL. Any help would be appreciated! :)

 

Thank you!

Tags (3)
0 Kudos
3 Replies
Teacher muzaffer
Teacher
8,835 Views
Registered: ‎03-31-2012

Re: How to write data to BRAM from PL?

actually you can read/write a bram only from PL and you need extra provisions to get PS to read/write to it. In Zynq, if video data arrives through the PL pins, the easiest thing to do would be to write it to the DRAM directly; although that has its own problems related to caching.
- Please mark the Answer as "Accept as solution" if information provided is helpful.
Give Kudos to a post which you think is helpful and reply oriented.
Newbie marina91
Newbie
6,442 Views
Registered: ‎05-30-2016

Re: How to write data to BRAM from PL?

Hi, did you find a solution to write in bram from pl?
I can see only zeros!

Thanks
Marina

0 Kudos
Visitor michald
Visitor
6,397 Views
Registered: ‎03-21-2016

Re: How to write data to BRAM from PL?

Yes.

 

Here you have tutorials how to transfer data between PL and PS by AXI (and how to use BRAM Controller with PS):

https://www.youtube.com/watch?v=meQcwzC4Vtk&list=PL4D6H9w4Ihdp0YRExoQXfbVMRL1GgEPCm&index=6

https://www.youtube.com/watch?v=Vs0h0kue7p4&list=PL4D6H9w4Ihdp0YRExoQXfbVMRL1GgEPCm&index=7

 

For bigger amount of data I use BRAM Controller.

 

Firstly I write data from PL to BRAM, then I call interrupt in PS and later I read data from BRAM in PS, and clear inetrrupt.

 

 

0 Kudos