mpsoc开发实例——通过emio引出gpio -澳门皇冠贵宾会网址
文章来源:米尔科技 发布日期:2020.12.26 浏览次数:30 次 |
mpsoc系列处理器是赛灵思推出的新一代集成soc,号称比zynq系列性能高5倍。与zynq相比,mpsoc最最突出的是集成 4core a53 / 2 core r5、gpu、h264等,在图形图像处理、智能算法等比较有竞争力有较大优势。此外,mpsoc接口也很有优势,zynq中除了acp口,并没有提供其他cache一致性接口,而mpsoc提供了cci总线,cci总线上连接的a53/r5/gpu/dma等可以高效的同步数据,而不用对cache进行特殊操作,这大大提高了数据搬运的效率。本篇文章使用米尔myd-czu3eg开发板实操,介绍怎样通过 emio引出 gpio, 并在 sdk 中控制 d37 和 d41 闪烁。

开发环境:vivado 2017.4,开发板型号:米尔myd-czu3eg, 主芯片xczu3eg-1sfvc784。这个系列板子还有4ev,5ev等版本,手里的3eg版本不支持sfp,因此板上相应接口(白色部分)是空贴的。
生成的vivado工程(如果不知道如何生成可以参考前面的工程)
step1新建block design

点击ok

step2添加ps的ip核并配置
点击这个add ip添加ip核

输入mpsoc,然后双击zynq ultrascale mpsoc添加mpsoc核

zynq mpsoc核如下图所示

双击zynq mpsoc核导入配置文件
presets-->apply configuration

这里导入的是gpio_emio.tcl配置文件

配置完成后,如下图所示

在gpio管脚上右击选择make external

引出的gpio管脚如下图所示

step3 生成综合文件

step4 生成fpga顶层文件

step5 添加xdc管脚约束

选择add create constraints

选择create file

添加一个gpio_emio.xdc文件

点击finish

将我们提供的工程里面的xdc文件复制到这个gpio_emio.xdc文件里

step6 生成bit文件

step7导出硬件配置文件
点击菜单栏上的 file->export->export hardware->ok 导出硬件配置文件


step8 启动sdk,新建fsbl
点击菜单栏上的 file->launch sdk->ok 启动 sdk

点击fileapplication project新建工程

输入工程名为fsbl

选择zynq mp fsbl

生成的fsbl如下图所示

step9 新建一个gpio_emio工程
点击fileapplication project新建工程

输入工程名gpio_emio

选择hello_world工程模板

新建gpio_emio工程完成后,如下图所示

将我们提供的gpio_emio工程的程序复制到这个hello_world工程模板里

step10 生成boot.bin文件
右击 gpio_emio ->create boot image

点击create image,生成boot.bin启动文件

将这个boot.bin文件拷贝到sd卡

开发板模式设置,这里我们设置为sd卡启动模式



开发板连接12v电源、连接uart串口、插入sd卡

开发板上电运行,两个led会同时闪烁

本文来自澳门皇冠贵宾会网址-皇冠集团网址442科技,原文地址:
http://www.myir-tech.com/resource/559.asp,转载请注明出处。