当前位置:首页 > FPGA > 正文内容

ZYNQ7010 在线重配置 使用PS配置PL

chanra1n3天前FPGA47

首先PL端编译后生成重配置用的固件

write_cfgmem  -format bin -interface SMAPx32 -loadbit {up 0x00000000 "/home/chanra1n/ZYNQ7010/ZYNQ7010.runs/impl_1/top.bin" } -force -disablebitswap -file "/home/chanra1n/ZYNQ7010/ZYNQ7010.runs/impl_1/topnew.bin"

对应的路径和文件名请参考你自己的

image.png

然后运行:

write_cfgmem  -format bin -interface SMAPx32 -loadbit {up 0x00000000 "/home/chanra1n/ZYNQ7010/ZYNQ7010.runs/impl_1/top.bit" } -force -disablebitswap -file "/home/chanra1n/ZYNQ7010/ZYNQ7010.runs/impl_1/topnew.bin"
Command: write_cfgmem -format bin -interface SMAPx32 -loadbit {up 0x00000000 "/home/chanra1n/ZYNQ7010/ZYNQ7010.runs/impl_1/top.bit" } -force -disablebitswap -file /home/chanra1n/ZYNQ7010/ZYNQ7010.runs/impl_1/topnew.bin
Creating config memory files...
INFO: [Writecfgmem 68-23] Start address provided has been multiplied by a factor of 4 due to the use of interface SMAPX32.
Creating bitstream load up from address 0x00000000
Loading bitfile /home/chanra1n/ZYNQ7010/ZYNQ7010.runs/impl_1/top.bit
Memory size is calculated to be 2 MB
Writing file /home/chanra1n/ZYNQ7010/ZYNQ7010.runs/impl_1/topnew.bin
Writing log file /home/chanra1n/ZYNQ7010/ZYNQ7010.runs/impl_1/topnew.prm
===================================
Configuration Memory information
===================================
File Format        BIN
Interface          SMAPX32
Size               2M
Start Address      0x00000000
End Address        0x001FFFFF

Addr1         Addr2         Date                    File(s)
0x00000000    0x001FCB9B    Apr 25 14:57:38 2025    /home/chanra1n/ZYNQ7010/ZYNQ7010.runs/impl_1/top.bit
1 Infos, 0 Warnings, 0 Critical Warnings and 0 Errors encountered.
write_cfgmem completed successfully

紧接着将程序发送至PS端,运行:

fpgautilfpgautil: FPGA Utility for Loading/reading PL ConfigurationUsage:  fpgautil -b <bin file path> -o <dtbo file path>Options: -b <binfile>           (Bin file path)
         -o <dtbofile>          (DTBO file path)
         -f <flags>             Optional: <Bitstream type flags>
                                   f := <Full | Partial >
         -n <Fpga region info>  FPGA Regions represent FPGA's
                                and partial reconfiguration
                                regions of FPGA's in the
                                Device Tree                                Default: <full>
          -s <secure flags>     Optional: <Secure flags>
                                   s := <AuthDDR | AuthOCM | EnUsrKey | EnDevKey | AuthEnUsrKeyDDR | AuthEnUsrKeyOCM | AuthEnDevKeyDDR | AuthEnDevKeyOCM>
          -k <AesKey>           Optional: <AES User Key>
          -r <Readback>         Optional: <file name>                                Default: By default Read back contents will be stored in readback.bin file
          -t                    Optional: <Readback Type>                                   0 - Configuration Register readback                                   1 - Configuration Data Frames readback                                Default: 0 (Configuration register readback)
          -R                    Optional: Remove overlay from a live treeExamples:(Load Full bitstream using Overlay)
fpgautil -b top.bit.bin -o can.dtbo -f Full -n full
(Load Partial bitstream using Overlay)
fpgautil -b rm0.bit.bin -o rm0.dtbo -f Partial -n PR0
(Load Full bitstream using sysfs interface)
fpgautil -b top.bit.bin -f Full
(Load Partial bitstream using sysfs interface)
fpgautil -b rm0.bit.bin -f Partial(Load Authenticated bitstream through the sysfs interface)
fpgautil -b top.bit.bin -f Full -s AuthDDR
(Load Parital Encrypted Userkey bitstream using Overlay)
fpgautil -b top.bit.bin -o pl.dtbo -f Partial -s EnUsrKey -k <32byte key value>
(Read PL Configuration Registers)
fpgautil -b top.bit.bin -r
(Remove Partial Overlay)
fpgautil -R -n PR0
(Remove Full Overlay)
fpgautil -R -n fullNote: fpgautil -R is responsible for only removing the dtbo file from the livetree. it will not remove the PL logic from the FPGA region.

只加载bit文件:fpgautil -b top.bin -f Full 

加载bit和设备树:fpgautil -b top.bin -o can.dtbo -f Full -n full

部分重配置:fpgautil -b top.bin -o top.dtbo -f Partial -n PR0

扫描二维码推送至手机访问。

版权声明:本文由我的FPGA发布,如需转载请注明出处。

本文链接:https://www.myfpga.cn/index.php/post/445.html

分享给朋友:

“ZYNQ7010 在线重配置 使用PS配置PL” 的相关文章

FPGA ALARM FPGA多功能闹钟 完整项目 内含上位机

FPGA ALARM FPGA多功能闹钟 完整项目 内含上位机

一、项目简述本项目使用苏州硬禾信息科技有限公司设计的小脚丫FPGA开发板设计了一个完成定时、测温、报警、控制的小项目,并通过上位机显示、下发音乐配置数据。本项目B站介绍:https://www.bilibili.com/video/BV1Vh411k7QV/二、研究进展(一)研究内容:l ...

ALGO C4MB V11引脚参照表(持续更新)

ALGO C4MB V11引脚参照表(持续更新)

功能:常用引脚CLKPIN_E1LED0PIN_G15LED1PIN_F16LED2PIN_F15LED3PIN_D16KEY1PIN_E15KEY2PIN_E16KEY3PIN_M15KEY4PIN_M16RXDPIN_M2TXDPIN_G1功能:VGA引脚VGA_BLUE[0]PIN_C15VG...

Verilog实现时钟分频(奇数分频,偶数分频)二分频 三分频 四分频 五分频

Verilog实现时钟分频(奇数分频,偶数分频)二分频 三分频 四分频 五分频

完整工程文件:clkdiv.zip//------------------------------------------------------// File Name        : clkdiv.v// Author     &nb...

Verilog实现串并转换

Verilog实现串并转换

项目文件:SIPO.zip//------------------------------------------------------// File Name        : SIPO.v// Author       &n...

CDC 单脉冲信号处理

CDC 单脉冲信号处理

代码中的Sys_clk其实是没有用到的,项目文件:cdc_single.zip//------------------------------------------------------// File Name        : cdc.v// Autho...

点亮LED灯实验

点亮LED灯实验

设计流程:设计规划 -> 波形绘制 -> 代码编写 -> 代码编译 -> 逻辑仿真 -> 波形对比 -> 绑定管脚 -> 分析综合布局布线 -> 上板验证新建项目文件夹(led):Doc:放置文档资料(数据手册、波形图、文档、项目日志)Pri:放置工程...