ofb_mib: Verification Report¶
1. Test results¶
Run on 2026-10-13 with GHDL 6.0.0 (mcode), VUnit 5.0.0.dev7, UVVM 2026.03.20: python run.py "*ofb_mib*".
| Testbench | Tests | Passed |
|---|---|---|
ofb_mib_tb |
13 | 13 |
Full regression of the repository: 227 of 227 tests pass (with the packet ports of the VCs and register map version 7). VSG reports no errors and no warnings. Run on 2026-10-15 with register map version 8 (transmitter ready): 11 of 11, full regression 322 of 322. Run on 2026-10-17 with register map version 9 (ML_ALIGN_TIMEOUTS, MG-ST-07): 11 of 11; TC-MG-06 counts two expiries of the alignment watchdog and clears the counter with a write, TC-MG-01 reads its reset value. A MIB that does not count the expiries fails TC-MG-06 (mutation check). Run on 2026-10-18: 11 of 11; TC-MG-04 also counts one Misaligned condition and one expiry of the alignment watchdog and checks that the Link Reset command clears ML_MISALIGNED and ML_ALIGN_TIMEOUTS (MG-ST-07). QuestaSim on 2026-10-18: 11 of 11 with coverage (commit b6242a2) and without coverage (commit 9dff622, the tree of main 77f4eea).
Run on 2026-10-23 with register map version 10 (initialisation timeout and Physical adapter registers, MG-PA-01 to MG-PA-03): 12 of 12, full regression 423 of 423. TC-MG-12 (new) checks LANE_INIT_TIMEOUT, PA_CTRL, the RX_RESET command, the receiver reset status, the four new lane events with interrupt and RX_RESETS; TC-MG-01 reads the reset values of the two new registers at the register file and at the outputs; TC-MG-09 saturates RX_RESETS with 65537 receiver resets in parallel to the CRC-8 counter. Mutation checks: a MIB with a wrong PA_CTRL flag reset value fails TC-MG-01, one that counts the receiver reset timeouts as receiver resets, one that loses the RX_RESET command and one whose Interface Reset keeps LANE_INIT_TIMEOUT fail TC-MG-12.
Run on 2026-10-27 with the settle time of the flags of bandwidth use from the end of the reset of the status
crossing (MG-CC-02): 13 of 13, 0 skipped. TC-MG-13 (new) starts the core clock 5 us after the reset: VC_BW_OVER and
VC_BW_UNDER read 0 while it stands still and after its start, the other sticky flags and counters of the core clock
domain read 0, and over and under use afterwards set the flags. With the MIB of 0.1.4 TC-MG-13 fails: VC_BW_OVER reads
x"0000000X" (mutation check). Together with the regression of ofb_core 179 of 179 tests pass in GHDL, 0 skipped.
QuestaSim on 2026-11-18, release 0.1.5 (commit 11be07f, Open Logic 4.8.0-ft.2): 13 of 13 within the full
regression with coverage, 427 of 427 at a time resolution of 1 fs. The MIB covers 331 of 331 statements and 163 of
163 branches; the clear of the settle counter while the status crossing is in reset adds one statement and one
branch to release 0.1.4, both covered (docs/coverage.md). lint/synth_check.py at the
same commit: ofb_core synthesises in all 15 configurations without error and without inferred latch, and the 11
values outside the generic ranges are rejected.
The other sticky flags and counters (DL_ERRORS, the error counters, VC_INPUT_OVERFLOW, VC_CREDIT_OVERFLOW,
VC_FRAMING_ERROR, VC_RX_FRAMING_ERROR, LANE_EVENTS, the lane and Multi-Lane counters, the EDAC flags) take events of
ofb_cc_pulse, whose output is 0 while its crossing is in reset; only the flags of bandwidth use take values of a
status crossing.
2. Summary¶
All test cases pass and cover every requirement of the specification.
Code coverage (QuestaSim, docs/coverage.md): the first measurement showed registers whose write, clear or read path no test used (counter clears, W1C of several flags, CRC-8, frame and sequence counters, idle limit, time-slots 63 to 32, lane events, SEC interrupt) and no test of the counter saturation (MG-ST-02). TC-MG-08 and TC-MG-09 cover them and passed without a design change; every statement and branch is covered.
Code coverage after the PRBS test registers (MG-5): two branches were not covered. The saturation of the 48-bit word
counter needs 2^48 words (about 20 days at the line rate), and the read of an undefined lane register no longer
exists, because every word of the 32-byte lane stride is now a register (TC-MG-08 read two of them as undefined).
All counters now use one saturating increment (satInc), which TC-MG-09 covers; the last branch of the lane read
decode is the word counter, as in the VC decode; TC-MG-08 reads and writes the registers of a lane beyond
NumLanes_g instead. Rerun: the MIB covers 268 of 268 statements and 134 of 134 branches.
Register map: TC-MG-01 reads every fixed reset value of the register description (regs/ofb_regs.yml) back through
the generated package ofb_regs_pkg; a reset value changed in the description fails TC-MG-01 (mutation check).
PRBS test registers (TC-MG-10): an error counter that ignores the hold bit fails the test (mutation check: 15 instead of 10 counted words).
Events of the Network interface (TC-MG-11, register map version 7): the packets of zero length are counted in the user clock domain, because a pulse crossing merges events of consecutive cycles; the test drives three events of one VC in consecutive cycles and two VCs in the same cycle and reads 4. QuestaSim (coverage run of 2026-10-14, 228 of 228 tests pass): the MIB covers 288 of 288 statements and 145 of 145 branches.
Transmitter ready (register map version 8, MG-ST-06): TC-MG-03 reads DL_STATUS bit 9 (TX_READY) as 1 and as 0; TC-MG-04 sets DL_ERRORS bit 12 (TX_LOST) with its interrupt and clears it with W1C. The core testbench checks both bits with the link held in Near-End Reset (TC-CORE-21 to TC-CORE-25), TC-CORE-24 and TC-CORE-25 also while the core and lane clocks of the core stand still; TC-CORE-26 checks that a start of both cores with stopped clocks sets no TX_LOST, and TC-CORE-29 that TX_LOST cleared while the transmitters stay not ready is not set again. TC-CORE-28 reads the reset values of LaneStart and AutoStart from the generics (MG-CF-03).
Defects found during verification:
| Finding | Fix |
|---|---|
| ECSS table audit (5.9.4e): the Link Reset command cleared only the Data Link status; the lane event flags and the flags of bandwidth use were kept | The command clears the status of all layers, the EDAC status excepted (MG-ST-01, TC-MG-04) |
| System simulation with the core clock from the transmit clock of the transceiver model, which runs from about 64 us after the reset: a read of VC_BW_OVER and VC_BW_UNDER over RMAP returned undefined bits. The flags took the status 31 management clock cycles after the reset, before the status crossing had transferred a value, and an undefined bit stays in a sticky flag. The RMAP reply carried the bits over the link; the CRC-16 of the transmitter and that of the far end differed, every retransmission failed the check, and the reply never arrived while the link stayed initialised | The flags take the status from 31 cycles after the end of the reset of the status crossing on (Out_RstOut of olo_base_cc_status, asserted until the core clock domain has left its reset), MG-CC-02; TC-MG-13 starts the core clock 5 us after the reset, TC-CORE-26 reads both registers after the start of the cores |
| The sticky bandwidth flags latched the undefined value of the status crossing before its first transfer (simulation) | The sticky flags accumulate the crossed status only 32 cycles after reset (first fix with to_01 replaced: not synthesizable, found with lint/synth_check.py) |
Every event was counted twice and every command gave two pulses: olo_ft_cc_pulse stretches its output pulses to two cycles of the output clock |
ofb_cc_pulse (edge detector after olo_ft_cc_pulse), also used in the input VC buffer of the Data Link layer, where the same effect doubled the FCT requests |
First build of the VCK190 design: the latches of olo_ft_cc_pulse can lose commands and events (gate and data follow the input pulse) |
ofb_cc_pulse without latch: handshake with single-cycle output pulses (ofb_pkg report) |
Release 0.1.3, TC-CORE-37 through the adapter models: PCSRSVDIN read 0x0000 at the port of the core before LaneClk ran. PA_CTRL crossed into the lane clock domain with olo_base_cc_bits, whose output follows the lane reset, so the adapter would see PCSRSVDIN 0 and the flags 0 during every transmitter reset and could take that value at the start of a reset sequence |
PA_CTRL leaves the MIB as static levels from registers of the management clock; the adapter synchronises them and takes a value after 8 unchanged cycles of its free-running clock (MG-PA-02) |