Skip to content

o1553_host: Verification Report

1. Test results

Run with GHDL 6.0.0 (mcode), VUnit 5.0.0.dev7 and UVVM 2026.03.20 on commit a94fd09 (register map 0.3, the memory port of the BM): python run.py -p 1 --xunit-xml results.xml "*.o1553_host_tb.*", the 54 tests of o1553_host_tb below, 54 passed, 0 skipped. python run.py --compile and python lint/synth_check.py (69 configurations, 0 failed) ran on the same commit.

The regression of release 0.3.0 (a2724fb, register map 0.3) passes in GHDL, 424 of 424 tests, 0 skipped, and in QuestaSim with code coverage and in the optimised run without it, 424 of 424 tests each, 0 skipped. The run with code coverage took o1553_bm_tb and o1553_core_tb on a2724fb and the other testbenches on 42a9d29, which differs from a2724fb only in hdl/o1553_bm (coverage, section 2); section 6 gives the code coverage.

Testbench Tests Passed
o1553_host_tb 54 (16 test cases in c100; 7 of them also in c16, c400, l2, l7 and p1; test_scrub_pacer in p1; test_bc_registers also in c100_bc, test_bm_registers also in c100_bm) 54

2. Summary

All test cases pass; every one of the 54 requirements of the specification is covered by a test case (compliance matrix). In every test the requester model checks that each request of the protocol engine is accepted within one cycle and each read response comes MemLatency cycles after its acceptance with the data and the double error flag of the reference model, and in TC-HI-14 the requester model of the BC port checks the same for the BC: a request of the BC is accepted at once or after one cycle in which the RT makes no request, and every response comes on the port of its read. In TC-HI-16 the requester model of the BM port checks the same for the BM: no request of the BM is accepted in a cycle with a request of the RT or the BC, none waits two consecutive cycles without such a request, and every response comes on the port of its read. VSG reports no errors and no warnings. The host interface synthesises with ghdl --synth without latches in the configurations of section 5.

Findings of the verification and their resolution:

Finding Resolution
olo_axi_lite_slave answers a write before it presents it and cannot hold it, so the host access of the architecture ("a further access waits behind a waiting write") could not hold writes. A queue of writes made the guarantee depend on the request density of the protocol engine: with 4 entries, a run of 16 consecutive protocol requests lost a host write (TC-HI-07) The host access holds one access and takes the memory in the cycle after it arrives (HI-MEM-02): every host write reaches the memory whatever the protocol traffic (HI-HP-04), and a request of the protocol engine waits at most one cycle, the MemWait of o1553_rt
A pulse output held beyond one cycle passed TC-HI-05, whose checks came before the held pulse showed (section 7) The pulse widths are checked 5 cycles after the write
No test checked that window accesses leave the registers unchanged and register accesses leave the memory unchanged TC-HI-06 compares the registers and the command pulses after the window accesses, TC-HI-02 compares every memory word after the register accesses

Defects of the testbench found while bringing it up, all corrected before the runs of this report: pulse outputs counted before the first reset edge, an event of TC-HI-10 one cycle late, a pulse count read one cycle early, an integer overflow at 400 MHz, logs of the VVC commands at fractions of a nanosecond (a UVVM warning at 16 MHz), and a first traffic model of the RT far denser than the RT (one free cycle between runs of 10 requests).

3. Measured timing

Measured at the ports in the test cases, in clock cycles:

Quantity Requirement Measured
Host read: read address handshake to read data handshake within 64 cycles (HI-HP-04) MemLatency + 3 cycles in every configuration: 5 (l2), 6 (c100), 6 (c16), 6 (c400), 6 (p1), 10 (l7); the same with a protocol request in every cycle (TC-HI-07)
Wait of a protocol request for the memory at most one cycle (HI-MEM-02) 7127 of 35414 protocol requests of TC-HI-07 in the 6 configurations waited one cycle, none longer (longest wait 1 cycle)
Read response to the protocol engine MemLatency cycles after the acceptance (HI-MEM-03) every response in that cycle (requester model, all configurations)
Host read of a word with a double error: SLVERR ReadTimeoutClks_g = 128, checked within 128 to 136 cycles (HI-HP-05) 129 cycles after the read address handshake
Initialisation without other traffic 8192 writes (HI-MEM-04) 8192 cycles from the release of Rst to Mem_InitDone
Microsecond tick every ClkFreq_g / 1 MHz cycles (HI-TB-02) exactly 16, 100 and 400 cycles (TC-HI-11, 5 ticks each)
Scrub pass period, ScrubPeriod_g = 1 ms 1 ms (HI-MEM-01) 996 to 1007 us, polled every 10 us (TC-HI-13)
Wait of a request of the RT while the BC requests in every cycle at most one cycle (HI-MEM-02, HI-MEM-06) 1404 to 1927 requests of the RT per configuration in TC-HI-14, longest wait 1 cycle
Wait of a request of the BC accepted at once or in the next cycle without a request of the RT (HI-MEM-06) 5157 to 7226 requests of the BC per configuration, 499 to 517 of them withdrawn while waiting; no request waited two cycles without a request of the RT; latch walks of 15 reads in consecutive cycles, up to MemLatency reads in flight (2, 3, 7)
Read response to the BC MemLatency cycles after the acceptance, on its own port (HI-MEM-05) every response in that cycle, none on the other port, none for a withdrawn request (requester models, all configurations)
Wait of a request of the RT while the BM requests in every cycle at most one cycle (HI-MEM-02, HI-MEM-07) 1404 to 1927 requests of the RT per configuration in TC-HI-16, longest wait 1 cycle
Wait of a request of the BM accepted in the first cycle in which neither the host access nor the RT takes the memory (HI-MEM-07) 7886 to 9564 requests of the BM per configuration, 690 to 720 of them withdrawn while waiting; none accepted in a cycle with a request of the RT or the BC, none waited two cycles without one; runs of up to 11 reads and up to 86 writes accepted without a pause of the requests
Read response to the BM MemLatency cycles after the acceptance, on its own port (HI-MEM-07) every response in that cycle, none on another port, none for a withdrawn request (requester models, all configurations)

4. Functional coverage

Every bin of the coverpoints of the verification plan (section 5) is reached and checked, except the bin "set in the cycle of the clear" of three interrupt flags (justified below the table):

Coverpoint Reached by
ACCESS Register read and write, address without a register (TC-HI-02); window read, window write, partial window write (TC-HI-06)
CONFLICT Protocol request while a host read waits (TC-HI-07); protocol request during the initialisation, host read during the initialisation, all three (TC-HI-01); each checked by the testbench
ECC Single and double errors of the protocol reads and of the host reads, in data and in parity bits; single and double errors found by the scrubber (TC-HI-08)
FLAG Every flag set and cleared (TC-HI-08, TC-HI-09, TC-HI-10, TC-HI-13, TC-HI-15); set in the cycle of the clear for RECORD, LOG_OVF, TIME_SYNC, FRAME_SYNC, RESET_REQ, SELF_TEST, BIT (TC-HI-10), the ten flags of the BC (TC-HI-15) and the three flags of the BM (TC-HI-17)
LATENCY MemLatency 2 (l2), 3 (c100, c16, c400, p1), 7 (l7)
WAIT Protocol requests accepted at once and after one wait cycle (TC-HI-07)
ENGINES RT and BC request in one cycle, the BC behind the host access and behind the RT, responses of the RT and the BC in consecutive cycles while a host read of the memory window is in flight, a withdrawn request of the BC, responses of the BC after its withdrawn request (TC-HI-14, all configurations); the BM behind the host access, behind the RT and behind the BC, responses of the RT and the BM in consecutive cycles, a withdrawn request of the BM, responses of the BM after its withdrawn request (TC-HI-16, all configurations); each checked by the testbench

The bin "set in the cycle of the clear" of ECC_SEC, ECC_DED and SCRUB_OVR is not aligned with a write by the testbench: their events come from the EDAC monitor and the scrubber, not from a port. All ten flags are updated by one expression of the register file (clear, then set, for the whole vector), which the seven flags above check, and the fault "clear wins over an event" fails TC-HI-10 (section 7).

5. Generic ranges

Generic Declared range Simulated Synthesised
ClkFreq_g 16 MHz to 400 MHz, integer multiples of 2 MHz 16, 100, 400 MHz 16, 100, 400 MHz; 125 MHz stops with the message of CD-CF-01
RamRdLatency_g 1 to 4 1, 4 1, 4
EccPipeline_g 0 to 2 0, 1, 2 0, 1, 2
ScrubPeriod_g 0.0 or at least 1 ms 0.0, 1 ms 0.0, 1 ms; 999 us stops with the message of HI-CF-03
IncludeBc_g, AllowOpenProfile_g false, true false, true (c100_bc) in the synthesis of o1553_core
IncludeBm_g false, true false, true (c100_bm) in the synthesis of o1553_core

6. Code coverage

Statement, branch and state machine coverage of release 0.3.0 is collected with QuestaSim and reported in docs/coverage.md, with a justification for every remaining miss.

7. Checks of the testbench

Each of the following faults, inserted one at a time into the RTL of the host interface (the file restored after the run), fails the test cases listed; the RTL of the repository passes all of them. The table lists the failing test cases among those run for the fault; test cases without a configuration ran in c100.

In the first round 59 of 60 faults failed a test case; the held Cfg_BitClr passed (section 2). After the extension of TC-HI-05 it fails, and so do the held Cfg_AddrCheck and Cfg_HealthSet added then: 62 of 62. With register map 0.2 and the memory port of the BC the 62 faults ran again on f498f9e (62 of 62), together with 13 faults of the BC paths (12 of 13; the last one is equivalent, see the note after the table). With register map 0.3 and the memory port of the BM, 12 faults of the BM paths ran on a94fd09: 11 of 12; the twelfth, the writes of the BM marked as reads in the owner register, is equivalent (note after the table).

Block Fault Failing test case
Buffer memory Protocol engine first again: no forced cycle of the host access TC-HI-07
Buffer memory Initialisation above the protocol engine TC-HI-01
Buffer memory Host write data bit 0 stuck at 0 TC-HI-06
Buffer memory Host read from the address of the last write TC-HI-06
Buffer memory Protocol write data bit 15 stuck at 0 TC-HI-07
Buffer memory Initialisation without the default tables TC-HI-01
Buffer memory Initialisation ends after half of the memory TC-HI-01, TC-HI-12
Buffer memory Initialisation does not write the last word TC-HI-01
Buffer memory Write of the host taken only when no read arrives TC-HI-07
Buffer memory Response to the protocol engine one cycle early TC-HI-07
Buffer memory Host read with a double error acknowledged TC-HI-08
Buffer memory Double error not flagged to the protocol engine TC-HI-08
Buffer memory Single errors of the protocol reads not counted TC-HI-08
Buffer memory Double errors of the host reads counted as protocol reads TC-HI-08
Buffer memory Double errors of the scrubber not counted TC-HI-08
Buffer memory Mem_Req_Ready without the grant TC-HI-07
Buffer memory Corrected data not used (single error in a data bit) TC-HI-08
Host port, time base Window writes also write the registers TC-HI-06
Host port, time base Window reads also answered by the registers TC-HI-06
Host port, time base Register writes also write the memory TC-HI-02
Host port, time base Memory write with byte 1 disabled TC-HI-06
Host port, time base Bits 31 to 16 of a window read not 0 TC-HI-06
Host port, time base Time tag advances by 2 TC-HI-11
Host port, time base Time tag not reset TC-HI-11, TC-HI-12
Host port, time base Tick at 1.01 MHz TC-HI-11
Package Read time-out 100 cycles TC-HI-08
Package Mode code 8 own T/R = 1 illegal TC-HI-01
Package Broadcast transmit commands legal in the tables TC-HI-01
Package Subaddress 8 legal TC-HI-01
Package Mode codes 17, 20, 21 own only, not broadcast TC-HI-01
Package Response time reset 5.0 us TC-HI-01
Register file CONTROL reset with RT_EN = 0 TC-HI-01
Register file Byte enables ignored TC-HI-02
Register file CONTROL bits 7 and 6 writable TC-HI-02
Register file Cfg_BitClr held after the write TC-HI-05
Register file HEALTH set from all written bits, byte enables ignored TC-HI-05
Register file ADDR_CHECK from the bit of ECC_CLR TC-HI-05
Register file ECC_CLR without effect TC-HI-08
Register file Clear wins over an event in the same cycle TC-HI-10
Register file W1C clears every flag TC-HI-10
Register file LOG_OVF one record early TC-HI-09
Register file RECORD without Log_Irq TC-HI-09
Register file BIT on a level instead of a rising bit TC-HI-10
Register file BIT also for bits 15 to 8 TC-HI-10
Register file Irq without the enables TC-HI-10
Register file SYNC_DATA taken without a frame synchronisation TC-HI-10
Register file SCRUB_PASSES does not count TC-HI-08
Register file SCRUB_OVR never set TC-HI-13 (p1)
Register file Counters not cleared by their read TC-HI-08
Register file ECC_HOST reads the protocol channel TC-HI-08
Register file PARITY_ERR shows the address 31 error TC-HI-04
Register file TX_IN_USE.PENDING shows the buffer TC-HI-04
Register file Addresses without a register read CONTROL TC-HI-02
Register file Address bits 14 and 13 not decoded TC-HI-02
Register file Cfg_BusEn from bits 1 and 0 TC-HI-03
Register file Cfg_MonEn from SCRUB_EN TC-HI-03
Register file Scrubber always enabled TC-HI-08
Register file Ecc_DedEvent on single errors TC-HI-08
Register file TIME_TAG reads 0 TC-HI-11
Register file RESP_TIME reset ignores the clock frequency TC-HI-01 (c16)
Register file Cfg_AddrCheck held after the write TC-HI-05
Register file Cfg_HealthSet held after the write TC-HI-05
Buffer memory Reads of the BC answered on the port of the RT TC-HI-14
Buffer memory Reads of the RT answered on the port of the BC TC-HI-14
Buffer memory BC above the RT in the arbiter TC-HI-14
Buffer memory Double error flag not passed to the BC TC-HI-14
Buffer memory Reads of the BC not counted as protocol reads TC-HI-14
Buffer memory Ready of the BC from the grant of the RT TC-HI-14
Register file BC_GAP drives the time-out input of the BC TC-HI-15
Register file Status table field of BC_TABLES one bit short TC-HI-15
Register file BC_COMMAND.TICK held until the next write TC-HI-15
Register file BC_LATE set by the tick missing event TC-HI-15
Register file CORE_STATUS.BC_INCLUDED constant '1' TC-HI-15 (c100)
Register file BC_STATUS without the frame number TC-HI-15
Buffer memory BM above the BC in the arbiter TC-HI-16
Buffer memory Reads of the BM answered on the port of the BC TC-HI-16
Buffer memory Errors of the reads of the BM not counted as protocol reads TC-HI-16
Buffer memory Double error flag not passed to the BM TC-HI-16
Register file Bit 0 of the filter base output '1' TC-HI-17
Register file BM_CONTROL reset without OUTSIDE and ACTIVITY TC-HI-17
Register file BM_TIMEOUT reset 4.0 us TC-HI-17
Register file Cmd_BmLostClr held after the write TC-HI-17
Register file BM_LEVEL set by the overflow event TC-HI-17
Register file CORE_STATUS.BM_INCLUDED constant '0' TC-HI-17 (c100_bm)
Register file BM_STATUS.ACTIVE not shown TC-HI-17

A write of the BC or the BM marked as a read in the owner register passes every test, since no behaviour depends on it: the owner bits act only together with the read valid of the RAM for the same access, and a write gives none, so no response and no error flag can follow (the owner bit of the RT carries the same unneeded condition).