By Adam Taylor
Having now demonstrated that we can achieve excellent performance improvements with the Xilinx SDSoC development environment with just the simple click of a mouse, I would like to look a little deeper into how SDSoC performs this trick.
SDSoC accelerates functions within the PL (programmable logic) side of the Zynq SoC using something called the “connectivity framework,” which describes the logical and physical connections between the PL and PS (processor system) sides of the device. Unsurprisingly, SDSoC includes an API to allow transfers using this framework.
Of course the first question that should spring to mind is, “How does the tool know what logical and physical connections are available?” After all, it varies from one system implementation to the next. SDSoC achieves this feat by using two platform definitions: one defines the hardware and the other the software. Within the hardware platform, we will find the definition of the base platform as created in Vivado. So we will see:
The hardware description can be generated using Vivado and SDSoC.
The software descriptions provide SDSoC with information on:
What this means is that we can still develop a base platform using Vivado—if desired—using custom peripherals and then export the platform to SDSoC, allowing SDSoC to use the uncommitted AXI ports, etc. to produce a higher performing system. So SDSoC increase the performance of pre-existing designs, if you so desire. That’s pretty powerful.
SDSoC implements its connectivity framework with the above information and configuration.
So how does it work?
When you select a function to accelerate a function as we did previously with the mmult() function, SDSoC will:
It is this stub function that is actually called in place of the accelerated function. While the software interfaces to the stub function remain identical, its functionality is quite different. The stub function uses the connectivity framework to initialize and send/receive data to and from the PL hardware where the accelerated function now resides.
How the connectivity framework works is really exciting. It uses implementation-independent software API calls to synchronize data transfers to and from the PL. When the code is built, these calls are then translated to the correct drivers based upon the configuration of the AXI network created.
Over the next few weeks we will look at how we can optimize performance even more, now that we understand a little more about how SDSoC works.
Now, you can have convenient, low-cost Kindle access to the first year of Adam Taylor’s MicroZed Chronicles for a mere $7.50. Click here.
本视频基于Xilinx公司的Artix-7FPGA器件以及各种丰富的入门和进阶外设,提供了一些典型的工程实例,帮助读者从FPGA基础知识、逻辑设计概念
本课程为“从零开始大战FPGA”系列课程的基础篇。课程通俗易懂、逻辑性强、示例丰富,课程中尤其强调在设计过程中对“时序”和“逻辑”的把控,以及硬件描述语言与硬件电路相对应的“
课程中首先会给大家讲解在企业中一般数字电路从算法到流片这整个过程中会涉及到哪些流程,都分别使用什么工具,以及其中每个流程都分别做了
@2003-2020 中国电子顶级开发网