ofb_vck190: Hardware Test Procedure¶
1. Purpose¶
This procedure tests the reference design ofb_vck190_top on the AMD VCK190 evaluation board against SpaceFibre
test equipment (exit criterion of phase 2 in the roadmap). This test is the bring-up of
the board design; the evidence for TRL 4 is the hardware test of a reference system of the family that contains
OpenFibre. It needs AMD Vivado 2025.2 with device support for the XCVC1902. The results go into
verification_report.md, section 3.
2. Material¶
| Item | Use |
|---|---|
| VCK190 evaluation board (production silicon), power supply, USB cable to the JTAG and UART port | Device under test |
| SpaceFibre test equipment with four lanes at 6.25 Gbit/s and a QSFP interface (for example STAR-Dundee) | Far end |
| QSFP cable (four lanes) | QSFP1 of the VCK190 to the far end |
| AMD Vivado 2025.2 with device support for the XCVC1902 | Build and programming |
| Repository bundle (section 3) | Sources |
3. Repository as Git bundles¶
Where the build computer has no network access, the repository and its two submodules travel as Git bundles
(openfibre.bundle, open-logic.bundle, uvvm.bundle):
git clone openfibre.bundle openfibre
cd openfibre
git config submodule.open-logic.url <path>/open-logic.bundle
git config submodule.uvvm.url <path>/uvvm.bundle
git -c protocol.file.allow=always submodule update --init
git submodule status must show the commits recorded in the repository without a leading - or +.
4. Build¶
vivado -mode batch -source hdl/ofb_vck190/tcl/build.tcl
The default reference clock is the Si570 at 100 MHz, the frequency it runs at after every power-up (nothing to
program on the board). -tclargs 8a34001 builds for the clock generator 8A34001 at 156.25 MHz instead (section 5);
-tclargs rtl only elaborates the design and writes results/invalid_constraints.xdc and results/build_info.txt;
in this step the wizard and the CIPS are black boxes, so the quad location and the clock constraints of
ofb_vck190.xdc (seven lines) appear as invalid there, while after a complete build the file holds only its header.
The script creates the project in vivado_out/ofb_vck190 with the transceiver wizard instance, the CIPS block design
(ofb_cips, JTAG boot, clocks of the programmable logic), the sources and the constraints, and runs synthesis,
implementation and the device image. On Windows the project path must not be longer than about 40 characters: the
device image step compiles the platform loader firmware in a deep directory below the project, and with a longer
path write_device_image fails ("opening dependency file ... No such file or directory"). Either clone the
repository to a short path (for example C:/git/openfibre) or set the environment variable OFB_VIVADO_OUT to a
short project directory (for example C:/ofb); the paths below are then relative to that directory. The script sets
XILINX_LOCAL_USER_DATA=no for the runs that launch_runs starts at the same time (AMD AR 63253): on a fresh
installation of Vivado, one of them can otherwise fail at start-up with Common 17-1257 ("Failed to create directory")
and "tclapp::load_apps failed".
The script stops with "CONSTRAINT INTEGRITY FAILED" when a constraint did not apply (an object query that matched
nothing, for example a clock that did not exist when the constraint was read) or when the methodology checks
TIMING-6, TIMING-7 or TIMING-47 report a clock pair without its constraint: after synthesis, before the
implementation starts, or after the implementation, once the results are written. results/constraint_check.txt
lists the messages. A design that misses timing (worst setup or hold slack below 0) also stops the build, after the
results are written: the console and build_info.txt show "TIMING NOT MET" with the worst setup and hold slack and
the number of failing endpoints, and the script ends with "BUILD FAILED". Record:
| Item | Where | Expected |
|---|---|---|
| Device image | vivado_out/ofb_vck190/results/*.pdi |
Present |
| Build information | vivado_out/ofb_vck190/results/build_info.txt |
Reference clock and frequency as intended (si570 at 100 MHz by default, pins AB11 / AB10), commits of the repository and its submodules |
| Constraint integrity | vivado_out/ofb_vck190/results/constraint_check.txt and the end of build_info.txt |
"constraint integrity: passed"; known constraint messages: synthesis 0, implementation 0 (the expected numbers) |
| Timing | vivado_out/ofb_vck190/results/timing_summary.rpt and the timing line of build_info.txt |
WNS and WHS of all clocks at least 0 ns (clk_pl_0 100 MHz, clk_pl_1 150 MHz, lane clock 156.25 MHz, gt_refclk at the selected frequency) |
| Constraints | vivado_out/ofb_vck190/results/invalid_constraints.xdc |
Only the header (every constraint applies) |
| Resources | vivado_out/ofb_vck190/results/utilization.rpt, utilization_hierarchical.rpt |
LUT, register, block RAM and URAM count of i_core |
| Methodology and DRC | vivado_out/ofb_vck190/results/methodology.rpt, drc.rpt |
No critical item about clock domain crossings or the transceivers |
A timing violation in a crossing between clk_pl_0, clk_pl_1 and the lane clock points to a missing clock pair
constraint (section 4 of architecture.md). Expected warnings are listed in the verification
report, section 3.
5. Board set-up¶
- Boot mode switch SW1 to JTAG (UG1366).
- Reference clock: with the default image (
si570, 100 MHz) power-cycle the board before programming the image, so that the Si570 runs at its power-up frequency of 100.000 MHz; header J306 stays off (the clock buffer SI53340 passes the Si570). With an image built with8a34001, program the clock generator 8A34001 (U219) so that its output Q1, which drives MGTREFCLK1 of GTY quad 200, runs at 156.25 MHz, with the clock tool of the system controller of the board (UG1366, Board Evaluation and Management Tool or system controller command line). - QSFP cable from QSFP1 of the VCK190 to the far end. Lane
iof the design is channeliof quad 200.
6. Far-end configuration¶
| Parameter | Value |
|---|---|
| Line rate | 6.25 Gbit/s, 8B/10B, four lanes |
| Data scrambling | On (reset value of the design) |
| Virtual channels | 0 to 7 (the design has eight) |
| Link start | Either: the design starts by itself. Its lanes have AutoStart, and NoSignal of the GTY adapter is always de-asserted (ECSS-E-ST-50-11C 5.4.2.4b.1), so they leave Wait at once; the far end may use AutoStart or LaneStart |
| Broadcast messages | Allowed on any channel |
7. Register access¶
The MIB registers are reachable over JTAG through the master port M_AXI_FPD of the CIPS at 0xA400_0000 (register
offset = address - 0xA400_0000, register map), without software on the
board. The script hdl/ofb_vck190/tcl/xsdb_mib.tcl provides the access and the bit error rate test in XSDB (Vivado
2025.2):
xsdb% source hdl/ofb_vck190/tcl/xsdb_mib.tcl
xsdb% mib_connect
xsdb% mib_rd 0x000
0x0FB1000A
xsdb% mib_rd 0x010
xsdb% prbs_ber 0 31 480
xsdb% prbs_off 0
mib_connect connects to the hardware server and selects the Versal device; the device image is programmed before
(Vivado Hardware Manager or device program <image>.pdi in XSDB). mib_rd <offset> and mib_wr <offset> <value>
read and write one register. prbs_ber <lane> <pattern> <seconds> runs the PRBS test of the user guide (section 6)
on one lane: pattern sent and checked, count reset, lock, measurement, bit error rate (upper bound at 95 %
confidence without error), then one forced error, which must be counted once. prbs_off <lane> ends the test; the
link of the lane is down while the test runs.
Receiver reset of the lanes (register map, lane l at offset 0x20 x l): the adapter resets the receiver of a lane at every restart of the lane. LANE_STATUS (0x104) bits 24 to 27 show RXRESETDONE, a receiver reset in progress, the CDR lock and the receiver electrical idle; LANE_EVENTS (0x108) bits 4 to 7 the receive and transmit buffer errors, a completed receiver reset and a receiver reset timeout (write one to clear); LANE_TIMEOUT_COUNT (0x110) bits 15:0 the initialisation timeouts and bits 31:16 the completed receiver resets (a write clears both). LANE_INIT_TIMEOUT (0x07C) holds the initialisation timeout in words (reset value 0x72714 = 468750, 3 ms). PA_CTRL (0x080) changes the behaviour of the adapter at run time; a new value takes effect at the next reset sequence of a lane:
| PA_CTRL | Behaviour |
|---|---|
| 0x03600005 (reset value) | Receiver reset at every restart of a lane, CDR hold during electrical idle, PCSRSVDIN 0x0360 |
| 0x03600001 | As the reset value, without CDR hold |
| 0x03600007 | CDR reset (RXCDRRESET) instead of the receiver reset at a restart |
| 0x03600004 | No receiver reset at a restart, CDR hold during electrical idle |
| 0x03600000 | No receiver reset at a restart, no CDR hold |
| 0x02400005 | PCSRSVDIN 0x0240, the tie value of the transceiver wizard |
Values other than the reset value are outside the verified configuration. mib_wr 0x100 0x00040062 resets the
receiver of lane 0 once (LANE_CTRL bit 18, with the reset value of the other bits; lanes 1 to 3 at 0x120, 0x140,
0x160).
A lane that never reaches Active while RX_RESETS and the initialisation timeouts both rise repeats receiver resets
that last about as long as its initialisation timeout or longer: read the duration of a reset from LANE_STATUS bit 25
(polled) and set LANE_INIT_TIMEOUT to at least twice it (mib_wr 0x07C <words>, 156250 words per millisecond).
8. Tests¶
| Test | Steps | Pass criterion |
|---|---|---|
| TC-VCK-HW-01 Link start | Program the device image (Vivado Hardware Manager); start the lanes of the far end | LED 0 (transmitters ready) and LED 1 (receivers ready) on after programming; LED 2 (all lanes aligned) and LED 3 (link initialised) on after the far end started; the far end reports the link up with four lanes |
| TC-VCK-HW-02 Echo | The far end sends 1000 packets of 1 to 1024 bytes with random content on each of the VCs 0 to 7 | Every packet comes back unchanged and in order on its VC; no error or retry at the far end |
| TC-VCK-HW-03 Broadcast | The far end sends 100 broadcast messages with random channel, B_TYPE and DELAYED flag | Every message comes back unchanged |
| TC-VCK-HW-04 Throughput | The far end sends packets of 1024 bytes continuously on all VCs and measures the received rate | About 90 % of 4 x 5 Gbit/s per direction (simulation: 90 % with traffic in both directions, the echo loads both) |
| TC-VCK-HW-05 Link reset | Link reset at the far end, then traffic as in TC-VCK-HW-02 | LED 3 goes off and on again; traffic afterwards correct |
| TC-VCK-HW-06 Lane failure | If the far end can disable a lane: disable lane 3 during traffic, enable it again | Traffic continues on three lanes without loss, the lane joins again |
| TC-VCK-HW-07 Error recovery | If the far end can inject errors: bit errors or corrupted frames during traffic | Every packet comes back unchanged; the far end counts the retries |
| TC-VCK-HW-08 Bit error rate | PRBS test of every lane with prbs_ber (section 7): PRBS-31 and PRBS-7 sent and checked, with a QSFP loopback module, with the far end (same pattern) or in the near-end serial loopback (LANE_CTRL bit 16); 480 s per lane and pattern |
Checkers locked; no error (BER below 1e-12 at 95 % confidence); the forced error counted once |
| TC-VCK-HW-09 Register access | After TC-VCK-HW-01: mib_rd 0x000, mib_rd 0x010, mib_rd 0x040; mib_wr 0x044 0x1, mib_rd 0x044 |
ID 0x0FB1000A; DL_STATUS bits 1:0 = 11 (link initialised) and bit 9 = 1 (TX_READY); ML_STATUS shows four data-sending and data-receiving lanes; IRQ_MASK reads back 0x1 |
9. Limits of the reference design¶
- Register access needs the JTAG cable and XSDB; the design has no software and no other host interface.
- The design echoes what it receives. A far end that sends faster than it reads back sees back-pressure through the flow control of the link, not data loss.