Skip to content

ofb_multilane: Verification Report

1. Test results

Run on 2026-10-06 with GHDL 6.0.0 (mcode), VUnit 5.0.0.dev7, UVVM 2026.03.20: python run.py "*ofb_ml*" "*ofb_multilane*"; the link testbench with three lanes on 2026-10-15 (full regression, all pass).

Testbench Tests Passed
ofb_ml_codec_tb (ML-3, ML-4) 10 10
ofb_multilane_tb (layer, one lane) 6 6
ofb_ml_align_tb (ML-5, ML-6, four lanes; TC-ML-50 in the configurations wd1024 and wdoff) 7 7
ofb_ml_link_tb (multi-lane link, configurations lanes2 to lanes4) 12 x 3 36
ofb_ml_lane_mgr_tb (ML-1, capability event and transition to Active in the same cycle; join hold) 2 2

Alignment watchdog (ML-AL-11, 2026-10-17): TC-ML-50 passes with the lowest bound of 1024 cycles and with the watchdog off; the other tests of ofb_ml_align_tb pass unchanged (7 of 7). Mutation checks: a watchdog that restarts its counts at once in Both-Ends Ready, and one that uses the single bound outside Both-Ends Ready, both fail TC-ML-50; a lane manager that ignores the watchdog fails TC-CORE-30 (verification report of ofb_core). QuestaSim on 2026-10-18: 7 of 7 with coverage (commit b6242a2) and without coverage (commit 9dff622, the tree of main 77f4eea).

Join hold (ML-LM-17, release 0.1.1, 2026-10-22): TC-ML-51 passes in ofb_ml_lane_mgr_tb (2 of 2 tests of the testbench), with TC-CORE-34 and TC-CORE-35 of the core (verification report of ofb_core). The full GHDL regression of the released tree runs in the CI of the release pull request. The QuestaSim regression was not repeated for release 0.1.1 (coverage.md, section 6).

Row acceptance in the bypass (ML-BP-04, 2026-10-16): 58 of 58 tests of the layer pass, among them the rewritten TC-ML-24 and the new TC-ML-49 with two to four lanes.

Correction of the far-end reset detection (ML-LM-14, 2026-10-15): the full regression passes in GHDL (232 of 232) and in QuestaSim, with and without coverage (232 of 232 each); the lane manager keeps 110 of 110 statements and 56 of 56 branches.

Full regression of the repository: 193 of 193 tests pass (phase 5, after the code coverage closure and the functional coverage of the core).

2. Summary

All 58 tests pass; every requirement of the specification is covered (see the verification plan). The column encoder reproduces ECSS Figures 5-42 and 5-44 bit-exactly, and the decoder restores them. VSG reports no errors and no warnings.

Mutation checks confirmed that the testbenches detect faults: a wrong byte enable of the EDF in the CRC unit fails TC-ML-01 and TC-ML-09; a scramble enable that is not held in Active fails TC-ML-21. Phase 4: each of the following faults fails the named test: the PAD row replaced by the replicated word (TC-ML-30, 4 lanes), a held ALIGN after alignment ignored (TC-ML-41), the 4 us rule removed (TC-ML-42), interleaved control words that flush the waiting data words (TC-ML-43), the maximum number of data-sending lanes ignored (TC-ML-33), no SKIP request (TC-ML-31), FarEndActive not cleared by an ACTIVE word (TC-ML-35). Phase 5: held words discarded in Not Ready (the defect found by TC-CORE-13) fail TC-ML-44; a poison mark that the distributor does not pass on fails TC-ML-46. Rows taken while lane 0 is not Active (the behaviour before ML-BP-04, with one lane and in the bypass of several lanes) fail TC-ML-24 and TC-ML-49.

Code coverage (QuestaSim, docs/coverage.md): the first measurement showed five transitions of the frame state of the receiver (frame structure errors) and an incorrect ALIGN on a lane that is not data-receiving without a test. TC-ML-47 and the extension of TC-ML-42 cover them and passed without a design change; four branches remain, each justified in the coverage report.

Defects found during verification:

Finding Fix
Simulation of two cores with the AMD transceiver model, one lane, CoreClk at the frequency of LaneClk (2026-10-16): after the start both ends reported a sequence error and a retry. The bypass took the first two rows of the Data Link layer (an idle frame word and the first FCT) into the column encoder while the lane was not yet Active; a link reset pulse of the core crossing that arrived a few cycles after the Data Link layer had left Near-End Reset discarded them, and the far end received the second FCT first. The bypass of a layer with several lanes (ofb_ml_tx) took rows in the same way Rows are taken only while lane 0 is Active (ML-BP-04), as the row distributor takes none in Not Ready; TC-ML-24 checked the old behaviour and was rewritten, TC-ML-49 added; both fail without the change. In the core only the entry into the link reset crosses as a pulse (CORE-PL-06)
ofb_pa_gty_core_tb with the transceiver model of the AMD simulator, three and four lanes (2026-10-22, release 0.1.0 with NoSignal always de-asserted): lane 2 entered Active about 165 ns before lanes 0 and 1 at both ends; the alignment entered Near-End Ready with lane 2 alone and the Data Link layer started to send. When lanes 0 and 1 entered Active, the near-end active lanes changed, both ends realigned and the words in flight were replaced by RXERR: a sequence error (the first sequence number after the realignment was 16, 1 expected) and a retry at both ends, no data lost. With 0.1.0 alone the start of both ends lined up differently and the run passed Join hold (ML-LM-17, LaneJoinHoldWords_g): after the first lane entered Active no row of the Data Link layer is taken while an enabled lane is still initialising. TC-ML-51, TC-CORE-34 (the same late lane without the hold: 2 retries), TC-CORE-35; ofb_pa_gty_core_tb with three and four lanes: DL_ERRORS 0 and no retry
TC-ML-34 with three lanes (2026-10-15, first run of lanes3): the expected data-sending lanes after the failure of lane 1 were written for two lanes ("lane 0 sends alone"); the Multi-Lane layer correctly sends on lanes 0 and 2 Testbench: the expected lanes are all lanes but lane 1, and all lanes after the reconnection, for any lane count
TC-CORE-19 (core): the far-end capability event of a lane that entered Active in the same cycle was reported with "a lane was Active", so the far-end reset of a restarted end was not detected and the link stayed down for good The lane states of the cycle before the event decide (ML-LM-14); TC-ML-48 forces the event and the transition to Active into the same cycle and fails with the old evaluation (mutation check)
TC-ML-24: the one-cycle link reset pulse of the sequencer did not cover a rising clock edge (testbench timing) Sequencer aligned to the falling edge before the pulse
Found during the design of the link reset state machine: a capability change in the middle of Connected can make the far end miss the INIT3LinkResetFlag Capability held while the lane is in Connected (TC-ML-25, mutation checked)
TC-ML-35: a receive-only lane enters Active from Connected without INIT3 (ECSS 5.5.2.10e.3), so its unscramble enable stayed at the reset value and the data of that lane were not unscrambled Unscramble enable of a lane without its own capability taken from the last capability of any lane (ML-LM-15 extended)
TC-ML-32: with a skew of three words, a lane was aligned before the ALIGN word of the late lane had arrived; the late lane then joined the data-receiving lanes, which caused a Misaligned condition and an RXERR in Near-End Ready The lanes count as aligned only when every active receiving lane has received an ALIGN word (Seen)
TC-ML-37: the distributor sent an IDLE row after every replicated word (the next row was only taken one cycle later); a bit error that turns an IDLE word of one lane into RXERR is a lane slip and causes a realignment The next row is taken in the cycle in which the replicated word is sent (ECSS 5.6.4.5b: no IDLE words while rows are available)
TC-ML-40: the end of the word stream let a skew of four words align, since the early lane stopped writing; on a link words never stop Test sequence continues with ACTIVE rows after the last ALIGN (testbench)
TC-ML-40: a gap in an early lane does not slip the lanes (the FIFO absorbs it) Slip modelled as an additional word on one lane (testbench)
TC-CORE-13 (fault injection campaign of the core): after a lane slip at one end, words of the frames sent by that end were missing at the far end without any error: the distributor discarded its held words when Not Ready was entered, the far end only received ACTIVE words (Both-Ends Ready to Near-End Ready, no RXERR) and kept the frame, and the CRC-16 computed after the distributor did not reveal the missing words Held words are kept in Not Ready and sent after the realignment (ML-DS-12, TC-ML-44); only a link reset discards them
TC-CORE-13: a double error in the transmit row crossing of the core corrupted a word before the CRC-16 was computed, the far end accepted the frame Poison mark of the row through the distributor to the column encoders, which invert the CRC-16 of the frame (ML-DS-13, ML-ENC-08, TC-ML-45, TC-ML-46)
Second build of the VCK190 design: the lane clock met timing with 0.280 ns of slack; the tightest paths (14 and 15 logic levels) ran from the word counter of the transmitter through the combinational word assembly, the scrambler and the word classification into the CRC of the column encoder Input register stage in the column encoder (olo_base_pl_stage, reset with the flush); transmit latency two cycles instead of one, the same on every lane

Observations:

  • The treatment of control words and broadcast frames inside a data frame (excluded from the CRC-16 and from scrambling, specification section 5) follows from the standard but is not shown in its examples; it is checked with STAR-Dundee equipment in the lab test of phase 2.
  • A bit error that hits a word which the Lane layer removes (SKIP, IDLE) or the word before it (ECSS 5.5.7l turns the previous word into RXERR as well) adds a word to one lane: a lane slip, followed by a realignment. This is a property of the standard; the distributor avoids IDLE rows while rows are available.
  • The SKIP interval of the link testbench is 300 words to exercise SKIP often; the default is 5000.