test_reset_state (TC-BC-01) |
After the reset: inactive, no word presented, no memory request, no record, state outputs at their reset values; the start command refused with the RT enabled, with an RT message in progress and before Mem_InitDone (event "start refused", still inactive); accepted otherwise; configuration inputs marked "start" changed while active have no effect until the next start, Cfg_BcRtBus and Cfg_BcFrameRsvd act at once (all) |
BC-RO-01, BC-RO-02, BC-IF-04, BC-IF-05, BC-IF-11, BC-FR-09, BC-EV-04, BC-FT-05 |
test_role_protection (TC-BC-02) |
ErrInj_RoleFlip while inactive: stays inactive, event "role error", copies complementary again in the next cycle; while active between messages, while transmitting (transmission aborted within the word, no further command), while waiting for a response and during the latch walk: inactive at once, no word after the abort, no further memory request, all state machines idle, event; a new start works afterwards; four injections in consecutive cycles of the latch walk while the memory makes every request wait one cycle (a read request not yet taken at the injection), then a start that runs its frame with the messages of its first two slots |
BC-RO-04, BC-IF-10, BC-RO-02, BC-FT-05 |
test_stop (TC-BC-03) |
Stop command between frames, while waiting for a timed start, while transmitting (the message completes) and while waiting for a response (it completes or times out): state "stopping" while the message completes, inactive after the message, result written, event "stopped"; a restart begins a new frame cycle (frame number 0 after a stop before frame 1); a stop swept cycle by cycle over the fetches of a list of refused slots (memory without wait cycles): inactive within 2 us, the slots with a result the first ones of the list, each refused, not fewer for a later stop; a frame start (frame 0, Cfg_BcTsDelay after a tick) during the decisions of 31 slots that the tick leaves not sent, with the response time before them swept cycle by cycle: frame 0 at most 3 cycles late, the event "late" exactly when it is late, the slots with a result the first ones of the list, the rest not executed, the list of frame 0 sent |
BC-RO-03, BC-EV-03, BC-FR-08, BC-TK-02 |
test_frames_no_sync (TC-BC-04) |
N = 1, 8 and 256 with D = 3000 us and 2000 us: mid-sync to mid-sync of consecutive frame synchronization messages exactly D (to the cycle), numbers 0 to N-1 modulo N, command word 0xFBF1, data word with Cfg_BcFrameRsvd and the number; Bc_FrameSync txLatency + 3H cycles before the frame start, Bc_FrameNum valid with it; D below 2000 us taken as 2000, N = 0 as 1, N above 256 as 256 (in c16: 257 frames, frame 256 with number 0 and the list of index 0) (all); the bus of bit 31 of Cfg_BcRtBus switched while running in TC-BC-01 |
BC-FR-01, BC-FR-04, BC-FR-06, BC-FR-07, BC-FR-08, BC-FR-09, BC-IF-09, BC-EV-03 |
test_frames_time_sync (TC-BC-05) |
Ticks from Bc_TimeTick (pulse widths of 2 cycles and of 1 ms) and from Cmd_BcTick: time synchronization message (command word 0xFFE1, no data word) presented Cfg_BcTsDelay after the tick to the cycle for 1000 and 5000 us, for 0 us after the latch walk of frame 0 with the event "late"; the tick of the source not selected ignored; frames 1 to N-1 every D, the last frame ending at the next tick, numbers 0, 1, ..., N-1; N = 2 and 8; frames from number 1 before the first tick; with a message in progress at the tick and Cfg_BcTsDelay = 0: the time synchronization message after it and the gap, event "late"; no message of the old cycle after the tick; ticks ignored without time synchronization (all) |
BC-FR-02, BC-FR-03, BC-FR-05, BC-TK-01, BC-TK-02, BC-TK-03, BC-IF-08 |
test_tick_faults (TC-BC-06) |
Missing tick: the last frame ends Cfg_BcTickTimeout after the previous tick (and not before D after its start when the time-out is shorter), frames continue with numbers N, N+1 and the lists of index modulo N, one event per missing tick, the next tick starts frame 0 again; early tick in frame 2 of 8: cycle cut, event, frame 0 after the delay; a second tick before the time synchronization message of the first: ignored, event; after a stop in frame 1 of 8: a tick raises no event, the tick time-out of the last tick no missing tick event, the next start runs frames from number 1 without a missing tick event; a tick at four times during the latch walk of a list of 256 slots: the walk of frame 0 latches its own descriptor (buffer A, request count 0), frame 0 on time, its message sends buffer A; from the read of the frame table entry of frame 0 on, the BC reads no word of the descriptor and no slot of the list of the replaced walk and writes no word of that descriptor, checked in the cycle after the memory takes each access |
BC-TK-02, BC-TK-04, BC-TK-05, BC-LA-01, BC-RO-02, BC-FT-03 |
test_bc_to_rt (TC-BC-07) |
Receive commands with 1, 2, 31 and 32 data words to subaddresses 1, 15 and 30 on bus A, bus B and the bus of Cfg_BcRtBus: the RT model receives the data of the latched buffer, contiguous; status word in word 9, result code 0, bus, buffer, word count, message count, frame count; broadcast receive messages to subaddress 29: no status expected, the next message after the gap; all of them also on bus B: words only on bus B, result bit 4, the same results (all) |
BC-MF-01, BC-MF-07, BC-MF-08, BC-DX-01, BC-DX-03, BC-IF-02, BC-PR-03 |
test_rt_to_bc (TC-BC-08) |
Transmit commands with 1, 2, 31 and 32 data words: data in the buffer that was not published, then published (result bit 6), message count and frame count in this order, successive messages alternate the buffers; transmit mode codes 16 (with the condition), 18 and 19: the data word in buffer word 0; the host reads with the sequence lock while the same descriptor is executed in every frame; the 32-word transmit and mode code 19 also on bus B, selected by Cfg_BcRtBus (all) |
BC-MF-02, BC-MF-05, BC-DX-02, BC-RV-06, BC-IF-01 |
test_rt_to_rt (TC-BC-09) |
MIL profile: RT to RT transfers with 1 and 32 data words: both command words contiguous, both status words in words 9 and 10, the observed data published; the 32-word transfer also on bus B; broadcast RT to RT: refused in the MIL profile (code 11), in the open profile (c100_open) only the transmitting RT's status; the receiving RT silent: no response (code 1) with word 9 set; the transmitting RT silent: no response, word 10 = 0 |
BC-MF-03, BC-MF-07 |
test_mode_commands (TC-BC-10) |
MIL profile: mode codes 0 to 8 with T/R = '1', 16, 18 and 19 (data word received), 17, 20 and 21 (word 2 sent), each addressed and, where Table I allows it, in broadcast; on subaddress 0 and 31; mode code 0 answered with the dynamic bus control acceptance bit: the BC ends after the message, event "stopped", result written; answered without it: the BC continues; mode codes 2 and 16 and the broadcast mode codes 1 and 17 also on bus B |
BC-MF-04, BC-MF-05, BC-MF-06, BC-MF-10, BC-RV-07 |
test_timing (TC-BC-11) |
Gap: next command mid-sync exactly Cfg_BcGap after the reference crossing of a last word sent by the BC, and 0 to 2 cycles longer after a received one (section 3 of the specification), for 4.0, 6.0 and 20.0 us; Cfg_BcGap below 4.0 us taken as 4.0 us. Time-out at 14.0, 18.0, 22.0 and 30.0 us: a status word whose mid-sync crossing is 3 cycles before the time-out accepted, 3 cycles after it no response (outside the accuracy of 1.5 cycles stated in section 3 of the specification); no activity at all: no response decided Cfg_BcTimeout + SyncStages_g + F + 2 cycles after the reference crossing, the next command presented 4 cycles later; a late status word: no response, the next command after the idle line and the gap; Cfg_BcTimeout below 14.0 us taken as 14.0 us; 21 RTs in one frame answering 2 cycles before to 3 cycles after the time-out in quarter cycles: a response more than 1.5 cycles before it, no response more than 1.5 cycles after it, one change between (all) |
BC-TM-01, BC-TM-02, BC-TM-03, BC-FT-03 |
test_response_errors (TC-BC-12) |
Status word with each word error of the codec, with the data sync, of another address, an own echoed word (echo of the transceiver, two bits inverted) never taken as the status; data words with each word error, the command sync, not contiguous, one too few (timer, 21.0 us), one too many (line check, 2.0 us) and the status word alone without message error or busy (timer); a status word only with the message error bit and with busy: no word count error, nothing published, event "busy"; each exception bit alone: exception flag, data published when complete; the status table written only for valid status words of the commanded RT; after an error the next command waits for the idle line (all) |
BC-RV-01, BC-RV-02, BC-RV-03, BC-RV-04, BC-RV-05, BC-RV-06, BC-TM-05, BC-PR-05, BC-EV-03 |
test_no_retry (TC-BC-13) |
A message without response, with a word count error and with an invalid status word: not repeated in the frame; executed once again in the next frame that has the slot |
BC-MF-09 |
test_slots (TC-BC-14) |
Timed slots at 100 us, 500 us and the latest start the frame guard allows: mid-sync crossing of the command exactly the start time after the frame start; a timed slot reached late (the message before it overruns its start): started after the gap, result bit 13, event "late"; skipped slots (condition false, on demand without request) before a timed slot: its start unchanged; untimed slots back to back at the gap; a frame whose table entry is not valid: only the synchronization message; no message after the last slot; a list without a last flag: 256 slots, event "list end missing" (all) |
BC-SL-01, BC-SL-02, BC-SL-05, BC-SL-07, BC-PR-01, BC-PR-02, BC-FT-03 |
test_conditions (TC-BC-15) |
Service request condition: mode code 16 after a status word with the service request bit in the slot before (same RT, same frame) and from the status table of an earlier frame: sent; without the bit: skipped, descriptor words unchanged. On demand: a request count incremented during frame S: sent once in frame S+1, not in S, done count updated, not sent again until the next request; two requests in one frame: one message; a request whose message is not sent (transmitter of the bus not enabled, code 8): done count unchanged, sent in the next frame; the same descriptor in two consecutive slots: RT to BC with the first execution without a response, the second publishes the other buffer with the message count incremented once; on demand with one request: one message, the second slot skipped |
BC-SL-03, BC-SL-04, BC-SL-05, BC-DX-02 |
test_latch (TC-BC-16) |
The host writes the free buffer and switches the selection of three descriptors of one frame during frame S, before their slots: frame S sends the old data of all three, frame S+1 the new data of all three; a switch during the latch window of frame S: from frame S+2; 256 slots in the next frame's list at Cfg_BcLatchTime = 200 us: latch complete before the frame start; at 20 us: the frame starts late, event "late" (in the configurations below 38.4 MHz, where three requests per slot take longer than 20 us), the next frame on its nominal time (all) |
BC-LA-01, BC-LA-02, BC-LA-03, BC-DX-04, BC-FR-08 |
test_frame_guard (TC-BC-17) |
Messages whose worst-case end lies 1 us before and 1 us after the start of the latch window, for each format the profiles allow (the broadcast BC to RT format as the time message of the ECSS profile; broadcast RT to RT is refused by both, TC-BC-09) and, for mode code 2, with Cfg_BcTimeout and Cfg_BcGap at their bounds and at 30 us: the first sent, the second not sent (code 10, event), the frame synchronization message of the next frame on time; an untimed slot after a timed slot that was not sent: not sent (code 10); the bus model keeps the line of the bus active: the timed message waits and is not sent at its latest start (code 12, result bit 14, not bit 13); the line active until the latch window at a frame start: frame without messages, event "late", the next frame on time, with its number and its list; the line active over a nominal frame start and idle before its latch window: the frame starts after it with its list and the event "late", the next frame on its nominal time; the last frame of a synchronized cycle with Cfg_BcTickTimeout such that the cycles to its latch window exceed 2^30 (from 66 MHz) and less 2^30 would fall below the worst case of a timed slot while it waits: the slot sent; Cfg_BcTickTimeout at its bound 2^24 - 1 us: the slot sent (all) |
BC-SL-06, BC-TM-04, BC-FR-08, BC-FR-09, BC-FT-03 |
test_profile (TC-BC-18) |
ECSS profile: one message per refusal rule of architecture section 7 not sent (code 11, event, record), and its allowed counterpart sent; MIL profile: its refusals, and the formats and mode codes ECSS refuses sent; Cfg_BcProfile = "10" and "11" act as ECSS with AllowOpenProfile_g = false; in c100_open: "10" sends reserved mode codes, a broadcast transmit command and a mode code with the wrong T/R bit with the formats of architecture section 6.2; the rules of MIL Table I per mode code (T/R = '0' other than 17, 20, 21; 20 and 21 with T/R = '1'; the broadcast mode codes 0, 16, 18, 19), the RT to RT transfers with command word 1 a transmit command, command word 2 a receive command, command word 2 to subaddress 0 or 31, the same RT in both, and the RT to RT bit with a mode command: refused by ECSS and MIL, a correct RT to RT transfer sent by MIL; in c100_open all sent, the mode command with the RT to RT bit as the mode command alone |
BC-PC-01, BC-PC-02, BC-PC-03, BC-PC-04, BC-PC-05, BC-MF-10, BC-CF-02 |
test_time_message (TC-BC-19) |
Time messages to subaddress 29, in broadcast and to one RT, with fine octets 0 to 3 and word counts 3, 4 and 5: sent; a word count that does not match the P-field and a non-zero upper byte of word 0: refused; with time synchronization, N = 8 and D = 2000 us: in frame 5 (10 ms after frame 0) sent, in frame 4 (8 ms after frame 0) and in frame 7 (index above N - 2) refused; before the first tick, frames counted from the start: in frame 5 (8 ms after it) refused, in frame 6 (10 ms after it) sent; without time synchronization: no window; transmit buffer B latched: data word 0 checked in buffer B (buffer A not valid: sent with the words of buffer B; buffer B not valid: refused) |
BC-TD-01, BC-TD-02, BC-TD-03 |
test_event_log (TC-BC-20) |
Records for descriptors with the record enable, for errors and not-sent messages with Cfg_LogErrors = '1' only; every field, the time tag at the presentation of the command, the frame number, bit 15 = '1'; written at Log_WrIdx, Log_Push after the last word, Log_Irq from the interrupt enable; the frame start event with its frame number (the other events of BC-EV-03 with their causes in TC-BC-01, 02, 03, 05, 06, 12, 14 and 18); the next message starts at the gap while the record of the message before is written (all) |
BC-EV-01, BC-EV-02, BC-EV-03, BC-EV-04, BC-IF-06, BC-IF-07 |
test_memory_errors (TC-BC-21) |
Double error in a frame table entry: frame without messages; in a slot (word 0, and word 1 that only the fetch reads): nothing written into a descriptor, no further slot in the frame, event; in the control word at the latch walk, rewritten by the host after the walk: not sent in that frame (code 9, latch word bit 5), sent in the next; in descriptor word 2 of a slot with the service request condition and of a time message, the status table entry and data word 0 read after it without an error: code 9; in each host word of a descriptor (words 0 to 3, the control word also at the latch), in the result word, the done count, the latch word (injected 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: not sent, code 9, event; in transmit data word k: k data words on the bus, code 9; in the message count read: not published, code 14, again after a new start; the host writes the count with 0 while the BC is inactive: the next execution publishes the other buffer with the count 1 and the data of the RT; the done count and the status table entry stay until the host writes them (the status table entry also until a valid status word of the RT), the result word and the latch word are written again by the next execution and latch walk; single errors: corrected data used (latency) |
BC-FT-01, BC-FT-02, BC-FT-06, BC-DX-02 |
test_transmitter (TC-BC-22) |
Bus disabled, shut down (Sd_Set of the codec, then Sd_Clr) and cut by the fail-safe timer (Stat_TxEn = '0'): messages on that bus not sent (code 8), messages on the other bus sent; a transmission that ends after an underrun or an abort: code 8; the bus disabled during a BC to RT message of 32 data words: code 8, started, the words after it not on the bus; Cmd_BcFsClr per bus: Fs_Clr of that bus only |
BC-FT-04, BC-IF-03 |
test_ownership (TC-BC-23) |
Back-to-back receive publications of one descriptor while the host reads its buffers with the sequence lock and slowed reads: every read consistent or retried, both occur; the memory model finds no forbidden write in this and every other test; a mutation that writes word 3 of a descriptor fails this test |
BC-PR-04, BC-DX-02 |
test_wrap_around (TC-BC-24) |
Data wrap-around: a BC to RT message to subaddress 30 and an RT to BC message from subaddress 30 with the same word count (1, 17, 32) in one frame: the received words equal the sent words |
BC-DX-05 |
lint/synth_check.py |
Elaboration and synthesis of o1553_bc at 16, 100 and 400 MHz, with SyncStages_g 2 to 4, MemLatency_g 1 and 8 and AllowOpenProfile_g false and true, without latches; a clock frequency the codec does not accept stops with its message |
BC-CF-01 |