o1553_rt: Verification Report¶
1. Test results¶
Run with GHDL 6.0.0 (mcode), VUnit 5.0.0.dev7 and UVVM 2026.03.20 on commit 0380f24, whose sources and testbenches
are those of release 0.1.0 (0358bc8): python run.py -p 2 --xunit-xml results.xml, 201 tests of the repository,
201 passed, 0 skipped; the tests of o1553_rt_tb below. The timing of section 3 was measured in a run of the RT
tests on the same commit. The checks of the testbench in section 7 ran on 0358bc8: 92 of 92 faults of the first
table and 21 of 21 faults of the code coverage review detected.
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_rt_tb |
65 (21 test cases in c100; 8 of them also in c16, c16_s4, c400, c100_l1 and c100_l8; TC-RT-11 and TC-RT-18 also in c100_l1 and c100_l8) |
65 |
2. Summary¶
All test cases pass; every one of the 88 requirements of the specification is covered by a test case
(compliance matrix). In every test the memory model checks each write of the RT against
the ownership rules and the publication order of D9. VSG reports no errors and no warnings. The RT synthesises with
ghdl --synth without latches in the configurations of section 5.
Findings of the verification and their resolution:
| Finding | Resolution |
|---|---|
| The word timer was reloaded before its decrement in the same cycle, so the reload was lost: every receive message with more than one data word ended as too short (TC-RT-03) | The timers count down first, a reload later in the cycle takes precedence |
| The response counter did not run while the lookup was in progress, so transmit and mode commands answered late by the lookup time (TC-RT-05) | The counter runs from the command event |
| The mode code indications came one cycle after the presentation cycle (registered twice) | RT-3 decodes them from the registered release of the sequencer (RT-TM-04) |
| A mode code 17, 20 or 21 with T/R = '1' was executed with the data word 0 | Executed only with T/R = '0'; otherwise a reserved mode code (RT-MC-14) |
| When a command that is not contiguous ended a short message, the status word of the new command carried the message error bit of the old one (TC-RT-21) | RT-2 applies the message error of the ended message before the reset by the new command |
| A lookup superseded by a command on the other bus could issue its read in the cycle of the new lookup, and its result could be taken for the new command | No read of a replaced lookup is issued, its result is dropped |
rtDecision = MemLatency_g + 7 did not include a wait cycle on each of the two lookup reads: at 16 MHz, where rtRespMin has no margin, transmit and mode commands answered 2.5 cycles late with wait cycles (TC-RT-05) |
rtDecision = MemLatency_g + 9; no other job issues a request in the cycle of a new lookup |
| A receive message superseded during its status word was already published | A receive message is published when its status word is complete (RT-BF-01, RT-SU-01) |
The skip mark of RT-DV-06 ended with the fall of Rx_Active, before the event of the last word of a corrupted sequence (TC-RT-21); Rx_Contig refers to the last valid word and early error events break an event-distance rule |
The mark ends after 1.0 us of idle line; an error found by a timer after such an idle line sets no mark (architecture section 5.2) |
Review of the RTL: the message error bit of an illegal command or a lookup double error reached the status word two cycles after the lookup result, too late at rtRespMin |
The sequencer sets it in the presented status word (TC-RT-05) |
| Review of the RTL: a double error in the receive status word read could send the data words into the published buffer | Nothing is written and nothing published (RT-FT-05, TC-RT-17) |
| Review of the RTL: a publication wrote the status word before reading the count, and a count read with a double error could leave the count unchanged across a publication | The count is read first; a double error cancels the publication (RT-FT-06, TC-RT-17) |
| Review of the RTL: a command in the cycle of a publication or a mode code release changed the subaddress or the bus they used | Both are registered with their strobes (TC-RT-11) |
Review of the RTL: Stat_TxInUse came several cycles after the read of the control word |
From the start of the lookup, with Stat_TxInUsePend (RT-BF-02, TC-RT-04) |
| Review of the RTL: an RT to RT transfer without a first data word was reported as word count too low | RT to RT time-out (TC-RT-09) |
| Four faults of the RTL passed every test (section 7): the RT to RT limit 58.0 us, the RT to RT time-out without status word, a mode code of a message superseded in its presentation cycle, a job request in the cycle of a new lookup | Test points 56.5 us and 57.5 us and a new record required (TC-RT-09); commands at the presentation cycle of a mode code (TC-RT-11); response time under load compared exactly with the same command without other jobs (TC-RT-05) |
| The code coverage review (QuestaSim, statements and branches) found reachable items that no test exercised, among them the results of a lookup and of a data job of a superseded message, the RT to RT time-out decided by the sum, mode code 8 illegal or with a double error in its table entry, mode codes 20 and 21 with T/R = '1', the broadcast health reset and a receive command without data words | A test for each (TC-RT-02, TC-RT-07, TC-RT-09, TC-RT-11, TC-RT-12, TC-RT-15 to TC-RT-18, TC-RT-21); the cycle sweeps of TC-RT-11 and TC-RT-18 run in all three memory latencies, and in each sweep of TC-RT-11 against the lookup, the transmit fetch and the data job the memory read log at the port shows a stale response |
A receive message whose data job read a double error in its receive status word registered that result in the cycle before the lookup of a superseding command reached the buffer access; the sequencer took the double error for the new receive message (message error, not published), MemLatency_g + 4 cycles after data word 0 in all three memory latencies (TC-RT-11 cycle sweep) |
The sequencer ignores the result of a data job in the cycle after a new lookup started, as that of a superseded lookup (architecture section 6.2). The double error read for the superseded message marks neither message and is still reported through Ecc_DedEvent: BIT bit 4 and the terminal flag of the next status word (TC-RT-11, TC-CORE-10) |
Record bit 6 (status word sent) was '1' for a message ended during a transmission on a shut-down bus: the codec reported the suppression only with Tx_Done |
Tx_Suppressed is a level (o1553_codec, CD-IF-03); bit 6 is sampled when the message ends (TC-RT-11) |
Cfg_LogErrors and Tx_Suppressed were read only inside a procedure of the sequencer, so QuestaSim left them out of the sensitivity of process (all) |
Both are parameters of the procedure |
| Five faults of the coverage review passed their new tests at first (section 7) | The checks were strengthened; one of them found the double error of a superseded data job above |
3. Measured timing¶
Measured at the ports in every check of the test cases, in clock cycles relative to the requirement:
| Quantity | Requirement | Measured |
|---|---|---|
| Response time: mid-sync crossing of the status word after the reference crossing of the last word | Cfg_RespTime (bounded) +/- 1 cycle (RT-TM-01) |
+0.50 to +1.00 cycles at 100 and 400 MHz, +0.04 to +0.98 cycles at 16 MHz (1692 responses) |
| Indications of mode codes 1, 3 and 17 after the reference crossing | Cfg_RespTime - 3H - 2 cycles +/- 1 (RT-TM-04) |
+0.50 to +1.00 cycles at 100 and 400 MHz, +0.06 to +0.74 cycles at 16 MHz |
| Indication of mode code 8 | first cycle after the end of the status word (RT-TM-04) | in that cycle |
Response time at rtRespMin with a wait cycle on every memory request, the lookup during the publication and the record of the message before |
the same response time as without other jobs (section 6.2 of the architecture) | 0 cycles difference at 11 offsets of the command, in every configuration |
Word count too low: Log_Push of the record after the event of the last word |
21.0 us (RT-DV-02) | 21.0 us + 12.5 cycles at 100 and 400 MHz, + 12.66 to 12.74 cycles at 16 MHz (the record written in between) |
RT to RT without status word: Log_Push of the record after the event of the receive command |
76 us (architecture section 5.3) | 76 us + 11.5 cycles |
The word event comes between 0.5 cycle before and one cycle after rxLatency (o1553_codec); the measured spread of
the response time is that of the event. At 100 MHz and 400 MHz the words of the bus model lie on the clock grid, at
16 MHz the sampling phase varies.
rtRespMin of the configurations: 68 cycles (4.25 us) in c16, 70 cycles (4.375 us) in c16_s4, 400 cycles
(4.0 us) in c100, c100_l1 and c100_l8, 1600 cycles (4.0 us) in c400.
Request pattern on the memory port, a measured property: while the memory model inserts no wait cycle, every request is accepted in its cycle, and the model records the requests of the RT in every test case of every configuration (65 runs, every message format, superseding commands, records, publications and the ECSS services):
| Quantity | Measured |
|---|---|
| Longest run of requests in consecutive cycles | 10, for example the two reads of a lookup followed by the 8 writes of an event record (test_broadcast, test_rt_to_rt, test_superseding, test_disable, test_short_message) |
| Most requests in any 64 consecutive cycles | 13 in c100, c100_l1 and c100_l8 (test_superseding: the cycle sweeps of a new command against the reads in flight of the message before); 11 in other test cases of these configurations (test_broadcast, test_rt_to_rt, test_disable, test_ecss_services, test_event_log); 10 in c16, c16_s4 and c400 |
The host interface takes the memory for one cycle per host access, so a request of the RT waits at most one cycle
whatever this pattern (o1553_host, HI-MEM-02); the figures describe the load of the RT, not a condition of the host
interface.
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 |
Receive and transmit (TC-RT-03, TC-RT-04), RT to RT receive (TC-RT-09, broadcast in TC-RT-08), mode without data word, transmit and receive mode codes (TC-RT-06), broadcast receive and broadcast mode codes (TC-RT-08) |
WORD_COUNT |
1, 2, 31 and 32 data words (TC-RT-03, TC-RT-04 in all configurations), 3 to 20 (TC-RT-05, TC-RT-09, TC-RT-10, TC-RT-12, TC-RT-14) |
SUBADDRESS |
Every subaddress 1 to 30 (TC-RT-03, TC-RT-04), mode commands on subaddress 0 and 31 (TC-RT-06, TC-RT-12) |
MODE_CODE |
Mode codes 0 to 21 with their T/R bit (TC-RT-06), reserved mode codes legal and illegal and the wrong T/R bit (TC-RT-06, TC-RT-12) |
MESSAGE_ERROR |
Error codes 1 to 5 (TC-RT-10), 6 and 7 (TC-RT-09) |
COMMAND_AT_DATA_POSITION |
Contiguous, not contiguous at 2.6 us and 4.0 us on the same bus, on the other bus (TC-RT-21) |
SUPERSEDE_STATE |
Receiving, waiting for the response time, status word, data words, RT to RT wait, presentation cycle; the reads in flight of the lookup, the transmit fetch, the data job and the publication of the old message (TC-RT-11) |
RESPONSE_TIME |
Below the minimum, rtRespMin, 6.0 us, 12.0 us, above the maximum (TC-RT-05 in all configurations) |
BUS |
Every format on both buses (the test cases alternate the bus) |
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 8 test cases of every configuration, TC-RT-11 and TC-RT-18 (cycle sweeps against the reads in flight) | 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¶
Each of the following faults, inserted one at a time into the RTL of the RT (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.
| Block | Fault | Failing test case |
|---|---|---|
| Sequencer | Word time-out 20.5 us | TC-RT-10 |
| Sequencer | RT to RT limit 58.0 us | TC-RT-09 |
| Sequencer | RT to RT time-out without status word 150 us | TC-RT-09 |
| Sequencer | Response 2 cycles early | TC-RT-05 |
| Sequencer | Response time not bounded below | TC-RT-05 |
| Sequencer | Response time not bounded above | TC-RT-05 |
| Sequencer | Word count too high not detected | TC-RT-10 |
| Sequencer | No superseding: new commands only from Idle_s | TC-RT-11 |
| Sequencer | Bus B first when both buses report a command | TC-RT-11 |
| Sequencer | Superseded message recorded without error | TC-RT-11 |
| Sequencer | Message error does not set the message error bit | TC-RT-10 |
| Sequencer | Skip mark never set | TC-RT-21 |
| Sequencer | Skip mark ends with the fall of Rx_Active | TC-RT-21 |
| Sequencer | Skip mark also after an idle line (timer-found error) | TC-RT-21 |
| Sequencer | First data word accepted without contiguity | TC-RT-10 |
| Sequencer | Invalid words taken as valid | TC-RT-10 |
| Sequencer | Data word with command sync without message error bit | TC-RT-10 |
| Sequencer | RT to RT status word of any address | TC-RT-09 |
| Sequencer | RT to RT transmit command to the RT itself taken as RT to RT | TC-RT-09 |
| Sequencer | Illegal mode codes executed | TC-RT-12 |
| Sequencer | Mode codes 17, 20, 21 executed with T/R = '1' | TC-RT-12 |
| Sequencer | No silent reset after mode code 8 | TC-RT-07 |
| Sequencer | Busy ignored for transmit commands | TC-RT-13 |
| Sequencer | Broadcast commands answered | TC-RT-08 |
| Sequencer | Broadcast command received bit not set | TC-RT-08 |
| Sequencer | No fail-safe release | TC-RT-20 |
| Sequencer | Fail-safe release of the other bus | TC-RT-20 |
| Sequencer | Own words taken as received words | TC-RT-04 |
| Sequencer | Mode code 2 resets the status word | TC-RT-06 |
| Sequencer | Mode code 18 updates the last command word | TC-RT-06 |
| Sequencer | RT disabled during a message not ending it | TC-RT-18 |
| Sequencer | Commands accepted before the memory is initialised | TC-RT-01 |
| Sequencer | Broadcast enable ignored | TC-RT-08 |
| Sequencer | Transmit status word with buffer 0 | TC-RT-04 |
| Sequencer | Transmission result not checked | TC-RT-13 |
| Sequencer | Errors without interrupt flag | TC-RT-16 |
| Sequencer | Cfg_LogErrors ignored | TC-RT-16 |
| Sequencer | Record words of a receive message from the transmission count | TC-RT-16 |
| Sequencer | Time tag halves swapped in the record | TC-RT-16 |
| Sequencer | Health word cleared with the health service disabled | TC-RT-15 |
| Sequencer | message error bit not set in the presented status word | TC-RT-05 (c16, c16_s4) |
| Sequencer | double error of the receive status word read ignored by the sequencer | TC-RT-17 |
| Sequencer | Failed publication without message error bit | TC-RT-17 |
| Sequencer | Bus of a released mode code from the current message | TC-RT-11 |
| Sequencer | Subaddress of a publication from the current message | TC-RT-11 |
| Sequencer | Mode code of a message superseded in its presentation cycle released | TC-RT-11 |
| Sequencer | Transmit buffer in use only from the lookup result | TC-RT-04 |
| Sequencer | RT to RT without first data word reported as word count too low | TC-RT-09 |
| Sequencer | Suppressed status word recorded as sent | TC-RT-06 |
| Status registers | Terminal flag inhibit ignored | TC-RT-06 |
| Status registers | BIT bits not cleared by the host | TC-RT-13 |
| Status registers | Fail-safe BIT bit from the level | TC-RT-13 |
| Status registers | Service request not taken | TC-RT-13 |
| Status registers | Subsystem flag not taken | TC-RT-13 |
| Status registers | Last command word not updated | TC-RT-06 |
| Status registers | Reset remote terminal keeps the terminal flag inhibit | TC-RT-07 |
| Status registers | Message error bit not reset by a valid command | TC-RT-10 |
| Mode code handler | Shutdown of the bus of the command | TC-RT-06 |
| Mode code handler | Selected shutdown of the bus of the command | TC-RT-06 |
| Mode code handler | Selected shutdown ignores the upper data bits | TC-RT-06 |
| Mode code handler | Reset remote terminal keeps the shutdowns | TC-RT-07 |
| Mode code handler | Synchronize indication for mode code 3 | TC-RT-06 |
| Mode code handler | Frame number not stored | TC-RT-06 |
| Mode code handler | Synchronisation data of the mode code before | TC-RT-06 |
| Buffer access | Receive data into the published buffer | TC-RT-03 |
| Buffer access | Table bit of word count 0 | TC-RT-12 |
| Buffer access | Broadcast commands checked against the own table | TC-RT-12 |
| Buffer access | Table used with illegal command detection disabled | TC-RT-12 |
| Buffer access | Double error in the control word ignored | TC-RT-17 |
| Buffer access | Selected transmit buffer ignored | TC-RT-04 |
| Buffer access | Double error in a transmit data word ignored | TC-RT-17 |
| Buffer access | Message count not incremented | TC-RT-03 |
| Buffer access | Broadcast flag not published | TC-RT-08 |
| Buffer access | Health word not substituted | TC-RT-15 |
| Buffer access | Frame number not substituted | TC-RT-15 |
| Buffer access | Time words beyond the word count not 0x0000 | TC-RT-15 |
| Buffer access | No data wrap-around | TC-RT-14 |
| Buffer access | Records at index 0 | TC-RT-16 |
| Buffer access | Log_Push before the last record word is accepted | TC-RT-16 |
| Buffer access | Job requests in the cycle of a new lookup | TC-RT-05 (c16, c16_s4) |
| Buffer access | receive data written after a double error of the receive status word | TC-RT-17 |
| Buffer access | Publication with a double error in the count read | TC-RT-17 |
| Buffer access | Publication writes the status word before reading the count | TC-RT-03 |
| Buffer access | Record kept only for a failed publication always written | TC-RT-16 |
| Address input | Even parity accepted | TC-RT-02 |
| Address input | Address 31 accepted | TC-RT-02 |
| Address input | Cfg_AddrCheck ignored | TC-RT-02 |
| ECSS services | Frame number kept by the reset remote terminal | TC-RT-07 |
| ECSS services | Health reset clears every bit | TC-RT-15 |
| Package | rtDecision without the wait cycles | TC-RT-05 (c16, c16_s4) |
| Top level | Double error events of the EDAC monitor ignored | TC-RT-17 |
| Top level | Frame number from the upper byte | TC-RT-06 |
Faults of the code coverage review; a fault of TC-RT-11 counts as detected only when the test fails in all three memory latencies:
| Block | Fault | Failing test case |
|---|---|---|
| Buffer access | Lookup reads of a superseded message not marked stale | TC-RT-11 (c100, c100_l1, c100_l8) |
| Buffer access | Data reads of a superseded message not marked stale | TC-RT-11 (c100, c100_l1, c100_l8) |
| Buffer access | Transmit word read after a double error of the receive status word not marked | TC-RT-17 |
| Sequencer | Lookup result in the cycle after a new lookup started taken | TC-RT-11 (c100, c100_l1, c100_l8) |
| Sequencer | Double error of a data job in the cycle after a new lookup started taken for the new message | TC-RT-11 (c100, c100_l1, c100_l8) |
| Sequencer | Record bit 6 with the suppression only at Tx_Done |
TC-RT-11 |
| Sequencer | Failed publication sets the message error bit after a new command | TC-RT-11 |
| Sequencer | Broadcast health reset without the health service | TC-RT-15 |
| Sequencer | Mode code executed with a double error in its table entry | TC-RT-17 |
| Sequencer | Mode codes 20 and 21 with T/R = '1' executed | TC-RT-12 |
| Sequencer | Broadcast mode code 8 resets with a double error in its table entry | TC-RT-07 |
| Sequencer | Addressed mode code 8 resets when illegal | TC-RT-07 |
| Sequencer | Record of a failed publication also with Cfg_LogErrors = '0' |
TC-RT-16 |
| Sequencer | RT to RT time-out by the sum not checked | TC-RT-09 |
| Sequencer | Data word and invalid word accepted in place of the status word of the other terminal | TC-RT-09 |
| Sequencer | RT to RT transmit command with subaddress 0 accepted | TC-RT-09 |
| Sequencer | Command after a receive command without data words skipped | TC-RT-21 |
| Sequencer | No word timer after a receive command without data words | TC-RT-21 |
| Sequencer | Word consumed by a message on bus B taken as a new command | TC-RT-21 |
| Address input | Address validated during the settling time | TC-RT-02 |
| Top level | Double error events of the EDAC monitor not in BIT bit 4 | TC-RT-11 (c100, c100_l1, c100_l8), TC-CORE-10 |
Five of these faults (data reads not marked stale, broadcast mode code 8 with a double error, subaddress 0, the command after a receive command without data words, the word timer) passed the first version of their tests; the checks were strengthened until each fails.
The recovery branches of the state machines (when others) cannot be reached through the ports and are not in the
table.