JTAG to AXI Master 简介
JTAG to AXI Master IP作为AXI Master驱动AXI transactions。JTAG to AXI Master加入AXI Interconnect,如下图所示,可以与Slave0,Slave1和Slave2通信。支持AXI4和AXI4-Lite协议,下面以JTAG to AXI Master 调试AXI BRAM Controller为例说明JTAG to AXI Master的使用方法。
![[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-lxAYU9Ov-1653306398599)(./pic/1.png)]](https://i-blog.csdnimg.cn/blog_migrate/8476865b436d07b61eb6692ffa5fac6c.png)
搭建调试环境
将JTAG to AXI Master 加入硬件平台,JTAG to AXI Master使用与AXI Interconnect相同的时钟与复位。AXI Interconnect的Master接口连接AXI BRAM Controller。
![[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-rgACrt6l-1653306398601)(./pic/2.png)]](https://i-blog.csdnimg.cn/blog_migrate/1e769e968583496e6176a3d738d51334.png)
AXI BRAM Controller设置如下:
![[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-QV9K5hNM-1653306398601)(./pic/3.png)]](https://i-blog.csdnimg.cn/blog_migrate/c16f3ff8c9a4a21c1cf948269e7ff2bd.png)
设置AXI BRAM Controller输出端口:
![[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-UaVPBs6l-1653306398602)(./pic/5.png)]](https://i-blog.csdnimg.cn/blog_migrate/8748d25f2f857474ce8819746f9844e0.png)
![[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-RO71lvNs-1653306398603)(./pic/4.png)]](https://i-blog.csdnimg.cn/blog_migrate/e0610922e25b42c2ab1420b8891b0102.png)
AXI BRAM Controller在内存中地址:
![[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-wf81aXnW-1653306398604)(./pic/9.png)]](https://i-blog.csdnimg.cn/blog_migrate/6ca040eaf5eb36b57595df07136a875e.png)
AXI BRAM Controller 读写时序
写时序
![[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-MJxCbD88-1653306398606)(./pic/6.png)]](https://i-blog.csdnimg.cn/blog_migrate/9816399745a6cb18922d737895208eca.png)
读时序
![[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-Z1BKLp53-1653306398607)(./pic/7.png)]](https://i-blog.csdnimg.cn/blog_migrate/e2687139154d1f207d450156b463a9f2.png)
根据读写时序,在PL端加入读写逻辑。
AXI4-Lite 读写
在TCL控制台发送指令,通过ila查看读写是否正常。
创建 AXI transaction,写入32bit数据
create_hw_axi_txn abc [get_hw_axis hw_axi_1] -address 80001000 -data 12345678 -type write
run_hw_axi abc
![[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-McK8DXcu-1653306398608)(./pic/10.png)]](https://i-blog.csdnimg.cn/blog_migrate/83cf6e530b00c6a858cc3d4d551959d1.png)
创建 AXI transaction,读32bit数据
create_hw_axi_txn def [get_hw_axis hw_axi_1] -address 80001000 -type read
run_hw_axi abc
![[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-MqvOPG7v-1653306398610)(./pic/11.png)]](https://i-blog.csdnimg.cn/blog_migrate/7d520fbdfba25aa1bd4d5f23563f9568.png)
AXI4读写
本次设计中采用AXI4-Lite协议,当选择AXI4协议时,读写指令如下:
写操作
往64bit地址,写入128bit数据。
create_hw_axi_txn wr_txn64 [get_hw_axis hw_axi_1] -address 0000000000000000 -data
{11111111_22222222_33333333_44444444_55555555_66666666_77777777_88888888} -len
8-size 32 -type write
读操作
从64bit地址,读出128bit数据。
create_hw_axi_txn rd_txn64 [get_hw_axis hw_axi_1] -address 0000000000000000 -len 8
-size 32-type read
1306

被折叠的 条评论
为什么被折叠?



