取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
Highlighted
Contributor
Contributor
330 次查看
注册日期: ‎03-14-2017

MPSoC如何使用ACP接口

跳至解决方案

我目前在尝试使用zcu104上的acp接口,目前的设计如下:

 

捕获.PNG

如果将ACP换成S_AXI_HP0的话加速器是能够返回正确结果的,但是用ACP的话加速器返回来的结果全是0

 

0 项奖励
1 解答

已接受的解答
Highlighted
Xilinx Employee
Xilinx Employee
291 次查看
注册日期: ‎06-19-2019

应该就是往对应的内存地址写数, CPU会先把数据放入Cache

------------------------------------------------------------------
Don't forget to reply, kudo, and accept as solution.
如果提供的信息能解决您的问题,请标记为“接受为解决方案”。
如果您认为帖子有帮助,请点击“奖励”。谢谢!
-------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
3 回复数
Highlighted
Xilinx Employee
Xilinx Employee
318 次查看
注册日期: ‎06-19-2019

UG1085有ACP接口的使用要求,你对照一下看看是否哪里没有满足。

ACP Usage
The ACP provides a low-latency path between the PS and the accelerators implemented in
the PL when compared with a legacy cache flushing and loading scheme. Steps that must
take place in an example of a PL-based accelerator are as follows.
1. The CPU prepares input data for the accelerator within its local cache space.
2. The CPU sends a message to the accelerator using one of the HPM AXI master interfaces
to the PL.
3. The accelerator fetches the data through the ACP, processes the data, and returns the
result through the ACP.

4.The accelerator sets a flag by writing to a known location to indicate that the data
processing is complete. The status of this flag can be polled by the processor or can
generate an interrupt.

------------------------------------------------------------------
Don't forget to reply, kudo, and accept as solution.
如果提供的信息能解决您的问题,请标记为“接受为解决方案”。
如果您认为帖子有帮助,请点击“奖励”。谢谢!
-------------------------------------------------------------------
Highlighted
Contributor
Contributor
315 次查看
注册日期: ‎03-14-2017

感谢您的回复!

这四项要求我没有满足第一项,不知道如何在local cache space里准备数据呢?我目前在linux系统下调用的加速器。

0 项奖励
Highlighted
Xilinx Employee
Xilinx Employee
292 次查看
注册日期: ‎06-19-2019

应该就是往对应的内存地址写数, CPU会先把数据放入Cache

------------------------------------------------------------------
Don't forget to reply, kudo, and accept as solution.
如果提供的信息能解决您的问题,请标记为“接受为解决方案”。
如果您认为帖子有帮助,请点击“奖励”。谢谢!
-------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励