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 srujan612
Visitor
5,385 Views
Registered: ‎06-16-2014

Unable to connect to micro-blaze in multi FPGA chain

Hi,                  

 

In my project, I am using two virtex7 FPGA's in chain. Each FPGA contains one micro-blaze processor. We are using XLINIX xmd to connect to micro-blaze. To connect to micro-blaze present in 1st FPGA we used the following command,

 

connect mb mdm -debugdevice deviceNr 1 cpunr 1

 

Using this command we were able to connect to micro-blaze in the 1st FPGA. We were successfully able to do data transactions using xmd. Then to disconnect from FPGA we used the following command,

 

disconnect 0 (disconnect 1 we tried first but it didn’t worked)

 

Then we tried to read data from the same micro-blaze setup in the 1st FPGA. And we were not able to read data which showed that we are disconnected from micro-blaze (expected). Then we tried to connect to micro-blaze present in the second fpga using the following command,

 

connect mb mdm -debugdevice deviceNr 2 cpunr 2

 

This time it showed error saying "no device". So we tried to modify the command to connect to micro-blaze as ,

 

connect mb mdm -debugdevice deviceNr 2 cpunr 1

 

This command successfully connected to micro-blaze. But when we read the device registers we found that it was connected to 1st FPGA micro-blaze rather connecting to second.

 

Can anybody say what is the exact issue and the right procedure to be followed so that we can connect to micro-blaze in respective FPGA’s.

 

Thanks

Srujan

 

 

0 Kudos
2 Replies
Xilinx Employee
Xilinx Employee
5,383 Views
Registered: ‎06-14-2012

Re: Unable to connect to micro-blaze in multi FPGA chain

The different Xilinx FPGAs must be in the same JTAG chain. The following two debug options are available for a single processor system:

 

GUI Method of Debugging Multiple Processors on different Xilinx FPGAs

 

NOTE: This method can be used with MicroBlaze or PowerPC/MicroBlaze systems.

1. Open XPS project for first Xilinx FPGA.
2. Select Options -> XMD Debug Options.
3. Deselect "Auto-Discover JTAG Chain Definition".
4. Specify the JTAG Devices in the Chain. Select the first FPGA as the Debug Device.
5. Click "Save". Launch the Debugger to start XMD and connect to the PowerPC (or MicroBlaze) on the first Xilinx FPGA.
6. Debug the program using GDB.
7. Open XPS project for second Xilinx FPGA.
8. SelectOptions -> XMD Debug Options.
9. Deselect "Auto-Discover JTAG Chain Definition".
10. Specify the JTAG Devices in the Chain. Select the second Xilinx FPGA as the Debug Device.
11. Click "Save". Launch the Debugger to start XMD and connect to the PowerPC (or MicroBlaze) on the second Xilinx FPGA.
12. Debug the program using GDB.

NOTE: XMD opens the GDBServer at port 1235. Connect to this port.

Command Line Method of Debugging Multiple Processors

1. Run two XMD sessions, each PowerPC (or MicroBlaze) connected through an XMD Session.
2. To distinguish between the PowerPCs (or MicroBlazes) at connect time from XMD, use the appropriate XMD connect options. Assuming that you have only two Xilinx FPGAs in the JTAG chain and both FPGAs are single PowerPC devices, perform the following:
a. Open the first XMD Window, and launch using the applicable command below:

For PowerPC

connect ppc hw -cable <JTAG Cable Type> -debugdevice devicenr 1

For MicroBlaze
connect mb hw -cable <JTAG Cable Type> -debugdevice devicenr 1
This step connects the first PowerPC (or MicroBlaze) in the first Xilinx FPGA in the JTAG Chain.

b. Open a second XMD Window, and launch using the applicable command below:

For PowerPC
connect ppc hw -cable <JTAG Cable Type> -debugdevice devicenr 2

For MicroBlaze
connect mb hw -cable <JTAG Cable Type> -debugdevice devicenr 2
This step connects the second PowerPC (or MicroBlaze) in the second Xilinx FPGA in the JTAG Chain.

c. Only one processor (or target) is "active" at any time in the XMD shell. For example, issuing an XMD command such as rrd or mrd applies to the active processor. Use the targets command to view the list of targets and to identify which targets are active ("*" indicates active targets).
d. To change between targets at any time, use the "targets <target num>" command.

 

Hope this helps.

 

Regards

Sikta

0 Kudos
5,352 Views
Registered: ‎07-27-2010

Re: Unable to connect to micro-blaze in multi FPGA chain

Hi Sikta,

Srujan here.

We are testing with Vivado 2014.1. So cant do the changes that you mentioned under
GUI Method of Debugging Multiple Processors on different Xilinx FPGAs""

I cant try "Command Line Method of Debugging Multiple Processors" as in my design 3 devices are in series and each fpga contains 1 microblaze in it. When I open second XMD and try to connect, it shows that JTAG is locked.(expected only)

Pls suggest the solution.

 

Thanks,

Srujan

0 Kudos