日本黄色一级经典视频|伊人久久精品视频|亚洲黄色色周成人视频九九九|av免费网址黄色小短片|黄色Av无码亚洲成年人|亚洲1区2区3区无码|真人黄片免费观看|无码一级小说欧美日免费三级|日韩中文字幕91在线看|精品久久久无码中文字幕边打电话

當(dāng)前位置:首頁 > > ZYNQ


ILA 簡介

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

添加 ILA

1.使用 IP 添加

添加IP

例化IP,并將所需要的信號放入 Probe 里面

2.圖形界面添加

  1. 給待測試的信號加上約束,防止被優(yōu)化
  1. 在綜合選項下點擊set up debug,選擇需要查看的信號即可

ILA 數(shù)據(jù)和波形的關(guān)系

  1. hw_ila表示的是ila核

  2. hw_ila_data表示保存在存儲器中的ila文件

  3. WCFG是波形配置(信號顏色,總線進制表示,信號順序,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 OR2. 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 OR2. Goto device properties and associate the correct probes file with the programming file already programmed in the device.

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

情景2:有波形窗口沒有波形

現(xiàn)象如下:

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

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

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

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

上電后查看 ILA 信號

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

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

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

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

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

%run_hw_ila -file ila_trig.tas [get_hw_ilas hw_ila_1]
  1. 打開實現(xiàn)后的implement工程

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

%apply_hw_ila_trigger ila_trig.tas

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

  1. 直接用Tcl命令生成bit文件,不能點擊生成bit命令,這樣工程會認為implement發(fā)生了改動而全部重新布線。
write_bitstream trig_at_startup.bit
  1. 下載bit到芯片。

參考鏈接

chrome-extension://ibllepbpahcoppkjjllbabhnigcbffpi/https://www.xilinx.com/support/documentation/sw_manuals/xilinx2020_1/ug908-vivado-programming-debugging.pdf#unique_239
chrome-extension://ibllepbpahcoppkjjllbabhnigcbffpi/https://www.xilinx.com/support/documentation/sw_manuals/xilinx2020_1/ug936-vivado-tutorial-programming-debugging.pdf




本站聲明: 本文章由作者或相關(guān)機構(gòu)授權(quán)發(fā)布,目的在于傳遞更多信息,并不代表本站贊同其觀點,本站亦不保證或承諾內(nèi)容真實性等。需要轉(zhuǎn)載請聯(lián)系該專欄作者,如若文章內(nèi)容侵犯您的權(quán)益,請及時聯(lián)系本站刪除。
關(guān)閉