参考:
- SDSoc学习(二):搭建平台,使用EMIO点亮LED
- SDSoC-Tutorials/platform-creation-tutorial/Lab1-Creating-DSA-for-Zynq-MPSoC-Processor-Design.md
- Creating the Platform Hardware Component
- Device Support Archive (DSA)-GitHub Wiki
搭建硬件平台
打开vivado,新建工程
注意设置指定的硬件
进行系统设计
- 通过添加IP或者编写文件完成系统设计,生成bd文件
- 添加用户IP repository
- 添加IP
- 连接IP(自动连线和手动连线结合,自动连线需要设置)
- 声明Platform Hardware Interfaces 需要在bd界面,点击Window -> Platform Interfaces.
- Enabling the Platform Interfaces Tab
- Platform Name:Name, Vendor, Board, and Version
- Platform Clocks:Enable; Platform Interface Properties 里面设置(这一步很关键,不要忘了);Defaut
- Platform AXI Ports
- Platform Interrupts
- 将对应的bd文件生成output products
- 将对应的bd文件生成HDL wrapper;
创建约束文件(根据顶层文件中接口添加)
生成bit文件,导出硬件export hardware
生成dsa文件
- Write the DSA
write_dsa -force -include_bit dsa文件路径/文件名
- Validate the DSA
validate_dsa dsa文件路径/文件名
更改硬件平台
SDSoC Environment Platform Development Guide/Edit the Platform DSA SDSoC Environment Platform Development Guide/Creating the Platform Hardware Component
搭建软件平台
未完待续