简体   繁体   English

Zynq 处理器的捕获图像数据存储在 Zynq 的 PS 块的内存中的哪个位置? 这样我就可以使用 AXI 接口将它带到 PL 块

[英]where in the memory of PS block of Zynq the captured image data is stored of Zynq Processor ? So that I can take it to PL block using AXI interface

I have a GigE camera.我有一个 GigE 相机。 I am using Zynq board.我正在使用 Zynq 板。 Now using linux programming I program the PS part of Zynq processor and capture the video and Now I have imagebuffer variable which has the captured Image data.现在使用 linux 编程,我对 Zynq 处理器的 PS 部分进行编程并捕获视频,现在我有 imagebuffer 变量,其中包含捕获的图像数据。 I want to take the data from PS to PL part using the AXI interface I am probably going to use the AXI_VDMA interconnect, the problem is where in the memory the Imagebuffer is stored so that I can bring it to the PL part in Zynq.我想使用 AXI 接口将数据从 PS 带到 PL 部分我可能会使用 AXI_VDMA 互连,问题是 Imagebuffer 存储在内存中的哪个位置,以便我可以将它带到 Zynq 中的 PL 部分。

Here is the image of Zynq processor.这是 Zynq 处理器的图像。在此处输入图片说明

In general, the CPU accesses the video image buffer using either a kernel or user space virtual address.通常,CPU 使用内核或用户空间虚拟地址访问视频图像缓冲区。 The progammable logic uses physical addresses, so you will need to translate the virtual address to a physical address and configure AXI_VDMA to use that.可编程逻辑使用物理地址,因此您需要将虚拟地址转换为物理地址并配置 AXI_VDMA 以使用它。

In there Linux kernel there is a device driver for xilinx_axi_vdma which uses dma-mapping to solve the virtual/physical mapping problem.在 Linux 内核中有一个用于 xilinx_axi_vdma 的设备驱动程序,它使用 dma-mapping 来解决虚拟/物理映射问题。

See XAPP792: and its corresponding reference design for more details on how to use this.有关如何使用它的更多详细信息,请参阅XAPP792:及其相应的参考设计。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM