o1553_bm: Verification Report¶
1. Test results¶
Run with GHDL 6.0.0 (mcode), VUnit 5.0.0.dev7 and UVVM 2026.03.20 on commit a7e0044: python run.py -p 1 --xunit-xml
results.xml "*o1553_bm_tb*", the 48 tests of o1553_bm_tb below, 48 passed, 0 skipped. python run.py --compile
and python lint/synth_check.py (59 configurations, 0 failed) ran on the same commit. The faults of section 7 ran on
b59ce8f, the four marked * again on a7e0044 (section 2). With the port Cfg_BmFiltBase renamed Cfg_BmFilterBase
(no change of function) the 48 tests ran again on a94fd09, 48 passed, 0 skipped, and python lint/synth_check.py
(69 configurations with those of o1553_core with the BM, 0 failed). With the test cases extended after the code
coverage review and the change of o1553_bm_mem (section 2) the 48 tests ran again on a50268b, 48 passed, 0 skipped,
as did python run.py --compile and python lint/synth_check.py (69 configurations, 0 failed). The faults marked † in
section 7 ran on f60a69d and a50268b.
| Testbench | Tests | Passed |
|---|---|---|
o1553_bm_tb |
48 (17 test cases in c100; TC-BM-01, TC-BM-02, TC-BM-03 and TC-BM-10 also in c16, c16_s4, c400, c100_l1, c100_l8 and c16_l8; TC-BM-11 also in c100_l1, c100_l8 and c16_l8; TC-BM-15 also in c100_l1, c100_l8, c16 and c16_l8) |
48 |
The regression of release 0.3.0 (a2724fb) 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.
2. Summary¶
All test cases pass; every requirement of the specification is covered by a test case
(compliance matrix). In every test the memory model checks each write of the BM against
the ring and each read against the filter table (BM-RG-04), and holds requests back at random. The words on the bus
come from the bus model of the shared bench, and the expected records from the words it sent and the record formats of
the architecture. VSG reports no errors and no warnings. The BM synthesises with ghdl --synth without latches in the
configurations of section 5.
Findings of the verification and their resolution:
| Finding | Resolution |
|---|---|
| A data word where a status word is expected, not contiguous, ended the message with the flag "gap" (TC-BM-04) | BM-MR-08: a word of the wrong sync type gives "sync"; "gap" only where a contiguous data word is expected |
| The record writer took a word of the message buffer in the delta cycle in which its own registers had changed at the clock edge but the output of the buffer had not yet: the count of reads in flight went below 0, a range error of the simulator in every test | A word of the buffer and a response to a filter read are taken only while one is expected |
| A data word of the BC after a gap longer than the wait for a contiguous word was expected to give "gap" (TC-BM-07, bench) | The wait ends first: "word count low" only, and the word is a word outside the message (verification plan updated) |
| A status word without its command was planned as a word outside a message (TC-BM-09, plan) | It begins a message as any valid word with command sync (BM-MR-01); the plan states it |
| Four faults of the RTL passed every test (section 7): the own flag of a status word alone, a status word with busy alone followed at once by a word, a tracker not reset at a deactivation, one free word of the ring too many | Tests added: an own status word alone (TC-BM-13), a busy status word alone and a data word 1 us later (TC-BM-05), a re-activation in the middle of a message (TC-BM-16), records of 16 words in a ring of 64 (TC-BM-12); the four faults fail them |
| The code coverage of the phase c tests in QuestaSim showed reachable paths without a test: the drop of a filter response that returns after a deactivation, the saturation of the lost count (which the plan of TC-BM-12 named but the bench never reached), the ends of a message by the response window of status word 2 and by the wait after a receive command, records lost for want of a slot while the memory port is held, an activity lost while the one before it waits, and further deviation positions, own and filter combinations and deactivation cycles | TC-BM-03, TC-BM-05, TC-BM-07, TC-BM-08, TC-BM-10, TC-BM-12, TC-BM-14, TC-BM-15 and TC-BM-16 extended (verification plan); the paths that no port can reach are justified in coverage.md |
Defect found by the extended TC-BM-16: a record lost for want of ring space in the cycle in which the BM became inactive was still counted and gave the event "overflow" one cycle after Stat_BmActive fell, against BM-EN-02 and BM-EN-03 (the loss for want of a slot was already gated by the active state) |
o1553_bm_mem counts that loss and gives the event only while active (architecture section 6.2); the sweep across the cycle of that loss fails without the change |
| The bound of the lost records counted records that complete while all slots wait (BM-RG-05) | A record is lost when it begins while all four slots of its bus are held, or an activity comes while the one before it waits; the specification states it |
3. Timing checks¶
The timing requirements are checked at the ports in clock cycles, in every configuration of the test case:
| Quantity | Check | Test case |
|---|---|---|
Response window: status word 2 cycles before and after Cfg_BmTimeout (in quarter cycles at 18 us, in cycles at 14 and 30 us), for status word 1 and status word 2 |
taken before, "no response" after, one change between (BM-MR-04) | TC-BM-03 |
| End of a message without a response | first write of its record after Cfg_BmTimeout + 36H + rxLatency + 2 cycles from the word event of the command, within 60 cycles of it |
TC-BM-03 |
| Time-out below 14 us | taken as 14 us: a status word at 13 us is taken (BM-CF-03) | TC-BM-01 |
| Response time of each status word | the recorded value within 2 cycles of the time from the reference crossing of the word before to the mid-sync crossing of the status word sent, 4 to 12 us and around the window | TC-BM-02, TC-BM-03 |
| Gap of a word outside a message | within 2 cycles of the time from the reference crossing of the valid word before | TC-BM-04, TC-BM-07, TC-BM-09 |
| Time tag | within 3 cycles of the time base at rxLatency after the reference crossing of command word 1 or of the word |
every test case with records |
| Duration of line activity without a word | within 1 cycle of the level at the ports plus the latencies of Rx_Active; all ones beyond 2^16 - 1 cycles |
TC-BM-10 |
| Throughput: per bus and word time a message or word record and an activity record on both buses, every request waiting one cycle and none served in 20 cycles of every word time | no record lost (BM-RG-05) | TC-BM-15 |
| End of a message by the window of status word 2 and by the wait after a receive command or a status word | "no response 2", "word count low" when the wait ends (BM-MR-04, BM-MR-06) | TC-BM-03, TC-BM-05 |
| Activity during the 12 cycles of a header write: two activities 0.65 us apart swept cycle by cycle across the end of a message | at 16 MHz the second lost and counted, no sequence number; above 16 MHz none lost (BM-RG-05) | TC-BM-10 |
| A command on the other bus swept cycle by cycle across the end of a message | "superseded" before the end, never after it, one change (BM-MR-09) | TC-BM-08 |
| Deactivation swept cycle by cycle across the completion of a record, the filter reads, a loss for want of a slot and a loss for want of ring space | the record written whole or not at all; responses of reads in flight dropped; from the edge at which Stat_BmActive falls no overflow event and no change of the lost count (BM-EN-02, BM-EN-03) |
TC-BM-16 |
4. Functional coverage¶
Every bin of the coverpoints of the verification plan (section 5) is reached, and each bin is checked on its own:
| Coverpoint | Reached by |
|---|---|
FORMAT |
BC to RT, RT to BC, RT to RT, mode commands without data word, with a received and with a transmitted data word, and the broadcast forms of BC to RT, RT to RT and the mode commands, on bus A and on bus B (TC-BM-02) |
WORD_COUNT |
1, 2, 31 and 32 data words (TC-BM-02); one too few of the BC and of the RT, one and two too many, 34 for 32 (TC-BM-05) |
RESPONSE_TIME |
4, 5, 6, 8, 9, 12 us (TC-BM-02, TC-BM-03); around the window of 14, 18 and 30 us; beyond it; none (TC-BM-03) |
FLAG |
Broadcast and RT to RT (TC-BM-02), no response 1 and 2 (TC-BM-03), status address 1 and 2 (TC-BM-04), word count low and high (TC-BM-05), invalid word (TC-BM-06), sync (TC-BM-04, TC-BM-05, TC-BM-07), gap (TC-BM-07), superseded (TC-BM-08), own (TC-BM-13), filter error (TC-BM-11), buffer error (TC-BM-14) |
ERROR_CLASS x POSITION |
Sync, Manchester, bit count and parity errors in command word 2, a data word of the BC, status word 1, a data word of the RT, status word 2 and after the last word (TC-BM-06) |
RECORD_TYPE |
Message (TC-BM-02), word (TC-BM-09), activity (TC-BM-10) |
RING |
Plain, across the ring end and across memory word 8191, full, level reached, rings of 64 and 8192 words, lost count saturated (TC-BM-12, TC-BM-01) |
SUPERSEDED_STATE |
A command on the other bus in the response window, among the data words of the BC, before the status word of the transmitting RT of an RT to RT transfer, among the data words of the RT, before status word 2, and with the RT stopping, in both directions (TC-BM-08) |
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, 3, 4 |
MemLatency_g |
1 to 8 | 1, 3, 8 | 1, 3, 8 |
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. The recovery branches
of the state machines are marked as excluded (coverage off), since they cannot be reached through the ports.
7. Checks of the testbench¶
TC-BM-17 provokes each check of the bench once: the memory model flags the word of a record outside its ring and the two filter reads outside its filter table, the record checker flags a changed data word, a record that never comes and a record that comes where none is expected; each as an expected alert.
Each of the following faults, inserted one at a time into the RTL of the BM (the file restored after the run), fails
the test cases listed in c100 (in c16 where stated); the RTL of the repository passes all of them. The faults
marked * passed every test on b59ce8f and fail the test cases added on a7e0044 (section 2). The faults marked † are in
the paths of the code coverage review (section 2) and fail the test cases extended for it; they ran on f60a69d, the
data words of a message without a slot on a50268b.
| Block | Fault | Failing test case |
|---|---|---|
| Tracker | Status address of status word 1 not checked | TC-BM-04 |
| Tracker | Response window compared with half the time-out | TC-BM-03 |
| Tracker | End of the response window without the 36H of a status word |
TC-BM-03 |
| Tracker | Wait for a contiguous word 30H instead of 40H |
TC-BM-02, TC-BM-05 |
| Tracker | Superseded never set | TC-BM-08 |
| Tracker | Own flag of a status word not taken * | TC-BM-13 |
| Tracker | RT to RT format not taken from command word 2 | TC-BM-02 |
| Tracker | A status word with message error or busy alone not complete when a word follows * | TC-BM-05 |
| Tracker | Error class of an invalid word not recorded | TC-BM-06 |
| Tracker | The word that ends a message not handled again | TC-BM-04, TC-BM-07 |
| Tracker | Words outside a message recorded with Cfg_BmOutside = '0' |
TC-BM-09 |
| Tracker | Activity recorded with Cfg_BmActivity = '0' |
TC-BM-10 |
| Tracker | Deactivation does not reset the tracker * | TC-BM-16 |
| Tracker | Status word 1 written in place of status word 2 | TC-BM-02 |
| Tracker | No "word count low" when the wait after a receive command ends † | TC-BM-05, TC-BM-07 |
| Tracker | No "no response 2" when the window of status word 2 ends † | TC-BM-03 |
| Tracker | Command word 1 without a free slot taken as having one † | TC-BM-15 |
| Tracker | Data words of a message without a slot written into the message buffer † | TC-BM-15 |
| Tracker | Word outside a message without a slot not counted as lost † | TC-BM-15 |
| Tracker | Message without a slot not counted as lost † | TC-BM-15 |
| Tracker | Activity that comes while the one before it waits not counted as lost † | TC-BM-10 in c16 |
| Writer | Filter table used with Cfg_BmFilter = '0' |
TC-BM-11 |
| Writer | Interrupt bit taken from the record word | TC-BM-11 |
| Writer | Free words of the ring one too many * | TC-BM-12 |
| Writer | Sequence number not taken by a record lost for want of ring space | TC-BM-12 |
| Writer | Event "level" for every record | TC-BM-12 |
| Writer | Buffer error not marked | TC-BM-14 |
| Writer | Write index advanced at the first write of a record | TC-BM-02, TC-BM-16 |
| Writer | Responses of reads in flight not counted down after a deactivation † | TC-BM-16 |
| Writer | Lost count not saturating † | TC-BM-12 |
| Writer | Loss for want of ring space counted and signalled while inactive (the defect of section 2) † | TC-BM-16 |
| Writer | Buffer error of a word record taken from word 0 only † | TC-BM-14 |
Two faults in paths that the code coverage review found cannot fail any test:
| Block | Fault | Why no test fails |
|---|---|---|
| Writer | Loss for want of a slot counted without the active state | Equivalent: the number of records lost in a cycle is used only for the lost count and the event "overflow", and both are taken only while active (the defect of section 2) |
| Tracker | A command word 1 on the other bus also taken as "superseded" while the header is written | Not observable at the ports within their resolution: the flags word is the third word of the header write, so the boundary of "superseded" moves by at most the 2 cycles before it, against an uncertainty of 1 to 2 cycles of the end of a message at the ports. This rests on design analysis |