test_reset_state (TC-RT-01) |
After the reset: no response before Mem_InitDone and before the address validation; state outputs at their reset values; the status word of mode code 2 is the address with all bits '0' (all) |
RT-FT-03, RT-ST-09, RT-CV-01 |
test_address (TC-RT-02) |
Addresses 0, 1, 15, 21 and 30 with correct parity answered; a parity error and address 31 give no response, Stat_AddrErr and BIT bit 6; Cfg_AddrCheck takes a changed strap value; the address used in the status word is the validated one; Cfg_AddrCheck in each cycle of the settling time after a reset: one validation at its end, no failed check before it |
RT-AD-01, RT-AD-02, RT-AD-03, RT-IF-08 |
test_receive (TC-RT-03) |
Receive commands to subaddresses 1 to 30 with 1, 2, 31 and 32 data words and random data on both buses: status word at the response time; the data in the buffer that was not published, then published with word count and broadcast flag '0', message count incremented; successive messages alternate the buffers (all) |
RT-MF-01, RT-BF-01, RT-CV-02, RT-TM-02, RT-IF-01, RT-IF-04 |
test_transmit (TC-RT-04) |
Transmit commands with 1, 2, 31 and 32 data words from buffer A and B: status word and data words contiguous with the content of the selected buffer; Stat_TxInUse with the subaddress from the start of the lookup, before the control word is read, the buffer pending until that read and known before the first data word is read, until the read of the last word; transmit status word and message count; with the echo of the bus model on, the own status word (command sync and own address) is not taken as a command (all) |
RT-MF-02, RT-MF-04, RT-BF-02, RT-TM-02, RT-IF-02, RT-SU-05 |
test_response_time (TC-RT-05) |
Receive, transmit and mode commands with Cfg_RespTime = rtRespMin, 6.0 us and 12.0 us, below rtRespMin and above 12.0 us: response time at the ports equal to the effective value +/- 1 cycle; at rtRespMin with a memory wait cycle on every request, also for a command whose event comes from 2 cycles before to 8 cycles after the end of a status word, while the publication and the record of that message are written: response time equal to that of the same command without other jobs at the same phase of the clock; the message error bit of an illegal command and of a double error in the control word at rtRespMin with the wait cycles (all) |
RT-TM-01, RT-IL-03, RT-FT-01 |
test_mode_codes (TC-RT-06) |
Every mode code 0 to 21 with its T/R bit, on subaddress 31 and on subaddress 0: status word; vector, last command and BIT data words; DBCA '0'; shutdown and override of the other bus with Sd_Set / Sd_Clr (never of the bus of the command) and the effect at the codec (no response on the shut-down bus, its record with the status word not sent); terminal flag inhibit and override; selected shutdown with data words 0, 1, 2 and the bus of the command; indications with their cycle; mode codes 2 and 18 do not change the status word, mode code 18 not the last command word (all) |
RT-MF-05, RT-MF-06, RT-MF-07, RT-MC-01 to RT-MC-13, RT-MC-15, RT-CV-02, RT-IF-03, RT-IF-07, RT-TM-04 |
test_mode_reset (TC-RT-07) |
Mode code 8: status word first, then Rt_ResetReq; a command during the reset gets no response; afterwards status bits, last command word, terminal flag inhibit, shutdowns and frame number at their reset values, the BIT word and the address kept; broadcast mode code 8; mode code 8 illegal in the table and with a double error in its table entry, addressed and broadcast: no reset, error codes 8 and 10 |
RT-MC-08, RT-TM-04, RT-IL-01, RT-FT-01 |
test_broadcast (TC-RT-08) |
Broadcast receive to a subaddress: no status word, data published with the broadcast flag, BCR in the next mode code 2; broadcast mode codes 1, 3 to 8, 17, 20 and 21 executed without status word; Cfg_BcstEn = '0': broadcast commands ignored; broadcast RT to RT as receiver, and with the transmit command addressed to the RT (it transmits and does not receive) |
RT-MF-08, RT-MF-09, RT-MF-10, RT-ST-04 |
test_rt_to_rt (TC-RT-09) |
Receiving terminal: the other terminal answers after 4.0, 8.0 and 12.0 us; first data word at 56.5 us (valid), 57.5 us (time-out decided at the event of the word) and 58.0 us (time-out by the timer) after the receive command; no status word of the other terminal (time-out 76 us after the receive command); a status word of the other terminal without data words (time-out, code 6); a status word with another address; a transmit command with T/R = '0', address 31, subaddress 31 or subaddress 0 (format error); a data word or an invalid word in place of the status word of the other terminal (format error), and a valid command to the RT there (superseding); a transmit command to the RT itself (superseding); data word faults as in TC-RT-10 |
RT-MF-03, RT-MF-04, RT-DV-04, RT-DV-05, RT-SU-02 |
test_data_errors (TC-RT-10) |
Receive messages with a data word with each error kind of the codec, with the command sync, not contiguous (data word 0 and data word 1, 0.6 us gap), one data word too few (detected 21.0 us after the event of the last word) and one too many: no status word, nothing published, message error bit in the next mode code 2, error code in the record; the next command is answered normally (all) |
RT-DV-01, RT-DV-02, RT-DV-03, RT-DV-06, RT-ST-03 |
test_superseding (TC-RT-11) |
A valid command on the other bus while the RT receives data words, waits for the response time, sends its status word, sends data words and waits in an RT to RT transfer: transmission ended at once, the new command answered on its bus at its response time, the old message not published, no message error, record "superseded"; a command on the same bus after a message; a command on the other bus with its event from 2 cycles before to 1 cycle after the end of the status word of a receive message (published to its own subaddress or superseded) and around the presentation cycle of a broadcast mode code 4 (the transmitter of the other bus than that of the broadcast command shut down, never that of its bus); a command on the other bus with its event in the cycle before, in and after the presentation cycle of a mode code 1 (superseded and not executed up to the presentation cycle, executed after it); valid commands on both buses in the same cycle: bus A answered; record bit 6 of a transmission on a shut-down bus: '0' at its end and when a command on the other bus supersedes it, '1' when the bus is driven. Cycle sweeps (latency): a valid command on bus B with its event from 1 to MemLatency_g + 11 cycles after a command on bus A, around the fetch of transmit data word 2 (when the encoder takes data word 0), from 0 to MemLatency_g + 10 cycles after data word 0 of a receive message (the last two also with a double error in the read in flight and a receive command on bus B: no message error, published; BIT bit 4 and the terminal flag of the next status word exactly when the double error was read), and from 2 to MemLatency_g + 22 cycles after the end of the status word of a receive message (with and without a double error in its message count): the new command answered from its own buffer, the old message not published, nothing written to another subaddress; the memory read log shows a response of the old message after the start of the new lookup in each of these sweeps; with the count error mode code 2 reports the message error only when the failed publication came first, both orders seen |
RT-SU-01, RT-SU-02, RT-SU-03, RT-SU-04, RT-TM-03, RT-EV-02, RT-FT-01 |
test_illegal (TC-RT-12) |
Table: illegal word counts of a receive and a transmit subaddress, own and broadcast; illegal mode codes including reserved ones and the wrong T/R bit; illegal receive: data words received, then status word with message error, nothing stored; illegal transmit: status word only; illegal broadcast: no status word, message error and BCR set; the fixed rules of RT-IL-02 with Cfg_IllegalEn '1' and '0'; with Cfg_IllegalEn = '0' every other command legal; reserved mode codes made legal; mode codes 20 and 21 with T/R = '1' legal: the data word 0x0000, no shutdown or release (all) |
RT-IL-01, RT-IL-02, RT-IL-03, RT-MC-14, RT-CV-04 |
test_status_bits (TC-RT-13) |
Service request, busy and subsystem flag from the configuration, reset after valid commands and set again while their condition lasts; terminal flag from each BIT bit 0 to 6 and from Cfg_TermFlag, inhibited by mode code 6, released by mode code 7; busy: transmit command answered with the status word only, receive data not published, mode commands executed; BIT bits set by Mon_Error (echo with a wrong bit), the start of Stat_FailSafe (cleared while the state lasts), a double error, a transmission that did not complete and the address check, cleared by Cfg_BitClr, not changed by mode codes 2 and 18 |
RT-ST-01 to RT-ST-08, RT-MC-04, RT-MC-11, RT-MC-12, RT-IF-05 |
test_wrap_around (TC-RT-14) |
Subaddress 30: receive then transmit with the same word count (1, 17, 32) returns the received words; with Cfg_WrapEn = '0' the transmit buffer of subaddress 30 is sent |
RT-BF-03 |
test_ecss_services (TC-RT-15) |
Time messages of 3, 4 and 5 words to subaddress 29 (also broadcast): transmit words 0 to 4 equal to the received words, 0x0000 beyond, words 5 to 9 from the transmit buffer; mode codes 1 and 17 delivered with record and indication; frame number in transmit word 1 of subaddress 1; health word: set by Cfg_HealthSet, sent as word 0 of subaddress 1, bits cleared only by a receive message to subaddress 1 with the bits in its word 0, also by broadcast, not with the health service disabled; reset services word in the published buffer and the record; with the services disabled the transmit buffers are sent |
RT-SV-01 to RT-SV-06 |
test_event_log (TC-RT-16) |
Records for enabled subaddresses and mode codes only, and for errors with Cfg_LogErrors = '1'; every field; written at Log_WrIdx, Log_Push after the last word, interrupt flag by control word and error; a superseding command during a record write is answered at its response time; every record word written before its Log_Push, also with a wait cycle on every write; a failed publication of a subaddress without records with Cfg_LogErrors = '0': no record |
RT-EV-01, RT-EV-02, RT-EV-03, RT-IF-06, RT-IF-09 |
test_memory_errors (TC-RT-17) |
Double error in the control word and in the table entry of a command: status word only, error code 10, BIT bit 4; double error in transmit data word k: k words on the bus, BIT bit 4; single errors: corrected data used; Ecc_DedEvent sets BIT bit 4; double error in the receive status word read at data word 0: status word with the message error bit, nothing written to either buffer, not published, error code 10, BIT bit 4; double error in the message count read: no publication, the published buffer, its status word and its count those of the message before, error code 14, BIT bit 4, message error bit in the next mode code 2, published again after the host rewrites the count; a double error in the table entry of mode code 4: not executed, error code 10; transmit of subaddresses 29 and 30 with their services after a double error in the receive status word: the status word only, error code 10, BIT bit 4 |
RT-FT-01, RT-FT-02, RT-FT-05, RT-FT-06 |
test_disable (TC-RT-18) |
Cfg_RtEn = '0': no response; disabled during a receive message and during a transmission: message ended, transmission aborted, nothing published; the address check failing during a message; Cfg_RtEn = '0' in each cycle from 2 to MemLatency_g + 12 after the event of a transmit command (its lookup) and after data word 0 of a receive message with a double error in its receive status word (the data job): no response, error code 13, nothing written or published (latency) |
RT-FT-04, RT-CV-01 |
test_buffer_ownership (TC-RT-19) |
The host switches the selected transmit buffer during a transmission: the transmission keeps its buffer, the next one takes the new selection; the host reads a receive buffer with the sequence lock while seven messages of 32 words arrive back to back, every other read slowed down to 25 us per word: every read is consistent or retried, both occur; no forbidden write in any test (memory model) |
RT-BF-01, RT-BF-02, RT-BF-04 |
test_fail_safe_release (TC-RT-20) |
A valid command, also an illegal one, on bus A and on bus B: Fs_Clr of that bus only; words that are no valid command: no Fs_Clr |
RT-CV-03 |
test_short_message (TC-RT-21) |
A receive command without data words, followed by a valid command after a gap and by an idle bus: no status word, error code 4, the command after the gap answered with the message error; with a broadcast mode code 1 as the command after the gap and a mode code 2 0.6 us after it (the line never idle for 1.0 us), mode code 2 is answered. A receive command for 4 data words of which the bus controller sends 2, then a new valid command on the same bus with its mid-sync crossing 4.0 us and 2.6 us after the reference crossing of the last data word (not contiguous; at 2.6 us it is reported before the 21.0 us word timer ends): the short message has no status word, is not published and has error code 4; the new command is answered at its response time, and as mode code 2 it reports the message error. The same new command on the other bus during the short message supersedes it: mode code 2 reports no message error. A valid command to the RT, contiguous at the position of data word 3: message error with error code 2, no response to the message or to that word, the data words contiguous after it ignored, the next command after a gap answered, on both buses. A Manchester error in bit 7 of data word 1 (reported before the end of the word) and a valid command contiguous two words later: not executed, the next command after a gap answered. In an RT to RT transfer a valid command that is not contiguous to the status word of the other terminal ends the message (error code 4) and is answered (all) |
RT-DV-01, RT-DV-02, RT-DV-06, RT-SU-01, RT-SU-02, RT-TM-03 |
lint/synth_check.py |
Elaboration and synthesis of o1553_rt at 16, 100 and 400 MHz, with SyncStages_g 2 to 4 and MemLatency_g 1 and 8, without latches; a clock frequency the codec does not accept stops with its message |
RT-CF-01 |