電子發(fā)燒友App

硬聲App

0
  • 聊天消息
  • 系統(tǒng)消息
  • 評(píng)論與回復(fù)
登錄后你可以
  • 下載海量資料
  • 學(xué)習(xí)在線課程
  • 觀看技術(shù)視頻
  • 寫文章/發(fā)帖/加入社區(qū)
會(huì)員中心
創(chuàng)作中心

完善資料讓更多小伙伴認(rèn)識(shí)你,還能領(lǐng)取20積分哦,立即完善>

3天內(nèi)不再提示
創(chuàng)作
電子發(fā)燒友網(wǎng)>電子資料下載>可編程邏輯>Vivado之ILA詳解

Vivado之ILA詳解

2021-01-22 | pdf | 1.29MB | 次下載 | 3積分

資料介紹

本文轉(zhuǎn)載自:ZYNQ微信公眾號(hào)

ILA 簡介
集成邏輯分析儀 (Integrated Logic Analyzer :ILA) 功能允許用戶在 FPGA 設(shè)備上執(zhí)行系統(tǒng)內(nèi)調(diào)試后實(shí)現(xiàn)的設(shè)計(jì)。當(dāng)設(shè)計(jì)中需要監(jiān)視信號(hào)時(shí),應(yīng)使用此功能。用戶還可以使用此功能在硬件事件和以系統(tǒng)速度捕獲數(shù)據(jù)時(shí)觸發(fā)。

添加 ILA
1.使用 IP 添加
添加IP

例化IP,并將所需要的信號(hào)放入 Probe 里面

2.圖形界面添加
給待測試的信號(hào)加上約束,防止被優(yōu)化

在綜合選項(xiàng)下點(diǎn)擊set up debug,選擇需要查看的信號(hào)即可

ILA 數(shù)據(jù)和波形的關(guān)系
1. hw_ila表示的是ila核

2. hw_ila_data表示保存在存儲(chǔ)器中的ila文件

3. WCFG是波形配置(信號(hào)顏色,總線進(jìn)制表示,信號(hào)順序,marker等)

4. WDB是波形數(shù)據(jù)庫(波形數(shù)據(jù))

ILA 失敗情景
情景1:沒有波形窗口
現(xiàn)象如下:

WARNING: [Labtools 27-3123] The debug hub core was not detected at User Scan Chain 1 or 3.
Resolution:
1. Make sure the clock connected to the debug hub (dbg_hub) core is a free running clock and is active OR
2. Manually launch hw_server with -e "set xsdb-user-bscan " to detect the debug hub at User Scan Chain of 2 or 4. To determine the user scan chain setting, open the implemented design and use: get_property C_USER_SCAN_CHAIN [get_debug_cores dbg_hub].
WARNING: [Labtools 27-1974] Mismatch between the design programmed into the device xc7z010_1 and the probes file E:/Xilinx/example/dma_sg_m/dma_sg_m.runs/impl_1/debug_nets.ltx.
The device design has 0 ILA core(s) and 0 VIO core(s). The probes file has 1 ILA core(s) and 0 VIO core(s).
Resolution:
1. Reprogram device with the correct programming file and associated probes file OR
2. Goto device properties and associate the correct probes file with the programming file already programmed in the device.

解決方法:查看 ILA 的時(shí)鐘,如果不是自由時(shí)鐘會(huì)出現(xiàn)這種問題,然后重啟VIVADO軟件,重新打開

情景2:有波形窗口沒有波形
現(xiàn)象如下:

使用示波器查看ILA信號(hào)發(fā)現(xiàn)時(shí)鐘頻率發(fā)現(xiàn)是10M


分析:查看 Xilinx 手冊(cè)發(fā)現(xiàn)JATG的時(shí)鐘頻率要比被ILA的時(shí)鐘頻率2.5倍低

解決方法1:修改 Hardware Target 的 JTAG 時(shí)鐘頻率

解決方法2:在TCL里面添加約束

上電后查看 ILA 信號(hào)

使用場景:flash偶爾在上電后讀出來后出錯(cuò),可以使用該方法。

一般情況下都是讓要抓的事件延遲發(fā)生或者循環(huán)發(fā)生,方便調(diào)試。

如果實(shí)在要抓啟動(dòng)時(shí)的事件,按下面的步驟:(下面流程是ILA核在綜合階段不能浮空)

先把有ILA核的bit文件下進(jìn)去,設(shè)置觸發(fā)好條件

運(yùn)行下面的Tcl命令把觸發(fā)寄存器的值保存在tas文件中

%run_hw_ila -file ila_trig.tas [get_hw_ilas hw_ila_1]

打開實(shí)現(xiàn)后的implement工程

運(yùn)行下面的Tcl命令把觸發(fā)設(shè)置加到當(dāng)前內(nèi)存里已經(jīng)布線的implement設(shè)計(jì)上去

%apply_hw_ila_trigger ila_trig.tas

注意:如果發(fā)生錯(cuò)誤的話說明ILA核在綜合過程中被flattened了,這時(shí)需要設(shè)置保留hierarchy重新綜合實(shí)現(xiàn)。

直接用Tcl命令生成bit文件,不能點(diǎn)擊生成bit命令,這樣工程會(huì)認(rèn)為implement發(fā)生了改動(dòng)而全部重新布線。

write_bitstream trig_at_startup.bit

下載bit到芯片

參考鏈接

chrome-extension://ibllepbpahcoppkjjllbabhnigcbffpi/https://www.xilinx.com/support/documentation/sw_manuals/xilinx2020_1/ug9...

chrome-extension://ibllepbpahcoppkjjllbabhnigcbffpi/https://www.xilinx.com/support/documentation/sw_manuals/xilinx2020_1/ug9...

下載該資料的人也在下載 下載該資料的人還在閱讀
更多 >

評(píng)論

查看更多

下載排行

本周

  1. 1電子電路原理第七版PDF電子教材免費(fèi)下載
  2. 0.00 MB  |  1491次下載  |  免費(fèi)
  3. 2單片機(jī)典型實(shí)例介紹
  4. 18.19 MB  |  95次下載  |  1 積分
  5. 3S7-200PLC編程實(shí)例詳細(xì)資料
  6. 1.17 MB  |  27次下載  |  1 積分
  7. 4筆記本電腦主板的元件識(shí)別和講解說明
  8. 4.28 MB  |  18次下載  |  4 積分
  9. 5開關(guān)電源原理及各功能電路詳解
  10. 0.38 MB  |  11次下載  |  免費(fèi)
  11. 6100W短波放大電路圖
  12. 0.05 MB  |  4次下載  |  3 積分
  13. 7基于單片機(jī)和 SG3525的程控開關(guān)電源設(shè)計(jì)
  14. 0.23 MB  |  4次下載  |  免費(fèi)
  15. 8基于AT89C2051/4051單片機(jī)編程器的實(shí)驗(yàn)
  16. 0.11 MB  |  4次下載  |  免費(fèi)

本月

  1. 1OrCAD10.5下載OrCAD10.5中文版軟件
  2. 0.00 MB  |  234313次下載  |  免費(fèi)
  3. 2PADS 9.0 2009最新版 -下載
  4. 0.00 MB  |  66304次下載  |  免費(fèi)
  5. 3protel99下載protel99軟件下載(中文版)
  6. 0.00 MB  |  51209次下載  |  免費(fèi)
  7. 4LabView 8.0 專業(yè)版下載 (3CD完整版)
  8. 0.00 MB  |  51043次下載  |  免費(fèi)
  9. 5555集成電路應(yīng)用800例(新編版)
  10. 0.00 MB  |  33562次下載  |  免費(fèi)
  11. 6接口電路圖大全
  12. 未知  |  30320次下載  |  免費(fèi)
  13. 7Multisim 10下載Multisim 10 中文版
  14. 0.00 MB  |  28588次下載  |  免費(fèi)
  15. 8開關(guān)電源設(shè)計(jì)實(shí)例指南
  16. 未知  |  21539次下載  |  免費(fèi)

總榜

  1. 1matlab軟件下載入口
  2. 未知  |  935053次下載  |  免費(fèi)
  3. 2protel99se軟件下載(可英文版轉(zhuǎn)中文版)
  4. 78.1 MB  |  537793次下載  |  免費(fèi)
  5. 3MATLAB 7.1 下載 (含軟件介紹)
  6. 未知  |  420026次下載  |  免費(fèi)
  7. 4OrCAD10.5下載OrCAD10.5中文版軟件
  8. 0.00 MB  |  234313次下載  |  免費(fèi)
  9. 5Altium DXP2002下載入口
  10. 未知  |  233046次下載  |  免費(fèi)
  11. 6電路仿真軟件multisim 10.0免費(fèi)下載
  12. 340992  |  191183次下載  |  免費(fèi)
  13. 7十天學(xué)會(huì)AVR單片機(jī)與C語言視頻教程 下載
  14. 158M  |  183277次下載  |  免費(fèi)
  15. 8proe5.0野火版下載(中文版免費(fèi)下載)
  16. 未知  |  138039次下載  |  免費(fèi)