arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1806.01106cs.DC
收藏

CNN加速器的HW/SW协同设计SoC存储器传输的性能评估

Performance evaluation over HW/SW co-design SoC memory transfers for a CNN accelerator

A. Rios-Navarro, R. Tapiador-Morales, A. Jimenez-Fernandez, M. Dominguez-Morales, C. Amaya, A. Linares-Barranco

摘要:

许多FPGA供应商最近在其设备中包括嵌入式处理器,如带有ARM-Cortex A内核的Xilinx,以及可编程逻辑单元。这些器件被称为可编程片上系统(PSoC)。它们的ARM内核(嵌入在处理系统或PS中)使用ARM标准AXI总线与可编程逻辑单元(PL)通信。在本文中,我们分析了在卷积神经网络(CNN)加速器的共同设计真实场景中,Xilinx Zynq FPGA的PS和PL之间的穷举数据传输性能,该加速器在专用硬件中处理来自神经形态视觉传感器的视觉信息流以进行分类。在PS侧,Linux操作系统正在运行,其将来自神经形态传感器的视觉事件重新收集到归一化帧中,然后将这些帧传输到多层CNN的加速器,并以每层的方式使用AXI-DMA总线读取结果。由于这些类型的加速器试图尽可能快地处理信息,因此数据带宽变得至关重要,并且保持良好的平衡数据吞吐率需要考虑一些因素。我们提出并评估了几种数据分区技术,以提高RX和TX传输和两种不同的传输管理方式之间的平衡:通过在操作系统的用户级轮询例程,并通过一个专用的基于中断的内核级驱动程序。我们证明,对于足够长的数据包,内核级驱动程序解决方案在计算CNN分类示例时可以获得更好的时间。使用内核级驱动程序的主要优点是有更安全的解决方案,并在操作系统中进行任务调度,以管理我们应用程序的其他重要过程,例如从传感器收集帧及其标准化。

英文摘要:

Many FPGAs vendors have recently included embedded processors in their devices, like Xilinx with ARM-Cortex A cores, together with programmable logic cells. These devices are known as Programmable System on Chip (PSoC). Their ARM cores (embedded in the processing system or PS) communicates with the programmable logic cells (PL) using ARM-standard AXI buses. In this paper we analyses the performance of exhaustive data transfers between PS and PL for a Xilinx Zynq FPGA in a co-design real scenario for Convolutional Neural Networks (CNN) accelerator, which processes, in dedicated hardware, a stream of visual information from a neuromorphic visual sensor for classification. In the PS side, a Linux operating system is running, which recollects visual events from the neuromorphic sensor into a normalized frame, and then it transfers these frames to the accelerator of multi-layered CNNs, and read results, using an AXI-DMA bus in a per-layer way. As these kind of accelerators try to process information as quick as possible, data bandwidth becomes critical and maintaining a good balanced data throughput rate requires some considerations. We present and evaluate several data partitioning techniques to improve the balance between RX and TX transfer and two different ways of transfers management: through a polling routine at the userlevel of the OS, and through a dedicated interrupt-based kernellevel driver. We demonstrate that for longer enough packets, the kernel-level driver solution gets better timing in computing a CNN classification example. Main advantage of using kernel-level driver is to have safer solutions and to have tasks scheduling in the OS to manage other important processes for our application, like frames collection from sensors and their normalization.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑