UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Visitor orohev
Visitor
1,299 Views
Registered: ‎06-15-2017

ILA debugging on Arty board

Hello all,

 

I'm having some troubles while debugging with Arty (Artix 7 FPGA).

 

Background:

I used ILA to debug my program on Zybo (Zynq) and Nexys 4 DDR (also Artix 7), and everything worked fine.

I used the same procedure as before to debug a slightly different program on the Arty board, with no success...

 

The message I receive when programming the bitstream into the FPGA:

 

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 <C_USER_SCAN_CHAIN scan_chain_number>" 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 xc7a35t_0 and the probes file D:/Vivado_files/Arty_12960_FSM_ILA_2015/Arty_12960_FSM_ILA_2015.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.

 

I've tried the same procedure on both Vivado Design Suite 2015.4 and 2017.2.

I verified the programming was with the correct bitstream and probes file.

 

Is it possible the Arty does not support ILA debugging? I couldn't find anything on the net.

 

Thanks in advance!

Tags (2)
0 Kudos
2 Replies
Xilinx Employee
Xilinx Employee
1,293 Views
Registered: ‎08-01-2008

Re: ILA debugging on Arty board

check the steps given in warning message 

The clock net connected to dbg_hub is automatically selected by the tool based on the debug core configuration and connections.

However, you can change this clock net by modifying the "connect_debug_port" command in XDC.

The following are possible causes and solutions:

1. The clock that is connected to dbg_hub is a non-free-running clock.

  • To check which clock net is connected to the dbg_hub, follow these steps in the Vivado GUI: 
    Open the Synthesized design or Implemented design -> Right click the dbg_hub core in the netlist hierarchy and select "Schematic" -> Double click the "clk" pin
  • If this clock is a non-free-running clock, change it to a free running one by modifying this command in XDC:

    connect_debug_port dbg_hub/clk [get_nets <clock_net_name>]

 

 

2. The clock is a free running clock but the signal integrity of this clock net is not good.

Check if the quality of this clock signal on the board is good or not. One example of this issue is if the daughter card connector is not inserted tightly (clock is coming from the daughter card).

3. Try the second solution mentioned in the warning message which is to use the other User Scan Chain number. 

For example, the following are the steps to change to use Scan Chain number 2:

 

  • Change the C_USER_SCAN_CHAIN property of the dbg_hub core to 2. Please refer to (UG908) for how to change this property.
  • Manually launch hw_server in the Windows command prompt or a terminal on Linux: 

    hw_server -e "set xsdb-user-bscan <C_USER_SCAN_CHAIN 2>
Thanks and Regards
Balkrishan
--------------------------------------------------------------------------------------------
Please mark the post as an answer "Accept as solution" in case it helped resolve your query.
Give kudos in case a post in case it guided to the solution.
0 Kudos
Visitor orohev
Visitor
1,260 Views
Registered: ‎06-15-2017

Re: ILA debugging on Arty board

Thanks for the quick reply!

 

1. I'm not sure what is the exact definition of a free-running clock. I used the output clock from "clocking wizard" (clk_out1 in the attached diagram), and this is the same clock I've used in previous debugging on Zybo and Nexys (with success).

 

2. "Check if the quality of this clock signal on the board is good or not. One example of this issue is if the daughter card connector is not inserted tightly (clock is coming from the daughter card)."

This is a new board and I assume it is not damaged. Do you suggest to measure the clock with a scope?

 

3.  I've done as suggested, but I'm not sure how to continue.

I understand I need to type the command BEFORE programming the device. But what should I do next?

After connecting manually with connect_hw_server, there is no option to program the device and it says the device is closed (second picture).

 

Notice the second warning:

"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)."

This is why I assumed there is a problem with debugging with Arty, it says the device design has 0 ILA cores (even though I followed the same procedure that worked for me before).

 

Thanks again for the help.

Block Diagram.png
HW_target.png
0 Kudos