The reference architecture can be tested in two ways:
To test the USB communication in the Reference Architecture case is necessary
To completely test the Reference Architecture is necessary
The procedure is the following (step 1 is optional):
For old version of Xilinx EDK with older veresion of Project Reference (they do no longer exist on GitHub) the procedure is the folowing
The FX2 microcontroller on the TE0300, TE0320 or TE0630 family should contain valid firmware before proceeding.
With this application, you can test the PC ↔ USB ↔ JTAG ↔ FPGA communication using a simulated UART (XMD_UART) on JTAG/USB connection.
If you want to input some characters to the XMD UART, then open some terminal emulators,such as
Connect using the following settings:
The UART settings are:
The UART port will output something of tis kind:
Before running the demo application, open the #project_root#\xmd.ini file:
1.rst
2.dow sw/test_hw.elf
3.#dow sw/demo.elf
4.run
5.terminal -jtag_uart_server 4321
To run the demo application
uncomment line 3 (remove "#")
comment line 2 (add "#" as first character)
save xmd.ini.
type "exit" in XMD command window
restart XMD by clicking again the "Start XMD" button in the XPS toolbar.
With this application, you can test the PC ↔ FPGA communication using a provided API.
To use the demo project without the XMD UART, you need to use "RS232" instead of "debug_module" as standard in/out port. Otherwise the application running on the Microblaze processor freezes if you disconnect the XMD. To accomplish that you need to set up the Microblaze "Software Platform Settings".
The UART is then redirected to external pins, which are defined in the data/system.ucf file. The following snippet shows the case of the TE0300 series modules:
Module RS232 constraints*
Net fpga_0_RS232_RX_pin LOC=B13;
Net fpga_0_RS232_TX_pin LOC=B14;
Please refer to the table below for other module series relevant to this application note.
TE series | RS232_RX | RS232_RX | RS232_TX | RS232_TX |
---|---|---|---|---|
TE0300 | R6 | J5-29 | P6 | J5-31 |
TE0320 | V17 | J5-IO18 | W17 | J5-IO19 |
TE0630 | Y7 | J5-29 | AB7 | J5-31 |
TE0304 | It doesn't apply | J1-3 | It doesn't apply | J1-2 |
TE0323 | It doesn't apply | J4-35 | It doesn't apply | J4-37 |
host (PC) | TX | TX | RX | RX |
Sample UART to USB virtual COM port converter.
Sample UART to USB virtual COM port converter: signal detail.