作者:缘来是你远去是我,文章来源:CSDN博客
先从运行一个创建一个项目开始吧。
首先打开Vivado设计套件Vivado HLS 2015.4;
![](http://xilinx.eetrend.com/files/2022-02/%E5%8D%9A%E5%AE%A2/100557735-242887-1.png)
输入项目的名称和存放的位置;
![](http://xilinx.eetrend.com/files/2022-02/%E5%8D%9A%E5%AE%A2/100557735-242888-2.png)
点击下一步,输入设计顶层函数的名称,接着下一步;
![](http://xilinx.eetrend.com/files/2022-02/%E5%8D%9A%E5%AE%A2/100557735-242889-3.png)
暂时不需要填写,直接下一步;
![](http://xilinx.eetrend.com/files/2022-02/%E5%8D%9A%E5%AE%A2/100557735-242890-4.png)
解决方案的名字默认 (solution1)就好, 时钟周期根据需要自己设,这里我设(10 ns), 时钟的不确定性一般为12.5%,接着选择器件,最后“finish”。
![](http://xilinx.eetrend.com/files/2022-02/%E5%8D%9A%E5%AE%A2/100557735-242891-5.png)
将该例程的设计文件和testbench全部复制到刚才创建的项目目录下:
![](http://xilinx.eetrend.com/files/2022-02/%E5%8D%9A%E5%AE%A2/100557735-242892-6.png)
在设计资源窗口右击“Source”,添加设计文件;
![](http://xilinx.eetrend.com/files/2022-02/%E5%8D%9A%E5%AE%A2/100557735-242893-7.png)
再接着右击“Test Bench”,添加文件;
![](http://xilinx.eetrend.com/files/2022-02/%E5%8D%9A%E5%AE%A2/100557735-242894-8.png)
至此,项目建设完成。接着进行综合仿真,验证设计。 点击“Run C Snthry”。
![](http://xilinx.eetrend.com/files/2022-02/%E5%8D%9A%E5%AE%A2/100557735-242895-9.png)
![](http://xilinx.eetrend.com/files/2022-02/%E5%8D%9A%E5%AE%A2/100557735-242896-10.png)
点击“Run C Simulation”,接着点击“OK”;
![](http://xilinx.eetrend.com/files/2022-02/%E5%8D%9A%E5%AE%A2/100557735-242897-11.png)
![](http://xilinx.eetrend.com/files/2022-02/%E5%8D%9A%E5%AE%A2/100557735-242898-12.png)
至此,此项目在没有硬件调试的前提下算是成功运行了。