Skip to content

o1553_bc: Verification Report

1. Test results

Run with GHDL 6.0.0 (mcode), VUnit 5.0.0.dev7 and UVVM 2026.03.20 on commit 53e9da7, after the tests of the code coverage review: python run.py -p 1 --xunit-xml results.xml, 331 tests of the repository, 331 passed, 0 skipped; the tests of o1553_bc_tb below. TC-BC-06 ran again with the check of the memory port of section 7 on 4964636, in c100: 1 of 1 passed, 0 skipped. The checks of the testbench in section 7 ran on adfd986 and 51a46de, the faults of the later rows on f498f9e, 60643e7, 53e9da7 and 4964636.

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.

Testbench Tests Passed
o1553_bc_tb 83 (24 test cases in c100; 11 of them also in c16, c16_s4, c400, c100_l1 and c100_l8; TC-BC-21 also in c100_l1 and c100_l8; TC-BC-09 and TC-BC-18 also in c100_open) 83

Every test runs under the VUnit watchdog of 200 ms of simulated time. The one case beyond it is the frame count above 256 of TC-BC-04, which runs in c16 only: 258 frames of 2000 us take 516 ms, so that case sets the watchdog to 600 ms when it starts.

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 BC against the ownership rules and the publication order of D9, and holds requests back at random. The far end of every message is the RT model of the shared bench on both buses, which is verified by its own testbench (verification plan section 8). VSG reports no errors and no warnings. The BC synthesises with ghdl --synth without latches in the configurations of section 5.

Findings of the verification and their resolution:

Finding Resolution
The sequencer left the synchronization state when the scheduler withdrew the frame start request after the command word, so the data word of the frame synchronization message was lost (TC-BC-04) Sync_s ends before its command word only when the request ends (frame skipped), otherwise with the end of the transmission
A status word with data words to follow was decided as word count too low when the line activity fell before the event of the first data word (TC-BC-08) The decision without data words needs a status word with message error or busy, no rising edge of the line activity since the status word and the line idle (BC-RV-03)
Bc_FrameNum came one cycle after Bc_FrameSync (TC-BC-04) Bc_FrameNum carries the number of the scheduler in the frame start cycle (BC-IF-09)
The gap after a received word could be half a cycle short (TC-BC-11) The gap counts from rxLatency after the event: it is between 0.5 and 2 cycles longer than Cfg_BcGap, never shorter (specification section 3)
A stop made the BC inactive before the results of the last message were written (TC-BC-03) The stop waits for the results job (BC-RO-03)
The prefetch of a slot read the result, count and done count of its descriptor before the results of the message before with the same descriptor were written (TC-BC-23) The sequencer forwards them to a slot of the same descriptor
After a skipped frame the latch walk of the next frame never started (TC-BC-17) The walk starts once per frame at the first microsecond at or after D - L, also after a skip (architecture section 5.2)
Every frame start gave the event "late" (TC-BC-04) Late only when the frame start waited longer than the 2 cycles from due to presentation
The BC withdrawn from the role kept a memory request that the memory model held back (TC-BC-01) No request while inactive (BC-RO-02)
The early no-response decision came 3H before the time-out, so the BC sent its next command over a status word that came in time (TC-BC-11) Early decision at Cfg_BcTimeout + SyncStages_g + F + 2, only without a rising edge of the line activity (architecture section 6.3)
The next command could be presented in the cycle of the event of the last data word, before the gap restarted: a gap of 3.12 us (TC-BC-12) The idle time before a command ends two cycles after the latest event of a word (architecture section 6.3)
With MemLatency_g = 8 the latch walk took more than six cycles per slot Two control and latch reads in flight and eight slot reads ahead (architecture section 8.2)
A timed slot that was due late and then not sent had result bit 13 ("started late") set Bit 13 only for a message that started (architecture section 4.4, TC-BC-17)
Result code 13 ("stopped") was defined but no path wrote it: a stop lets the message complete, and a role error ends it without a result Code 13 reserved (architecture section 4.7, specification section 5)
Four faults of the RTL passed every test (section 7): the word count check of a status word alone, the frame guard of a slot that comes up after the gap, the latch walk after a skipped frame, the broadcast transmit rule of the ECSS profile Tests added (TC-BC-12, TC-BC-17, TC-BC-18)
The functional coverage review found every format except BC to RT on bus A only Every format also on bus B (TC-BC-07 to TC-BC-10)
The BC withdrawn from the role at a read that the memory had not taken yet kept that read in the count of the reads in flight: the queue of tags stayed offset by a read that never returns, and after the next start the latch walk never ended. Found at the core ports (o1553_core TC-CORE-17: no frame after a role error during the latch walk); TC-BC-02 did not reach the case, since its memory model took every request in its cycle The withdrawn read leaves the count (architecture section 8.1); TC-BC-02 repeats the injection during the latch walk in four consecutive cycles with every request waiting one cycle, then runs a frame. The new case fails without the change (last fault of section 7)
BC-FR-07 required every broadcast message on the bus of bit 31 of Cfg_BcRtBus, while BC-MF-08 and the RTL take the bus of a message from its control word. Found at the core ports (o1553_core TC-CORE-15: a broadcast with bus A selected in its control word on bus A while bit 31 selected bus B) Both trace to MIL 4.6.3.1, which requires one active bus at a time: BC-FR-07 now states bit 31 for the synchronization messages and for a broadcast whose control word selects Cfg_BcRtBus. No change of the RTL or of the tests of this report
The user guide states the result of a double error in every word that the BC reads before a message, and how the words that the BC reads before it writes them are repaired. TC-BC-21 injected only into descriptor words 0 to 3, the control word at the latch, a slot, the frame table, the transmit data and the message count TC-BC-21 also injects into the result word, the done count, the latch word (after the latch walk of the frame), the status table entry of a slot with the service request condition and data word 0 of a time message (code 9 each); the message count keeps its double error across a new start and, written with 0 by the host while the BC is inactive, gives the next publication the count 1; the done count and the status table entry stay until they are written, the result word and the latch word are written again by the BC. BC-FT-01 names every word, BC-FT-06 the persistence and the repair. The faults D1 to D7 of section 7 fail the test case
The QuestaSim code coverage of the release regression left conditions and branches of the BC not reached. Each was checked against its row in the RTL: those that the ports can reach got a test Tests added to TC-BC-03, TC-BC-06, TC-BC-11, TC-BC-15, TC-BC-17, TC-BC-18, TC-BC-19, TC-BC-21 and TC-BC-22; the faults C1 to C22 of section 7 fail them. The rows that stay, unreachable or without an effect at the ports, are justified with the code coverage of the release (section 6). Three of the new tests found the defects of the next rows
An on-demand descriptor in two consecutive slots was sent twice for one request: the skip decision of the second slot used the done count of its fetch, not the one taken over from the execution of the first slot (TC-BC-15, BC-SL-04) The skip decision uses the done count taken over from the execution before. Fault C23 of section 7 puts the defect back
A tick in a cycle in which the latch walk had a latch word queued decremented the counters of the new walk, and a read issued in that cycle escaped the drop of the reads of the walk before (TC-BC-06, BC-LA-01, BC-TK-02) In the cycle in which a walk starts, nothing of the walk before is issued. Fault C24 of section 7 puts the defect back
A frame start in the cycle in which the fetch of a slot of the list before ended left the drop flag of the fetch set: the first fetch of the new frame was dropped and its list lost, without an event (TC-BC-03, BC-FR-08, BC-SL-01) A fetch that ends in the cycle of the frame start counts as done and is not dropped. Fault C25 of section 7 puts the defect back
The MIL profile sent a mode command with the RT to RT bit as the mode command, a format that MIL 4.3.3.6.3 does not define Refused by the MIL profile as by the ECSS profile (code 11, BC-PC-03); the open profile sends it as the mode command (TC-BC-18)

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
Frame period: mid-sync to mid-sync of consecutive frame synchronization messages exactly D (BC-FR-08) TC-BC-04, TC-BC-05, TC-BC-17
Bc_FrameSync to the start of the sync of the frame synchronization message exactly txLatency cycles (BC-FR-06) TC-BC-04
Tick to Bc_FrameSync of frame 0 Cfg_BcTsDelay + SyncStages_g + 5 cycles from Bc_TimeTick, + 4 cycles from Cmd_BcTick (architecture section 5.3) TC-BC-05
Timed slot: mid-sync crossing of its command word after the frame start exactly the start time (BC-SL-02) TC-BC-14
Gap: mid-sync of the next command after the reference crossing of the last word exactly Cfg_BcGap after a word of the BC; 0 to 2 cycles longer after a received word (BC-TM-01, specification section 3) TC-BC-11, TC-BC-14
Time-out: status word 3 cycles before and 3 cycles after Cfg_BcTimeout, at 14, 18, 22 and 30 us and 10 us taken as 14 us accepted before, no response after (BC-TM-02; the decision is accurate to about 1.5 cycles, specification section 3) TC-BC-11
No line activity after a command next command (Cfg_BcTimeout + SyncStages_g + F + 2) + 4 + txLatency cycles after the reference crossing, exactly (architecture section 6.3) TC-BC-11
Time-out boundary: 21 status words from 2 cycles before to 3 cycles after the time-out, in steps of a quarter cycle a response more than 1.5 cycles before it, no response more than 1.5 cycles after it, one change between (BC-TM-02, specification section 3) TC-BC-11
Frame start due while the BC decides a slot of the list before that is not sent, the response time before it swept over 64 cycles at most 3 cycles after its nominal start, the event "late" exactly when it is late; 3 cycles measured (BC-FR-08) TC-BC-03
One data word too few and the status word alone result written 21.0 us + rxLatency after the reference crossing of the last word, within 40 cycles (BC-TM-05) TC-BC-12
One data word too many result written 2.0 us after the reference crossing of the last expected word, within 40 cycles (BC-TM-05) TC-BC-12
Latch walk of 256 slots complete before the frame start with Cfg_BcLatchTime = 200 us at every clock; with 20 us late below 38.4 MHz (BC-LA-01, BC-LA-03) TC-BC-16
Transmission at a role error ends within the word in progress: at most 20 us + txLatency + 2 cycles after the error (BC-RO-04) TC-BC-02

The time-out decision compares whole cycles on a word event that comes between half a cycle before and one cycle after rxLatency (o1553_codec); the window of +/-3 cycles of TC-BC-11 holds this accuracy with a margin for the sampling phase of the bus model at 16 MHz.

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 (TC-BC-07), RT to BC (TC-BC-08), RT to RT (TC-BC-09), mode without data word, transmit and receive mode codes (TC-BC-10), each addressed and in broadcast where the profile defines it: the broadcast time message (TC-BC-07, TC-BC-19), the broadcast mode codes (TC-BC-10), broadcast BC to RT and RT to RT in the open profile (TC-BC-09, TC-BC-18); the RT to RT transfers that MIL 4.3.3.6.3 does not define and a mode command with the RT to RT bit: refused by the ECSS and the MIL profile, sent by the open profile (TC-BC-18)
WORD_COUNT 1 (TC-BC-07 to TC-BC-09); 2 to 16: 2, 3, 4 and 5 (TC-BC-07, TC-BC-08, TC-BC-12, TC-BC-19); 17 to 31: 17 and 31 (TC-BC-24, TC-BC-07, TC-BC-08); 32 (TC-BC-07 to TC-BC-09); TC-BC-07 and TC-BC-08 in all configurations
MODE_CODE Mode codes 0 to 21 per profile (TC-BC-10, TC-BC-18), reserved mode codes and the wrong T/R bit refused and, in the open profile, sent (TC-BC-18); the rules of MIL Table I per mode code: T/R = '0' other than mode codes 17, 20 and 21, mode codes 20 and 21 with T/R = '1', the broadcast mode codes 0, 16, 18 and 19 (TC-BC-18)
RESULT_CODE Code 0 (every test case), 1 (TC-BC-09, TC-BC-11), 2 to 7 (TC-BC-12), 8 (TC-BC-15, TC-BC-22), 9 and 14 (TC-BC-21), 10 (TC-BC-03, TC-BC-17), 12 (TC-BC-17), 11 (TC-BC-09, TC-BC-18, TC-BC-19)
SLOT_KIND Untimed, timed, timed late, skipped by the condition, skipped on demand (TC-BC-14), on demand sent, in two consecutive slots and with a request whose message is not sent (TC-BC-15)
FRAME_MODE Without time synchronization with N = 1, 8 and 256 (TC-BC-04), with time synchronization with N = 2 and 8 (TC-BC-05)
TICK From the port and from the command, on time (TC-BC-05), early and missing (TC-BC-06), from the source not selected and without time synchronization: ignored (TC-BC-05); while the BC is inactive: no effect, and during the latch walk of 256 slots (TC-BC-06)
RESPONSE_TIME 8.0 us, the response time of the RT model, in every test case; 3 cycles before and after the time-out and no response (TC-BC-11); 21 response times in quarter cycles around the time-out (TC-BC-11); 64 response times in steps of one cycle (TC-BC-03)
BUS Every format on bus A and on bus B (TC-BC-07 to TC-BC-10); selection of bus A, bus B and the bus of Cfg_BcRtBus (TC-BC-07, TC-BC-08), of the frame synchronization message by bit 31 (TC-BC-01)

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: the 11 test cases of every configuration and TC-BC-21 1, 3, 8
AllowOpenProfile_g false, true false, true (c100_open: TC-BC-09, TC-BC-18) false, true

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

Each of the following faults, inserted one at a time into the RTL of the BC (the file restored after the run), fails the test case listed in c100; the RTL of the repository passes all of them. 26 of the faults ran on commit adfd986; the 7 marked * and the one of the last note ran on 51a46de, after the changes of section 2; the withdrawn read on f498f9e; the faults D1 to D7 of the double errors and their repair on 60643e7 (each failed at the check of the word it concerns). The faults C1 to C25 of the code coverage review ran on 53e9da7 (section 2): C1 to C22 each disable a condition of the RTL whose row the review found not reached, C23 to C25 put back the three defects that the new tests found. C21 and C24 ran again on 4964636, with the check of the memory port of TC-BC-06, together with the last two rows: C21 and C24 with the counters of the latch walk held at 0 (notes).

Block Fault Failing test case
Sequencer Time-out bounded to 13.5 us TC-BC-11
Sequencer Gap bounded to 3.5 us TC-BC-11
Sequencer Time-out decision 4 cycles late * TC-BC-11
Sequencer Word timer 20.5 us TC-BC-12
Sequencer Word count check 1.5 us after the last word TC-BC-12
Sequencer No idle time before a command TC-BC-12
Sequencer Early no-response without the edge of the line activity TC-BC-07
Sequencer Sync of the status word not checked TC-BC-12
Sequencer Address of the status word not checked TC-BC-12
Sequencer Sync of a data word not checked TC-BC-12
Sequencer Contiguity not checked TC-BC-12
Sequencer Status word alone accepted without message error or busy * TC-BC-12
Sequencer No busy event TC-BC-12
Sequencer Subsystem flag not an exception TC-BC-12
Sequencer Dynamic bus control acceptance ignored TC-BC-10
Sequencer Received data published in the old buffer TC-BC-08
Sequencer Message count not written TC-BC-08
Sequencer No forwarding of the results to a slot with the same descriptor TC-BC-23
Sequencer Stop without waiting for the results TC-BC-03
Sequencer No frame guard at the presentation * TC-BC-17
Sequencer Late timed start not flagged * TC-BC-14
Sequencer Late flag set while a timed slot waits past its start * TC-BC-17
Package Broadcast transmit command allowed * TC-BC-18
Package Worst case without the gap TC-BC-17
Scheduler Frame number not modulo N TC-BC-04
Scheduler No walk of the next frame after a skipped frame * TC-BC-17
Scheduler No tick missing event TC-BC-06
Scheduler No late event of a skipped frame TC-BC-17
Memory jobs Frame count of the execution not written TC-BC-08
Memory jobs Status table not written TC-BC-12
Top level Role copies not compared TC-BC-02
Top level Start with the RT enabled TC-BC-01
Top level Frame number one cycle after the frame start pulse TC-BC-04
Memory jobs A read withdrawn at a role error keeps its count of the reads in flight TC-BC-02, and o1553_core TC-CORE-17
Memory jobs D1: double error of the latch word ignored at the fetch TC-BC-21
Memory jobs D2: double error of the done count ignored at the fetch TC-BC-21
Memory jobs D3: double error of the result word ignored at the fetch TC-BC-21
Memory jobs D4: double error of the status table entry ignored TC-BC-21
Memory jobs D5: double error of data word 0 of a time message ignored TC-BC-21
Sequencer D6: message count written after a double error in its read (the error does not persist) TC-BC-21
Sequencer D7: double error of the message count kept from one fetch to the next (the repair has no effect) TC-BC-21
Package C1: mode code with T/R = '0' other than 17, 20 and 21 not refused TC-BC-18
Package C2: mode codes 20 and 21 with T/R = '1' not refused TC-BC-18
Package C3: broadcast mode codes 0, 16, 18 and 19 not refused TC-BC-18
Package C4: RT to RT transfers that MIL 4.3.3.6.3 does not define not refused TC-BC-18
Package C5: mode command with the RT to RT bit not refused TC-BC-18
Memory jobs C6: double error in slot word 1 ignored TC-BC-21
Memory jobs C7: the read of the status table entry clears a double error found before it in the fetch TC-BC-21
Memory jobs C8: the read of data word 0 of a time message clears a double error found before it in the fetch TC-BC-21
Sequencer C9: latch word bit 5 (double error at the latch walk) ignored TC-BC-21
Sequencer C10: message count taken over from the execution before with the same descriptor also when that execution did not write it TC-BC-15
Sequencer C11: done count not taken over from the execution before with the same descriptor TC-BC-15
Sequencer C12: done count written for an on-demand message that was not sent TC-BC-15
Memory jobs C13: data word 0 of a time message always read from buffer A TC-BC-19
Scheduler C14: a frame start held back by the sequencer not late TC-BC-17
Sequencer C15: no check of the mid-sync crossing of a status word against the time-out TC-BC-11
Sequencer C16: transmitter disabled during a message not detected TC-BC-22
Scheduler C17: tick taken while the BC is inactive TC-BC-06
Scheduler C18: missing tick detected while the BC is inactive TC-BC-06
Sequencer C19: stop not taken while a slot is fetched TC-BC-03
Sequencer C20: frame start not taken while a slot is fetched TC-BC-03
Memory jobs C21: slot and control word reads of a replaced latch walk not dropped TC-BC-06: the new walk reads the control word of a descriptor of the replaced walk
Scheduler C22: frame guard wraps instead of saturating at 2^30 - 1 TC-BC-17
Sequencer C23: on-demand skip decided with the done count of the fetch (defect of section 2) TC-BC-15
Memory jobs C24: the latch walk issues an access in the cycle of a new walk (defect of section 2) TC-BC-06: the range check of the count of latch words to write (see the notes)
Sequencer C25: drop flag of a fetch taken from the fetch state of the cycle before (defect of section 2) TC-BC-03
Memory jobs C21 with the counters of the latch walk held at 0 instead of going below it TC-BC-06: as C21
Memory jobs C24 with the counters of the latch walk held at 0 instead of going below it TC-BC-06: the new walk writes the latch word of a descriptor of the replaced walk

Notes on the faults:

  • Time-out decision: a status word is not accepted when its mid-sync crossing, taken from the word event, lies more than one cycle after Cfg_BcTimeout, and a timer ends the wait when no event has come by the same bound. The first version of this fault moved only the first check by three cycles; the timer still ended the wait, so the boundary moved by one cycle, inside the accuracy of about 1.5 cycles (specification section 3), and the test case passed. It is not a gap of the test case: the fault in the table shifts the time-out of both checks by 4 cycles, beyond the window of +/-3 cycles.
  • The frame guard, the late flag, the latch walk after a skipped frame, the status word alone and the broadcast transmit rule passed every test case in the first run; the tests of section 2 were added for them.
  • The late flag set while a timed slot waits is the behaviour removed in the review (section 2); its test case fails when it is put back.
  • Leaving Sync_s right after the command word of the frame synchronization message has no effect at the ports and is not in the table: the data word is already presented to the encoder at the acceptance of the command word, and Wait_s presents no command before the gap after that data word, so the bus carries the same words. Sync_s ends before its command word only when the scheduler withdraws the request (frame skipped).
  • Latch walk replaced by a tick (C21, C24): both faults let an access of the replaced walk into the new one, and the counters of the new walk then go below 0. VHDL stops the simulation at that point with a range check. C24 at the first tick time queues a latch write in the cycle of the new walk, and the range check comes before any access reaches the memory port. TC-BC-06 therefore checks every access of the BC in the cycle after the memory takes it: from the read of the frame table entry of frame 0 on, no read of a word of the descriptor or of a slot of the list of the replaced walk, and no write of a word of that descriptor. The two variants with the counters held at 0 cannot stop at a range check, and fail at this check of the memory port.

The recovery branches of the state machines (when others) cannot be reached through the ports and are not in the table.