Nine episodes wired CVE2 to interrupts, buses, memory and boot; this one wires it to Ethernet. The board is an ALINX PI-AR035-F1-1 (XC7A35T + RTL8211F). Gigabit RGMII uses just fourteen wires: four data lanes, one control line and one clock, sampled on both edges. The hard part is never "can it transmit" — it is whether the 2 ns receive delay comes from the PHY or from the FPGA IDELAY, and it must be added exactly once. This episode takes the link from "only ~7% of received frames pass CRC" to 11,243 frames with zero errors.
594fd2e4…rgmii_rxctl / rgmii_rxd[*] → IDDR.D endpoints, where the report computes
DCD = 3.153 ns by counting the BUFIO insertion delay on top of the port-level create_clock;
the same link runs 11,243 frames with zero CRC errors on the board. Second, the echo is a 1 Hz periodic
repeater, not a per-packet responder: the vendor MAC sends the most recent payload once per second, so
burst tests at high rates must show a low hit rate — that is the design, not a bug.| Criterion | Requirement | Measured |
|---|---|---|
| 1 · Link | LINK=1, SPEED=1000 | ETH_STATUS=00000046 LINK=1 SPEED=1000, PHY at address 0x01 |
| 2 · Frame integrity | Zero CRC errors | GMII_CRC_OK=11,249 / GMII_CRC_BAD=0, ETH_RX_FRAMES=11,243 |
| 3 · UDP echo | Byte-identical payload | SEQ_RESULT ok=8/8 rate=100.0% over 8 sequential rounds |
The r63 symptom looked like a sampling-point offset: only ~7% of frames passed CRC. But sweeping all 32
IDELAY taps produced a flat line (6.4%–8.5%), and changing the CRC window made no difference — so it was never
"the eye centre was wrong", it was the sampling clock itself. Comparing against the official
16_ethernet_test reference isolated three differences.
| Stage | Broken (r60–r63) | Official (restored in r64) |
|---|---|---|
| RXC buffering | Single BUFG shared by IDDR and fabric | BUFG for fabric plus BUFIO for the IDDR |
| IDELAY | VAR_LOAD + firmware tap sweep 1~31 | FIXED, IDELAY_VALUE=13 (≈1.0 ns) |
| Calibration gating | Group attribute only, RDY unconnected | RDY gates the MAC reset: delay_ready && link && speed==2'b10 |
They are coupled: the PHY strap already adds internal delay to RXC (RXDLY defaults pulled up),
so the FPGA only needs to add about 1 ns once through IDELAY and feed the IDDR a clean BUFIO clock. Without the
BUFIO, the IDDR is clocked through the BUFG, the insertion delays no longer match the data path, and no tap value helps.
The vendor mac_test state machine fires once every pack_total_len cycles (1 s),
sending the most recent received payload with length udp_rec_data_length − 8. Three test styles therefore
give three completely different numbers.
| Test style | Result | Note |
|---|---|---|
| Burst, 40 frames @ 20 ms | 0 / 40 | Frames are overwritten; the last one still waits for the next 1 s tick |
| Burst, 200 frames @ 50 ms | 2 / 200 | Same semantics, not packet loss |
| One tag per round + 2.5 s wait | 8 / 8 | ARP refresh each round; 2.5 s covers a full tick |
That is why the criterion is written as "echo correctness" rather than "per-packet echo rate". A true per-packet responder requires reworking the MAC handshake; two attempts deadlocked the TX path and were rolled back, so they are not presented as results.
Fixed host-side addressing: board MAC 00:0a:35:01:fe:c0, board IP
192.168.8.50, host 192.168.8.237, UDP 8080. Frames are hand-built to bypass kernel
offload, which would otherwise rewrite checksums and invalidate the test.
Bitstream, timing and utilization reports, build and programming logs, UART captures, RTL, XDC, Tcl, acceptance scripts, and a SHA256 manifest.
Daily Briefing · Weekly Digest · Monthly Deep Dive