How to use Xilinx Virtual Cable (XVC) with ILA
The Xilinx Virtual Cable (XVC) lets you remotely access the ILA
(A.K.A. Chipscope
) via the KCU105 PGP (instead of using JTAG).
The XVC will let you view and interact with ILA remotely via
the same PGP link that you use for register access
and data streaming.
However, XVC does NOT support non-ILA debugging operations:
JTAG programming
IBERT debugging
MIG calibration results
For more information about XVC, refer to the Xilinx XVC homepage:
Note: To setup the XVC in ruckus, you will need to define
and set USE_XVC_DEBUG = 1
in your target’s makefile:
# Using XVC Debug bridge export USE_XVC_DEBUG = 1
In the firmware (firmware/common/rtl/Pgp.vhd
), the surf.UdpDebugBridgeWrapper
is mapped to Virtual Channel (VC) 2:
U_VC2_RX : entity surf.PgpRxVcFifo generic map ( TPD_G => TPD_G, ROGUE_SIM_EN_G => SIMULATION_G, PHY_AXI_CONFIG_G => PGP4_AXIS_CONFIG_C, APP_AXI_CONFIG_G => EMAC_AXIS_CONFIG_C) port map ( -- PGP Interface (pgpClk domain) pgpClk => pgpClk, pgpRst => pgpRst, rxlinkReady => pgpRxOut.linkReady, pgpRxMaster => pgpRxMasters(2), pgpRxCtrl => pgpRxCtrl(2), pgpRxSlave => pgpRxSlaves(2), -- AXIS Interface (axisClk domain) axisClk => axilClock, axisRst => axilReset, axisMaster => ibXvcMaster, axisSlave => ibXvcSlave); U_XVC : entity surf.UdpDebugBridgeWrapper generic map ( TPD_G => TPD_G) port map ( -- Clock and Reset clk => axilClock, rst => axilReset, -- UDP XVC Interface obServerMaster => ibXvcMaster, obServerSlave => ibXvcSlave, ibServerMaster => obXvcMaster, ibServerSlave => obXvcSlave); U_VC2_TX : entity surf.PgpTxVcFifo generic map ( TPD_G => TPD_G, APP_AXI_CONFIG_G => EMAC_AXIS_CONFIG_C, PHY_AXI_CONFIG_G => PGP4_AXIS_CONFIG_C) port map ( -- AXIS Interface (axisClk domain) axisClk => axilClock, axisRst => axilReset, axisMaster => obXvcMaster, axisSlave => obXvcSlave, -- PGP Interface (pgpClk domain) pgpClk => pgpClk, pgpRst => pgpRst, rxlinkReady => pgpRxOut.linkReady, txlinkReady => pgpTxOut.linkReady, pgpTxMaster => pgpTxMasters(2), pgpTxSlave => pgpTxSlaves(2));
In the software (firmware/python/simple_pgp4_kcu105_example/_Root.py
), VC[2] is mapped to XVC server:
# Create (Xilinx Virtual Cable) XVC on localhost self.xvc = rogue.protocols.xilinx.Xvc( 2542 ) self.addProtocol( self.xvc ) # Connect dmaStream[VC = 2] to XVC self.dmaStream[2] == self.xvc
You will need to first start the rogue software (either GUI mode or interactive mode) to start the XVC server.
Next, from Vivado main screen, you will open Vivado Hardware Manager
and open new target
:
Select that you are connecting to a remote server and enter the host
name.
If locally ran, then use localhost
.
If running remotely for different computer, you can use IP address or PC’s hostname on your network.
Click on Add Xilinx Virtual Cable (XVC)
:
If locally ran, then use localhost
for “Host Name”.
If running remotely for different computer, you can use IP address or PC’s hostname on your network.
Next you will click on NEXT
then click on Finished
on the window after that
Click on “debug_bridge_0”, go to the “General Tab” and click on the ...
next to “Probes File”:
Navigate to the .ltx
file that generated from your post_synthesis.tcl
TCL script (refer to How to implement ILA in Vivado with ruckus).
Once the .ltx file is loaded, the ILA can now be access remotely via the Ethernet link.