o1553_core: 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, the core with the BC and the
BM: python run.py -p 1 --xunit-xml results.xml "*.o1553_core_tb.*" and the same for o1553_core_role_tb, the
tests below, 94 and 8 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, the core with the BC and the BM) 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_core_tb |
94 (the 13 test cases of the RT role in c100, c100_bc and c100_bm, 5 of them also in c16, c400, s4, l2 and l7; of the BC role TC-CORE-15 in c100_bc, c16_bc, c400_bc, l7_bc and c100_open, TC-CORE-17 in the four BC configurations, TC-CORE-15 to TC-CORE-18 in c100_bc and c100_bcbm, TC-CORE-19 in c100; of the BM TC-CORE-22 and TC-CORE-23 in c100_bm, c16_bm, c400_bm and l7_bm, TC-CORE-24 in c100_bm and c16_bm, TC-CORE-25 in c100_bcbm, TC-CORE-26 in c100_bm, TC-CORE-27 in c100 and c100_bc) |
94 |
o1553_core_role_tb |
8 (TC-CORE-20, TC-CORE-29; test_role_log_coincidence with the assertion stop level failure) |
8 |
2. Summary¶
All test cases pass; every one of the 41 requirements of the specification is covered by a test case
(compliance matrix). The tests cross every seam between o1553_codec, o1553_rt and
o1553_host, of o1553_bc and o1553_core_role in the BC role, and of o1553_bm (verification plan, section 5), at
the ports of the core: the bus model on both buses with the echo of the transceivers, the RT model of the shared bench
on both buses in the BC role, the bus model as the BC and as the other terminals for the BM, the AXI4-Lite VVC on the
host port, the straps, the tick, the error injections and the indications. Each record of the BM is read through the
memory window and checked word by word against the words on the bus. o1553_core_role_tb checks every output of the
role cycle by cycle against a reference model. VSG reports no errors and no warnings. The core synthesises with
ghdl --synth without latches in the configurations of section 5.
Findings of the verification and their resolution:
| Finding | Resolution |
|---|---|
Nine faults of the connections passed every test of the first round (section 7): the line activity of the buses swapped, the contiguity of the words, the abort of a transmission, the suppressed status word, the time tag of the records, two status conditions swapped, the frame and the health service swapped, the records of errors always enabled, the buffer and pending bits of TX_IN_USE swapped |
TC-CORE-02: word count too high, data words not contiguous (gap 0.6 us), the time tag of the records, broadcast mode commands; TC-CORE-05: each status condition alone, LOG_ERRORS; TC-CORE-06: TX_IN_USE of buffer 1, the record of a message on a shut-down bus; TC-CORE-11: the frame and the health service alone; TC-CORE-12: a transmission aborted by a command on the other bus; TC-CORE-04: illegal commands at rtRespMin under host traffic |
| A double error in a receive status word or a message count stays: the RT reads these words before it writes them and stops at the double error, so every later message to the subaddress ends with error code 10 or 14 and sets the terminal flag, and the host was not to write them (D9) | The host repairs the descriptor while the subaddress is illegal and no message uses it, with the publication bound of the RT (CORE-FT-04, user guide section 7); TC-CORE-10 checks the persistence, that an illegal command reads no word of the descriptor, and the publication with the message count 1 after the repair |
A double error read by the data job of a message that a new command supersedes reached the new receive message in one clock cycle (found in o1553_rt, TC-RT-11) |
The RT ignores that result (o1553_rt architecture, section 6.2); the double error is still reported: TC-CORE-10 sweeps the new command over the data job and checks that whenever ECC_PROTOCOL counts the double error, ECC_DED, BIT word bit 4 and the terminal flag of the next status word are set, and that the new message is published without the message error (CORE-FT-02) |
BC-FR-07 required every broadcast on the bus of bit 31 of BC_RT_BUS, while BC-MF-08 and o1553_bc take the bus of a message from its control word (TC-CORE-15: a broadcast with bus A in its control word on bus A while bit 31 selected bus B) |
BC-FR-07 corrected: bit 31 for the synchronization messages and for a broadcast whose control word selects BC_RT_BUS; no change of the RTL |
After a role error during the latch walk no frame started any more: o1553_bc_mem kept a read withdrawn at the role error in its count of the reads in flight (TC-CORE-17, 49 restarts without a frame) |
The withdrawn read leaves the count (o1553_bc architecture section 8.1); TC-BC-02 repeats the case at the unit level, and both fail without the change (section 7) |
Two items of TC-CORE-16 cannot be produced at the ports: a start refused for an RT message in progress, and a start in the first cycle after a message of the RT. The start needs RT_EN = '0', with which the RT ends a message at once (RT-FT-04), and two register writes land at least 3 cycles apart |
TC-BC-01 verifies the refusal for an RT message in progress; TC-CORE-16 sweeps the start cycle by cycle across the end of an RT message (section 3) |
The order of reads and writes at the host port: olo_axi_lite_slave serves a waiting read before a waiting write, so a master that issues reads continuously can delay its writes (TC-CORE-04 with the AXI4-Lite VVC, which runs its read and write channels independently) |
A property of the host port, stated in the notes for the user guide (o1553_host architecture, section 9); a processor that issues its accesses in program order is not affected |
| After a role error the BM became active in the cycle of the error and wrote a record of what remained of the aborted transmission of the BC, before the next message of the bus model (TC-CORE-25) | The behaviour of the design: the BM is active whenever BM_CONTROL.EN is set and the BC is inactive (BM-EN-01). TC-CORE-25 takes up the ring at BM_WRITE_INDEX and BM_STATUS.SEQ after the role error, and the verification plan describes it |
Defects of the testbench found while bringing it up, all corrected before the runs of this report: data words of a
receive command not initialised in TC-CORE-01 (the RT treated the invalid words correctly as a message error), the
subaddress field of TX_IN_USE expected 0 when no buffer is in use (it keeps the last subaddress; only IN_USE
matters), the terminal flag after a double error of a host read not expected (the core sets it, CORE-FT-02), the
terminal flag after a double error of a filter read expected in the answer to mode code 2, which returns the status
word of the message before (TC-CORE-26 sends mode code 1), and the profile of the BC in TC-CORE-27 looked for before
its first slot was on the bus.
3. Measured at the ports¶
| Quantity | Requirement | Measured |
|---|---|---|
| Receive sequence of D9 against back-to-back messages (TC-CORE-08) | every completed read one valid message (CORE-BO-01) | 324 to 436 completed reads per configuration, 40 to 41 of them repeated after a publication; every completed read one valid message, complete, word by word |
| Transmit sequence of D9 against back-to-back transmit commands (TC-CORE-09) | every transmitted message one version (CORE-BO-02) | 161 to 198 versions per configuration, 731 to 904 waits for TX_IN_USE (with PENDING in c16, l7, s4); every transmitted message one version, versions in order |
Host reads beside the messages at rtRespMin (TC-CORE-04) |
within 64 cycles (HI-HP-04) | MemLatency + 3 cycles: 5 (l2), 6 (c100, c16, c400, s4), 10 (l7) |
| Response time at the ports (TC-CORE-04, all configurations) | RESP_TIME, bounded to rtRespMin to 24H, within one cycle (CORE-RT-02) |
within one cycle for every value, receive, transmit and mode commands, also at rtRespMin with host traffic |
| Frames of the BC (TC-CORE-15, every BC configuration) | every D (BC-FR-01); Bc_FrameSync txLatency cycles before the sync (CORE-BC-02) |
exactly D (2000 us and 2500 us) between the mid-sync crossings of consecutive synchronization messages; Bc_FrameSync exactly 2 cycles before the start of the sync, with Bc_FrameNum |
| Gap of the BC (TC-CORE-15) | BC_GAP (BC-TM-01) |
after a word of the BC exactly BC_GAP (6 us and 10 us); after a received word BC_GAP to BC_GAP + 2 cycles |
| No-response time-out of the BC (TC-CORE-15) | BC_TIMEOUT (BC-TM-02, BC-TM-03) |
an RT answering 3 cycles before BC_TIMEOUT accepted, 3 cycles after it no response; without line activity the next command starts BC_TIMEOUT + SyncStages_g + F + 6 cycles + txLatency after the reference crossing |
| Time synchronization (TC-CORE-15) | frame 0 BC_TS_DELAY after the tick (CORE-BC-02) |
from Bc_TimeTick exactly BC_TS_DELAY + SyncStages_g + 5 cycles; from BC_COMMAND.TICK within BC_TS_DELAY + 40 cycles of the write; the last frame ends BC_TICK_TIMEOUT + 0 to 10 us after the tick without a further tick |
| Start right after a message of the RT (TC-CORE-16) | the publication and the record of the RT complete (CORE-RL-04) | 61 offsets of the start, one cycle apart: 45 with the RT message complete, 16 with the message ended by RT_EN = '0'; at 10 offsets the first frame start of the BC later than the earliest of the sweep (a request of the BC behind the last jobs of the RT), by at most MemLatency + 26 cycles |
| Transmission at a role error (TC-CORE-17, every BC configuration) | ends within 20 us + txLatency + 2 cycles (CORE-RL-03) |
within the bound; no transmission on either bus for 2 ms after it |
| Double errors in the bus profile (TC-CORE-18) | counted in ECC_PROTOCOL (CORE-BC-03) |
one count per read of the word: frame table entry 1, slot word and control word 2 (latch walk and fetch), the other host words and the transmit data words 1 |
| Records of the BM (TC-CORE-22, every BM configuration) | every message, word and line activity recorded with its words and times (CORE-BM-01) | every record at its ring position, word by word as sent; the response times of the other terminals within 2 cycles of the times at the ports; every time tag between the values of TIME_TAG read before and after; in a ring of 128 words, records of 44 words across the end of the memory and across the end of the ring |
| Response time of the core in the records of the BM (TC-CORE-23, every BM configuration) | the response time of the core (CORE-BM-02) | the response of the core at the ports within one cycle of RESP_TIME (rtRespMin and 12.0 us); in the record within 3 cycles of the time at the ports plus the echo of the bus model (400 ns), the bound that the verification plan derives at TC-CORE-23 |
Load (TC-CORE-24, c100_bm and c16_bm) |
every message recorded, the RT not delayed (CORE-BM-05) | 24 messages back to back, 24 records with consecutive sequence numbers, BM_LOST 0, every status word of the core within one cycle of rtRespMin; 803 (c100_bm) and 375 (c16_bm) complete receive sequences of TC-CORE-08 meanwhile, 0 and 6 repeated after a publication. Without reads of the host: 36 messages, 29 records in the ring, BM_LOST 7, a gap of 7 in the sequence numbers |
The request pattern of the RT on its memory port is a measured property of the RT verification report (longest run 10 requests, at most 11 in any 64 cycles); the host interface takes the memory for one cycle per host access, so the RT waits at most one cycle whatever the pattern.
4. Functional coverage¶
| Coverpoint | Reached by |
|---|---|
FORMAT |
Receive, transmit and mode messages with and without data word on both buses (TC-CORE-02, TC-CORE-04), RT to RT receiving and transmitting on both buses (TC-CORE-03), broadcast receive and broadcast mode commands on both buses (TC-CORE-02) |
HOST_RACE |
Receive reads repeated after a publication, transmit switches that waited for TX_IN_USE with PENDING and with BUF (TC-CORE-08, TC-CORE-09; PENDING in c16, s4 and l7) |
DED_REGION |
Receive control word, transmit control word, table entry, receive status word, message count, transmit data word, event record word, receive data word (TC-CORE-10, all configurations) |
RESPONSE_TIME |
Below the minimum, rtRespMin, 6.0 us, 12.0 us, above the maximum (TC-CORE-04, all configurations) |
ROLE |
Start refused by RT_EN; starts right after a message of the RT, with a request of the BC behind its last jobs (TC-CORE-16); role error while waiting for the first frame (latch walk), while transmitting and with the reads of a fetch in flight (TC-CORE-17); stop; command to the own RT address in the BC role (TC-CORE-16) |
BC_FORMAT |
BC to RT, RT to BC, RT to RT, mode commands without and with data word, broadcast, each on bus A and on bus B (TC-CORE-15) |
BM_FORMAT |
BC to RT, RT to BC, RT to RT, mode commands without data word, with a received and with a transmitted data word, the broadcast forms, a word outside a message, line activity without a word, each on bus A and on bus B (TC-CORE-22); messages with words of the core on both buses (TC-CORE-23) |
BM_EXCLUSION |
Start refused with the BM active; the core as a backup BC; BM_CONTROL.EN set while the BC is active; the BM active after a stop and after a role error (TC-CORE-25) |
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 |
SyncStages_g |
2 to 4 | 2, 4 | 2, 4 |
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 in o1553_host_tb) |
0.0, 1 ms; 999 us stops with the message of HI-CF-03 |
IncludeBc_g |
false, true | false, true | false, true, at the ends of the ranges above; 125 MHz with the BC stops with the message of CD-CF-01 |
AllowOpenProfile_g |
false, true | false, true (c100_open) |
false, true |
IncludeBm_g |
false, true | false, true (*_bm, c100_bcbm) |
false, true, at the ends of the ranges above, also with IncludeBc_g = true at 16 and 400 MHz and with RamRdLatency_g 4, EccPipeline_g 2; 125 MHz with the BM stops with the message of CD-CF-01 |
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 of the connections of the top level, inserted one at a time (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 31 of 45 faults failed a test case. After the extensions of the testbench (section 2), the run over all 46 faults (with the memory latency two cycles too short added) gives 41 of 46; the 5 others are listed after the table with the reason. The 46 faults ran again on f498f9e, the core with the BC role, with the same result, and four faults of the connections of the BC were added (4 of 4). Five faults of the connections of the BM ran on a94fd09 (5 of 5).
| Block | Fault | Failing test case |
|---|---|---|
| Bus A and bus B | Receivers of bus A and bus B swapped | TC-CORE-02 |
| Bus A and bus B | Transmitters of bus A and bus B swapped | TC-CORE-02 |
| Bus A and bus B | Receiver enables of bus A and bus B swapped | TC-CORE-05, TC-CORE-12 |
| Bus A and bus B | Bus enables of CONTROL swapped | TC-CORE-05, TC-CORE-12 |
| Bus A and bus B | Transmitter enables of BUS_STATUS swapped | TC-CORE-06, TC-CORE-12 |
| Bus A and bus B | Shutdown state of BUS_STATUS swapped | TC-CORE-06 |
| Bus A and bus B | Line activity of bus A and bus B swapped at the RT | TC-CORE-02 |
| Memory latency | MemLatency_g of the RT 2 cycles too long | TC-CORE-04 (c16, l7) |
| Memory latency | MemLatency_g of the RT two cycles too short | TC-CORE-04 (c16, l7) |
| Codec and RT | Own words not marked (echo taken as received words) | TC-CORE-02 |
| Codec and RT | Bus of the transmission inverted | TC-CORE-02 |
| Codec and RT | Abort of a transmission not passed | TC-CORE-12 |
| Codec and RT | Suppressed transmission not reported | TC-CORE-06 |
| Codec and RT | Shutdown set and clear swapped | TC-CORE-06 |
| Codec and RT | Loopback errors not passed to the RT | TC-CORE-05 |
| Codec and RT | Contiguity of the words not passed (always contiguous) | TC-CORE-02 |
| Codec and RT | Word errors of bus B not passed | TC-CORE-08 |
| Host interface and RT | Memory initialisation not awaited by the RT | TC-CORE-01 |
| Host interface and RT | Record index fixed at 0 | TC-CORE-02 |
| Host interface and RT | Interrupt request of the records not passed | TC-CORE-02 |
| Host interface and RT | Time tag of the records 0 | TC-CORE-02 |
| Host interface and RT | Double error events of the host not passed to the RT | TC-CORE-10 |
| Host interface and RT | Response time of the RT fixed at 6.0 us at 100 MHz | TC-CORE-04 |
| Host interface and RT | Service request and subsystem flag swapped | TC-CORE-05 |
| Host interface and RT | Frame service and health service enables swapped | TC-CORE-11 |
| Host interface and RT | Time service and wrap-around enables swapped | TC-CORE-11 |
| Host interface and RT | Records of errors always enabled | TC-CORE-05 |
| Host interface and RT | BIT clear not passed | TC-CORE-10 |
| Host interface and RT | Health set not passed | TC-CORE-11 |
| Host interface and RT | Address check not passed | TC-CORE-07 |
| Host interface and RT | Vector word 0 | TC-CORE-02 |
| Host interface and RT | Host BIT bits 0 | TC-CORE-05 |
| Host interface and RT | Status word and last command word swapped in the status registers | TC-CORE-06 |
| Host interface and RT | Buffer and pending of TX_IN_USE swapped | TC-CORE-06 |
| Host interface and RT | Frame number 0 in RT_FRAME | TC-CORE-06 |
| Host interface and RT | Frame synchronisation not passed to the host | TC-CORE-06 |
| Host interface and RT | Address errors swapped in RT_ADDRESS | TC-CORE-07 |
| Host interface and RT | BIT word 0 in the status registers | TC-CORE-07, TC-CORE-10 |
| Host interface and RT | Loopback monitor always enabled | TC-CORE-05 |
| Host interface and RT | Error injection not connected | TC-CORE-10 |
| Host interface and RT | Indication of mode code 1 not at the port | TC-CORE-06 |
| BC role | Bc_TimeTick not connected |
TC-CORE-15 |
| BC role | ErrInj_RoleFlip not connected |
TC-CORE-17 |
| BC role | The RT enabled by CONTROL.RT_EN alone, not through the role |
TC-CORE-16 |
| BC role | IncludeBc_g and AllowOpenProfile_g of the host swapped |
TC-CORE-15 |
| BM | The BC started on the start condition of the RT alone, past the BM | TC-CORE-25 (c100_bcbm) |
| BM | The state of the BC not connected to the BM | TC-CORE-25 (c100_bcbm) |
| BM | Line activity without a word not connected to the BM | TC-CORE-22 (c100_bm) |
| BM | ErrInj_BmBitFlip not connected |
TC-CORE-26 (c100_bm) |
| BM | Time tag of the BM 0 | TC-CORE-22 (c100_bm) |
These faults pass every test, since no behaviour at the ports of the core depends on them:
| Block | Fault | Why it cannot show at the ports |
|---|---|---|
| Bus A and bus B | Fail-safe state of the RT swapped | The fail-safe state is never reached in the core: the longest transmission of the RT (33 words, 660 us) is shorter than the fail-safe time of the codec (700 us); the codec testbench verifies the fail-safe timer, the RT testbench its reaction |
| Memory latency | MemLatency_g of the RT one cycle too short |
rtRespMin becomes one cycle shorter (67 instead of 68 cycles at 16 MHz), within the one cycle of RT-TM-01, and rtDecision still covers the one wait cycle behind a host access that the host interface allows; two cycles too short fails TC-CORE-04 |
| Codec and RT | Result of the transmission always complete | A transmission through the codec cannot end with an underrun: the RT reads every data word a word time ahead, and a double error in a data word ends the transmission by the RT itself (TC-CORE-10); the RT testbench verifies the reaction to the result |
| Reset | Codec or RT reset from the reset input without the synchroniser | In a simulation without metastability the modules only leave the reset a few cycles earlier, before the memory is initialised; the synchronised reset of all modules is a structural rule (CORE-ST-01, HI-TB-01), checked by review |
The checks of CORE-FT-04 in TC-CORE-10 rest on the RT: an illegal command neither reads nor writes the status word and
the message count of its subaddress. Two faults of o1553_rt_seq, inserted one at a time, fail TC-CORE-10 in c100:
an illegal command that starts the receive data job (it reads the receive status word with the double error) and an
illegal command that publishes its message (it reads the message count with the double error).
Each of these faults of o1553_core_role, inserted one at a time, fails the tests of o1553_core_role_tb (the
seven of TC-CORE-20, since the bench compares every output in every cycle), except the removed assertion, which only
test_role_log_coincidence can see: the stream from the RT in the BC role, the stream from the BC in the RT role,
Tx_Ready to both engines, the result to the active engine instead of the owner, the owner following the role
during a transmission, the abort of the BC only, the abort of the RT only, Fs_Clr of both engines ORed, Fs_Clr
of the RT in the BC role, the push of one engine only, Log_Irq of the other engine, the RT enable without the role,
the assertion removed (13 of 13, on f498f9e). Each of the three terms of the start condition of the BC removed
(Stat_MsgActive of the RT, BM_CONTROL.EN, Stat_BmActive) fails test_role_bc_start_block (3 of 3, on
a94fd09).