
3. Compile the driver and copy to /lib/modules
$> make install
4. Insert the driver into the kernel
$> make insmod
Launch hw_server on the Remote or Local Host PC
After installing the HSDP-PCIe driver in the previous step, character device file(s) for user mode
and/or management mode will be located at /dev/ on the system with the BDF
(Bus:Domain.Function) of the PCIe device appended to the name if module compilation and
installation was successful.
To launch
hw_server
and specify mgmt mode connection to the target FPGA, issue the
following command on the remote Host PC and replace <BB:DD.F> with the BDF of the PCIe
device.
$> hw_server -e “set dpc-pcie /dev/hsdp_mgmt_<BB:DD.F>”
To launch hw_server <format> and specify user mode connection to the target FPGA, issue the
following command on the remote Host PC and replace <BB:DD.F> with the BDF of the PCIe
device and <name> if that was specified in the configuration header file.
$> hw_server -e “set pcie-debug-hub /dev/hsdp_user_<BB:DD.F>_<name>”
Connecting the Vivado IDE to the hw_server
Application for Debug Over PCIe
At this point, the FPGA design has been loaded, the PCIe link has been established, the HSDP-
PCIe driver has been compiled and installed with the correct configuration values, and the
hw_server
application has been started on the debug Host PC. The remaining step is to
connect to
hw_server
and begin connecting to the debug cores to exchange and display debug
data.
1. Launch Vivado.
2. Select Open Hardware Manager from the Flow Navigator.
3. In the Hardware Manager, select Open target → Open New Target.
4. Connect to the
hw_server
application from the Vivado IDE.
• If the debug host is remote, in the Hardware Server Settings window, modify the host
name field to the remote server that is running hw_server and the port number field, if
using the non-default port.
Appendix D: Using the High Speed Debug Port Over PCIe for Design Debug
PG346 (v3.3) November 16, 2022
CPM Mode for PCI Express
270