Skip to content

o1553_bc: Specification

1. Overview

o1553_bc is the bus controller of Open1553 (architecture blocks BC-1 to BC-3). It runs the bus profile that the host writes into the buffer memory: it divides the time into communication frames, starts each frame with its synchronization message, sends the time synchronization message on the tick of the on-board time master, executes the messages of each frame at their positions, checks every response, exchanges the data words with the buffers of the host and reports the result of every message.

Block Function
BC-1 Frame scheduler: communication frames with and without time synchronization, frame and time synchronization messages, frame start signal, tick input, latch of the transmit data at the end of each frame, start times of the messages
BC-2 Message processor: message lists, all message formats, intermessage gap, no-response time-out, response validation, data exchange with the buffer memory, results and event records, the profile check
BC-3 Time distribution: the rules of the time message, checked by the profile check of BC-2

The module connects to o1553_codec (word events and transmit stream), to the buffer memory of o1553_host (memory port) and to its register file (configuration inputs, commands, state outputs, events). The core makes it the protocol engine of the bus instead of o1553_rt while the BC role is active (core architecture D20). All blocks run in Clk; only the tick input is asynchronous. Clause references: MIL = MIL-STD-1553B (Notice 2), ECSS = ECSS-E-ST-50-13C. The architecture decisions (D) and interpretations (I) are those of the core architecture, section 6.

Terms used below:

  • Word event: a word reported by a decoder of o1553_codec (Rx_Valid) with its bus, sync type, 16 data bits, validation result, contiguous flag, gap and own flag. Its reference crossing is the mid-bit zero crossing of its parity bit; the event comes rxLatency clock cycles after it (o1553_codec CD-DE-08).
  • Half bit: 0.5 us, H = ClkFreq_g / 2 MHz clock cycles; a word lasts 40H cycles.
  • Frame: a communication frame of ECSS 8.3. Its start is the mid-sync crossing of the command word of its synchronization message (the frame synchronization message, or the time synchronization message for frame 0 with time synchronization). The frame index selects the message list of the frame (BC-PR-01); the frame number is the number the frame synchronization message carries.
  • Bus profile: the frame table, the message lists, the descriptors, their data buffers and the status table in the buffer memory (architecture section 4).
  • Slot: an entry of a message list; it refers to a descriptor, the message that the slot executes.
  • Tick: a time synchronization request of the on-board time master (TimeSynchronize.Submit, ECSS 7.1.2a).
  • Latch window: the last Cfg_BcLatchTime us before the nominal start of a frame, in which the BC latches the transmit data of the next frame (BC-LA-01).
  • The configuration inputs Cfg_Bc* are register fields of o1553_host; architecture section 3 lists them.

2. Requirements

2.1 Interfaces

ID Requirement Clauses
BC-IF-01 The BC shall take the word events of both buses from o1553_codec (Rx_Valid, Rx_Sync, Rx_Data, Rx_Error, Rx_Contig, Rx_Gap, Rx_Own) and the line activity of both buses (Rx_Active). MIL 4.4.2
BC-IF-02 The BC shall send its words to o1553_codec as a valid / ready stream with sync type, 16 data bits, last-word flag and bus, take the transmission result (Tx_Done, Tx_Result, Tx_Suppressed) and end a transmission at once with Tx_Abort. MIL 4.3.3.6
BC-IF-03 The BC shall read the transmitter state of each bus (Stat_TxEn) and release the fail-safe state of a bus with a one-cycle command to o1553_codec (Fs_Clr). MIL 4.4.1.3
BC-IF-04 The BC shall access the buffer memory through one memory port: requests as a valid / ready stream of 13-bit word address, write flag and 16 data bits; for every read one response, in the order of the requests, with the data and the double error flag of the ECC. It shall make no request before Mem_InitDone. none
BC-IF-05 The BC shall take its configuration as levels and one-cycle commands from the register file, and present its state as levels and its events as one-cycle pulses (architecture section 3). none
BC-IF-06 The BC shall write each event record to the record index given by the event log (Log_WrIdx) and signal the complete record with a one-cycle event (Log_Push) that carries whether the record requests an interrupt. none
BC-IF-07 The BC shall take the 32-bit time tag (Time_Tag) of the core time base for its event records. none
BC-IF-08 The BC shall take the tick of the on-board time master from the asynchronous input Bc_TimeTick through a triplicated synchroniser (olo_intf_sync, SyncTmr_g = true); a rising edge after at least two cycles of '0' is a tick. ECSS 8.2.2.1c
BC-IF-09 The BC shall signal each frame start with a one-cycle pulse Bc_FrameSync together with the frame number Bc_FrameNum (8 bits), which holds its value until the next frame start. ECSS 7.2.1a, 8.3.1.1i, 8.3.2.1e
BC-IF-10 The BC shall have a test input ErrInj_RoleFlip, inactive by default, that inverts the complement copy of the role state (BC-RO-04). none
BC-IF-11 The BC shall take from the RT whether it is enabled (Cfg_RtEn) and whether a message is in progress (Rt_MsgActive), for the start condition of BC-RO-01. MIL 4.4.2

2.2 Role

ID Requirement Clauses
BC-RO-01 The role state shall be held as two copies, Role and its complement RoleN. The BC is active only while Role = '1' and RoleN = '0' (Stat_BcActive). The start command (Cmd_BcStart) shall make the BC active only when the RT is disabled, no RT message is in progress and the buffer memory is initialised; otherwise the command shall be ignored and the event "start refused" given. MIL 4.4.2
BC-RO-02 While the BC is not active it shall present no word to the codec, make no memory request, write no record and give no frame start, and its state machines shall be in their idle state. MIL 4.4.2
BC-RO-03 The stop command (Cmd_BcStop) shall end the BC after the message in progress and the writing of its results, or at once when no message is in progress: no further command, copies to the inactive state, event "stopped". none
BC-RO-04 Copies that are not complementary shall make the BC inactive in the same cycle: a transmission of the BC in progress shall end at once (Tx_Abort), no further word shall be presented, the copies shall be set to the inactive state in the next cycle and the event "role error" given. A single upset of either copy therefore never makes the core a bus controller. In a cycle with ErrInj_RoleFlip = '1' RoleN shall be inverted in the register. MIL 4.4.2

2.3 Frames

ID Requirement Clauses
BC-FR-01 Without time synchronization (Cfg_BcTimeSync = '0'), the BC shall start a frame every D us (Cfg_BcFrameTime) from the first frame after the start, and number the frames 0 to N-1 modulo N (Cfg_BcFrames, N = 1 to 256), beginning with 0. ECSS 8.3.2.1a, b, g
BC-FR-02 With time synchronization (Cfg_BcTimeSync = '1'), the BC shall start frame 0 Cfg_BcTsDelay us after a tick (BC-TK-02), frames 1 to N-1 every D us after the nominal start of frame 0, and end the last frame at the next tick (equal frames except the last one). N = 2 to 256. ECSS 8.3.1.1a to f
BC-FR-03 With time synchronization the frame number shall be 0 for frame 0, 1 in the next frame and incremented by one in each further frame until the next frame 0, modulo 256. ECSS 8.3.1.1k
BC-FR-04 Each frame except frame 0 with time synchronization shall start with a frame synchronization message: mode code 17 in broadcast on subaddress 31 (command word 0xFBF1) with the data word whose bits 15 to 8 are Cfg_BcFrameRsvd (reset value 0) and whose bits 7 to 0 are the frame number (I3). ECSS 8.3.1.1g, h, j, l, 8.3.2.1c, d, f, h, 6.2.1.2.1a
BC-FR-05 Frame 0 with time synchronization shall start with the time synchronization message: mode code 1 in broadcast on subaddress 31 (command word 0xFFE1), without data word. ECSS 8.2.2.1a, b, 8.3.1.1g
BC-FR-06 The sync of the command word of a frame's synchronization message shall start txLatency clock cycles after the cycle of its Bc_FrameSync, so that the frame start is 3H + txLatency cycles after Bc_FrameSync. ECSS 8.3.1.1i, 8.3.2.1e, 7.2.1a
BC-FR-07 The synchronization messages shall be sent on the bus selected by bit 31 of Cfg_BcRtBus, and so shall a broadcast message whose control word selects the bus of Cfg_BcRtBus (BC-MF-08). MIL 4.6.3.1
BC-FR-08 Nominal frame starts shall lie on the grid of D us from the start of frame 0 (or of the first frame without time synchronization), counted in clock cycles. A frame that starts late (BC-LA-03, BC-TM-04, or by at most 3 cycles because its start is due while the BC decides a slot of the list before that is not sent) shall not move the nominal start of the next frame, and its lateness shall give the event "late". The slots of the list before that are not decided by the frame start shall not be executed. ECSS 8.3.2.1a
BC-FR-09 The BC shall take Cfg_BcTimeSync, Cfg_BcTickSrc, Cfg_BcFrames, Cfg_BcFrameTime, Cfg_BcTickTimeout, Cfg_BcTsDelay, Cfg_BcLatchTime, Cfg_BcTimeout, Cfg_BcGap, Cfg_BcProfile and the table addresses at the start command and keep them while it is active, bounded as follows: N to 1 to 256 (2 to 256 with time synchronization), D to at least 2000 us, the latch time to 20 to 1000 us, the tick time-out to at least D. Cfg_BcRtBus and Cfg_BcFrameRsvd shall act at once. ECSS 8.3.1.1b, 8.3.2.1b

2.4 Tick

ID Requirement Clauses
BC-TK-01 The tick shall come from Bc_TimeTick (Cfg_BcTickSrc = '0') or from the command Cmd_BcTick of the host (Cfg_BcTickSrc = '1'). Without time synchronization ticks shall be ignored. ECSS 8.2.2.1c, d
BC-TK-02 From a tick on the BC shall start no further message of the current frame. The time synchronization message shall start Cfg_BcTsDelay us after the tick (measured in clock cycles from the cycle in which the tick is detected), or, when the message in progress and the gap end later, at that time with the event "late". While the BC is not active, ticks shall have no effect. ECSS 8.2.2.1f, g
BC-TK-03 After the start command with time synchronization, the BC shall run frames from frame number 1, every D us, until the first tick. ECSS 8.2.1.1e
BC-TK-04 When no tick comes within Cfg_BcTickTimeout us after the previous one, the BC shall end the last frame then (not earlier than D us after its start), continue with frames every D us and the numbers of BC-FR-03, and give the event "tick missing" once per missing tick. ECSS 8.3.1.1k
BC-TK-05 A tick before frame N-1 has started, or before the time synchronization message of the previous tick has started, shall give the event "tick early". The first one shall start frame 0 as in BC-TK-02; a tick before the time synchronization message of the previous tick shall be ignored. ECSS 8.2.2.1e

2.5 Bus profile

ID Requirement Clauses
BC-PR-01 The frame table at Cfg_BcFrameTable shall have one entry per frame index 0 to N-1: the address of the message list of the frame and a valid flag. The frame index shall be the number of frames since the last frame 0, or since the start without time synchronization, modulo N; with time synchronization the first frame after the start has index 1. A frame whose entry is not valid has no messages. ECSS 8.3.3c
BC-PR-02 A message list shall be a sequence of slots of two words: descriptor address, last flag, timed flag and a start time of 0 to 2^20 - 1 us. The BC shall execute at most 256 slots of a list; a list without a last flag shall end after its 256th slot with the event "list end missing". ECSS 8.3.3c
BC-PR-03 A descriptor shall have 16 words at an address that is a multiple of 16: words 0 to 7 written by the host (control word, command words, data buffer address, reserved), words 8 to 15 written by the BC (architecture section 4.3). ECSS 8.4.1a, 8.5.1a
BC-PR-04 The BC shall write only the words 8 to 15 of descriptors, the receive buffers it fills and has not published, the status table and the event records. It shall never write a host word, a frame table entry, a slot, a transmit buffer or a published receive buffer (D9). none
BC-PR-05 The status table at Cfg_BcStatusTable shall hold 32 words; the BC shall write word r with every valid status word of RT r that answers a message of the BC. MIL 4.4.2

2.6 Latch of the transmit data

ID Requirement Clauses
BC-LA-01 Before each frame, at the start of the latch window (for frame 0 with time synchronization: at the tick), the BC shall read every slot of the frame's message list and copy the selected transmit buffer and the request count of the control word of its descriptor into the latch word of the descriptor (word 13). ECSS 8.4.1b, 8.5.1b
BC-LA-02 A message shall use the transmit buffer and the request of the latch word, so that a selection or a request that the host writes during a frame acts at the earliest in the next frame, for all messages of the frame alike. ECSS 8.4.1b, c, 7.3.1a, b
BC-LA-03 When the latch is not complete at the nominal frame start, the frame start shall wait for it, with the event "late". ECSS 8.4.1b

2.7 Slots and the frame guard

ID Requirement Clauses
BC-SL-01 The BC shall execute the slots of a frame in the order of the list. An untimed slot shall start as early as the gap (BC-TM-01) and the idle line (BC-TM-04) allow after the previous message or the synchronization message of the frame. ECSS 8.3.1.1a, 8.3.2.1a
BC-SL-02 A timed slot shall start so that the mid-sync crossing of its command word comes exactly its start time after the frame start (to the clock cycle). When the gap or the previous message do not allow it, it shall start as early as allowed, with the result flag and the event "late". ECSS 8.3.3a, b
BC-SL-03 A slot whose descriptor has the service request condition shall be executed only when the last valid status word of the RT addressed by its command word, received before the slot starts, has the service request bit set; otherwise it is skipped. ECSS 6.2.1.2.3a
BC-SL-04 A slot whose descriptor is on demand shall be executed only when the request count of its latch word differs from its done count (word 14); after the execution the done count shall be the latched request count, also for a later slot of the frame with the same descriptor. A message that is not sent shall leave the done count unchanged. Otherwise the slot is skipped. ECSS 7.3.1b, 7.4.1b
BC-SL-05 A skipped slot shall leave the BC words of its descriptor unchanged and shall not move the start of a later timed slot. ECSS 8.3.3c
BC-SL-06 Frame guard: a message shall start only when its worst-case end, from its command words, its data words at 20 us each, Cfg_BcTimeout for every expected response and Cfg_BcGap, lies before the latch window of the frame, and, after a tick, never. Otherwise it shall not be sent (result code "frame guard", event "not sent"). ECSS 8.4.1c, 8.5.1c, 8.3.1.1i, 8.2.2.1f
BC-SL-07 After the last slot of a list the BC shall start no message until the next frame. ECSS 8.3.3c

2.8 Message formats

ID Requirement Clauses
BC-MF-01 BC to RT: the BC shall send the receive command (command word 1) and the number of data words of its word count (0 = 32) from the latched transmit buffer, contiguously, and expect the status word. MIL 4.3.3.6.1; ECSS 8.4.1a
BC-MF-02 RT to BC: the BC shall send the transmit command and expect the status word followed contiguously by the number of data words of its word count. MIL 4.3.3.6.2; ECSS 8.5.1a
BC-MF-03 RT to RT (control word: RT to RT): the BC shall send the receive command (command word 1) and the transmit command (command word 2) contiguously, expect the status word and the data words of the transmitting RT and then the status word of the receiving RT. MIL 4.3.3.6.3, 30.8
BC-MF-04 Mode command without data word (subaddress 0 or 31, mode code 0 to 15): the BC shall send the command and expect the status word. MIL 4.3.3.6.4
BC-MF-05 Mode command with data word, transmit (mode code 16 to 31, T/R = '1'): the BC shall send the command and expect the status word followed contiguously by one data word. MIL 4.3.3.6.5
BC-MF-06 Mode command with data word, receive (mode code 16 to 31, T/R = '0'): the BC shall send the command and, contiguously, word 2 of the descriptor as the data word, and expect the status word. MIL 4.3.3.6.6
BC-MF-07 Broadcast (address 31 in command word 1): the BC shall send the receive command with its data words, the receive command with a transmit command to one RT (and expect only that RT's status word and data words), or the mode command with its received data word, and expect no status word from the receivers. MIL 4.3.3.6.7, 4.3.3.6.7.1 to 4.3.3.6.7.4
BC-MF-08 The bus of a message shall be bus A, bus B or the bus that Cfg_BcRtBus selects for the RT address of command word 1 (bit 31: broadcast), as the control word of the descriptor selects. The BC shall transmit on one bus at a time. MIL 4.6.3.1, 4.2
BC-MF-09 The BC shall not repeat a message after an error: each execution of a slot sends its message at most once. ECSS 6.5a
BC-MF-10 The BC shall send the command words of a descriptor as written by the host, when the profile check (section 2.12) allows them. MIL 30.4.2.2, 30.8; ECSS 6.2.1.2.1a

2.9 Timing

ID Requirement Clauses
BC-TM-01 Intermessage gap: the mid-sync crossing of the command word of a message shall come at least Cfg_BcGap clock cycles after the reference crossing of the last word of the previous message, whether the BC sent it or received it. Cfg_BcGap shall be bounded to at least 4.0 us; its reset value is 4.0 us. MIL 4.3.3.7
BC-TM-02 No-response time-out: a status word whose mid-sync crossing comes more than Cfg_BcTimeout clock cycles after the reference crossing of the last word before it (the last word the BC sent, or for the status word of the receiving RT of an RT to RT transfer the last data word) shall be no response. Cfg_BcTimeout shall be bounded to at least 14.0 us; its reset value is 18.0 us. MIL 4.3.3.9; ECSS 6.2.2a
BC-TM-03 When no word has started on the line by the time-out (Rx_Active), the BC shall decide "no response" without waiting further; when a word has started, it shall decide from the mid-sync crossing of that word (its reference crossing less 36H). MIL 4.3.3.9
BC-TM-04 Before every command word the line of its bus shall be idle (Rx_Active = '0') for the gap; while it is active the BC shall wait, at most until the latest start that the frame guard (BC-SL-06) allows; a message that cannot start then is not sent (result code "line busy", event "not sent"). A synchronization message waits at most until the latch window of its frame; the frame then has no messages and the event "late" is given. MIL 4.4.2, 4.3.3.7
BC-TM-05 Within a response each data word shall be reported within 42H clock cycles (21.0 us) of the word event before it; otherwise the word count is too low. The line shall be idle 2.0 us after the reference crossing of the last expected word; otherwise the word count is too high. MIL 4.4.1.2

2.10 Response validation

ID Requirement Clauses
BC-RV-01 The word at the status word position shall be valid, have the command sync and the RT address of the command (for an RT to RT transfer: of the respective command); otherwise the message has an error (invalid word, sync, address). Own words (Rx_Own) and words of the other bus are never taken as a response. ECSS 6.3a; MIL 4.4.2
BC-RV-02 The words at data word positions shall be valid, have the data sync and be contiguous (Rx_Contig), and their number shall be the word count (BC-TM-05); otherwise the message has an error. MIL 4.4.1.2; ECSS 6.3a
BC-RV-03 A status word with the message error bit or the busy bit set and no data word after it shall be a response without data words, not a word count error. ECSS 6.2.1.2.5a
BC-RV-04 The BC shall store every received status word in the descriptor and set the exception flag of the result when the message error, busy, subsystem flag, terminal flag, instrumentation or a reserved bit is set. ECSS 6.2.1.2.5a, 8.4.1d, 8.5.1d
BC-RV-05 A status word with the busy bit set shall give the event "busy". ECSS 6.2.1.2.5a.7
BC-RV-06 Received data words shall be published only for a message without an error (BC-DX-02). ECSS 8.5.1d
BC-RV-07 Dynamic bus control: when the status word answering mode code 0 has the dynamic bus control acceptance bit set, the BC shall end as with the stop command after that message and give the event "control passed". MIL 4.3.3.5.1.7.1

2.11 Data exchange

ID Requirement Clauses
BC-DX-01 A descriptor shall have two data buffers of n words at its data buffer address: buffer b at the address plus b times n, n the word count of the message (1 for a mode command with data word). The BC shall send the data words of BC to RT and broadcast receive messages from the latched transmit buffer. ECSS 8.4.1a; D9
BC-DX-02 The BC shall write received data words (RT to BC, the data word of a transmit mode command, and the data words of an RT to RT transfer) into the buffer that is not published, and publish it after a message without an error: first the data, then the result word with the buffer, then the message count incremented by one, then the frame count of the execution. A double error in the message count read shall leave the buffer unpublished. ECSS 8.5.1a, d; D9
BC-DX-03 The BC shall write the result word, the status words and the frame count of every executed message, also of a message with an error, and of a message that is not sent (BC-SL-06, BC-TM-04, BC-PC-05, BC-FT-01). ECSS 8.4.1d, 8.5.1d, 7.3.2a, 7.4.2a
BC-DX-04 A transfer of more data words than one message holds shall be several descriptors in the list of one frame; all of them complete within the frame or are not sent (BC-SL-06). ECSS 8.4.1a, c, 8.5.1a, c
BC-DX-05 Data wrap-around shall be a BC to RT message to subaddress 30 followed by an RT to BC message from subaddress 30 with the same word count. ECSS 8.7.4c

2.12 Profile check

ID Requirement Clauses
BC-PC-01 The profile shall be ECSS (Cfg_BcProfile = "00", reset value), MIL ("01") or open ("10"). The open profile shall be selectable only with the generic AllowOpenProfile_g = true; with AllowOpenProfile_g = false every value other than "01" shall select the ECSS profile, so that no register upset makes the profile open. ECSS 6.2.1.2.4a
BC-PC-02 ECSS profile: before a message the BC shall refuse mode codes 0, 3, 19, 20 and 21, reserved mode codes, a mode code with the T/R bit or the broadcast address that MIL Table I does not define for it, mode code 16 without the service request condition, mode commands on subaddress 0, data messages to subaddresses 0 and 8, RT to RT transfers, mode commands with the RT to RT bit, broadcast messages other than the broadcast mode commands of MIL Table I and receive messages to subaddress 29, and transmit commands with the broadcast address. ECSS 6.2.1.2.1a, 6.2.1.2.3a, 6.2.1.2.4a, 6.2.2a, 6.4d; MIL 30.6
BC-PC-03 MIL profile: the BC shall refuse reserved mode codes, a mode code with the T/R bit or the broadcast address that MIL Table I does not define for it, broadcast messages other than the broadcast mode commands of MIL Table I, transmit commands with the broadcast address, RT to RT transfers other than a receive command followed by a transmit command to a subaddress 1 to 30 of another RT, and mode commands with the RT to RT bit; all other message formats and mode codes are sent. MIL 30.4.2.2, 30.6, 30.8, 4.3.3.6.3
BC-PC-04 Open profile: the BC shall send any command words, with the message format given by their fields and the control word. none
BC-PC-05 A refused message shall not be sent: result code "refused", event "not sent", record when errors are recorded. ECSS 6.2.1.2.4a

2.13 Time distribution

ID Requirement Clauses
BC-TD-01 A time message shall be a BC to RT message to subaddress 29, to one RT or in broadcast, whose data words the host writes into the transmit buffer of its descriptor (TimeData.Submit). ECSS 7.1.1a, 8.2.1.1a, b, d
BC-TD-02 ECSS profile with time synchronization: a time message shall be sent only in a frame with an index of N-2 or less and at least 10 ms after the start of the last frame 0 (or of the start command, before the first tick); otherwise it is refused. ECSS 8.2.1.1e
BC-TD-03 ECSS profile: a time message shall be refused when bits 15 to 8 of its data word 0 (of the latched transmit buffer) are not zero or its word count is not 3 + ceil(f / 2), f the number of fine octets in the P-field (bits 1 and 0 of data word 0). ECSS 8.2.1.1a, c

2.14 Results, records and events

ID Requirement Clauses
BC-EV-01 The BC shall write an event record (architecture section 4.6) for every message that is executed or not sent when its descriptor enables records, and for every message with an error or not sent when Cfg_LogErrors = '1'. ECSS 8.4.1d, 8.5.1d
BC-EV-02 A record shall request an interrupt when the descriptor enables it. ECSS 7.3.1a, 7.4.1a
BC-EV-03 The BC shall give one-cycle events for: frame start, busy, not sent, late, tick missing, tick early, list end missing, stopped (also after control passed), start refused, role error. ECSS 7.2.1a, 6.2.1.2.5a.7
BC-EV-04 The BC shall present the frame number, a 16-bit frame count (frames since the start, modulo 65536) and its state (inactive, waiting for the first frame, running, stopping) as state outputs. ECSS 7.2.1a

2.15 Fault tolerance and bounded waits

ID Requirement Clauses
BC-FT-01 A double error in the frame table entry shall leave the frame without messages; one in a slot shall end the messages of the frame at that slot and write nothing into a descriptor, since the slot names none; one in a host word, the result word, the latch word or the done count of a descriptor, in the status table entry read for the service request condition or in data word 0 of a time message shall leave the slot not sent (result code "memory"); each with the event "not sent". D14
BC-FT-02 A double error in transmit data word k shall end the transmission before that word: k data words are sent, result code "memory". D14
BC-FT-03 Every wait of the BC shall be bounded as in section 3, and every timer shall end its wait when it reaches or passes its limit (compare with >=). none
BC-FT-04 A message on a bus whose transmitter is not enabled (Stat_TxEn = '0': disabled by the host, shut down or cut by the fail-safe timer) shall not be sent (result code "transmitter not available"); a transmission that ends after an underrun or an abort, or whose transmitter is disabled during it (Tx_Suppressed), shall have the same result. The host command Cmd_BcFsClr shall release the fail-safe state of its bus (Fs_Clr). MIL 4.4.1.3
BC-FT-05 Every state machine shall have a defined recovery state: an illegal state leads to it, and the reset restarts it from any state (D15). none
BC-FT-06 A double error in the message count, the done count or a status table entry, which the BC reads before it writes them, shall stay until the word is written: the BC writes the status table entry with the next valid status word of its RT, the host writes any of them while the BC is inactive. After the host has written the message count with 0, the next execution without an error shall publish with the message count 1. The result word and the latch word shall be written again by the next execution and the next latch walk. D14

2.16 Configuration

ID Requirement Clauses
BC-CF-01 ClkFreq_g and SyncStages_g shall be those of the o1553_codec it is connected to; the BC shall stop the elaboration for a ClkFreq_g that the codec does not accept. none
BC-CF-02 AllowOpenProfile_g shall default to false. none

3. Waits and counters

Every wait of the BC ends at a bound; the timers count towards their limits and end the wait at the limit or beyond it (BC-FT-03).

Wait Bound After the bound
Status word after the last word of the BC (or the last data word, RT to RT) Cfg_BcTimeout + 36H + rxLatency + 2 cycles; earlier when no word has started by Cfg_BcTimeout (BC-TM-03) No response
Next data word of a response 42H cycles after the previous word event Word count too low
Line activity after the last expected word 2.0 us after its reference crossing Word count too high
Gap before a command Cfg_BcGap cycles after the reference crossing of the last word Command starts
Idle line before a command Latest start allowed by the frame guard; for a synchronization message the latch window Not sent; frame without messages
Timed slot Its start time, which lies before the latch window (otherwise the frame guard refuses it at once) Command starts
Latch walk 256 slots of the list List end missing
Frame start after the latch End of the latch walk Frame starts late
Time synchronization message after a tick Cfg_BcTsDelay us, or the end of the message in progress and the gap Message starts, late
Next tick Cfg_BcTickTimeout us after the previous tick Frames continue, tick missing
Frame D us (at least 2000 us) Next frame
Memory request and response One host access and MemLatency_g cycles (D8) none needed
Transmission 33 words and txLatency (BC to RT with 32 data words); the fail-safe timer of the codec at 700 us Tx_Done
Stop command End of the message in progress and of its results (bounded by the waits above) Inactive

The counters that do not end a wait (message count, frame count, frame number, request and done counts) wrap by design; the BC compares the request count only for equality.

The time-out decision of BC-TM-02 is accurate to about 1.5 clock cycles. The BC computes the mid-sync crossing of the status word from its word event, which comes between half a cycle before and one cycle after rxLatency (o1553_codec), and compares whole cycles. A status word whose mid-sync crossing lies within 1.5 cycles of the time-out can therefore be decided either way; outside this band the decision is exact. For the same reason the gap of BC-TM-01 after a received word is between 0.5 and 2 cycles longer than Cfg_BcGap, never shorter; after a word of the BC it is exact.

4. Partner behaviour

4.1 Remote terminals

Property Behaviour Handling
Response time 4.0 to 12.0 us at the bus (MIL 4.3.3.8); a faulty RT answers later or not at all Time-out of BC-TM-02, at the ports (interpretation I19)
Status word Its address, the message error bit after an invalid or illegal message (status word only), busy with the status word only after a transmit command (MIL 4.3.3.5.3.8) BC-RV-01, BC-RV-03
Service request Set by the RT application; the vector word follows mode code 16 (ECSS 6.2.1.2.3) BC-SL-03
Reset (mode code 8) The RT may give no response for an application defined time (I4, ECSS 6.2.1.2.2b) No response; the profile leaves the time
Superseding An RT ends its message when a valid command for it comes on the other bus (MIL 4.6.3.2) The BC sends on one bus at a time (BC-MF-08)
Broadcast No status word; the broadcast command received bit appears in the next status word BC-MF-07, BC-RV-04

4.2 Codec

Property Behaviour (o1553_codec specification) Handling
Word events One event per word, rxLatency cycles after its reference crossing (-0.5 to +1 cycle); invalid words reported once; contiguity flag and gap in cycles BC-RV-01, BC-RV-02, BC-TM-02
Own words Words whose mid-sync crossing lies in the own transmission window carry the own flag BC-RV-01
Line activity Rx_Active per bus: '1' from SyncStages_g + F + 1 cycles after the start of activity to 0.4 us of zero line BC-TM-03, BC-TM-04, BC-TM-05
Transmit stream The first word starts its sync txLatency = 2 cycles after its acceptance; a further word is accepted in the first cycle of the parity bit of the current word; the reference crossing of the last word is H cycles before the end of the transmission BC-FR-06, BC-SL-02, BC-TM-01
Transmitter state Stat_TxEn per bus; the fail-safe timer cuts a transmission of more than 700 us and is released by Fs_Clr BC-FT-04

4.3 Host, buffer memory and time master

Property Behaviour Handling
Memory port A request waits at most for one host access; a read returns its data MemLatency_g cycles after its acceptance (D8) Timing budget of the architecture
Bus profile Written by the host before the start, changed while the BC runs only as the user guide describes (control words, transmit buffers, frame table entries of later frames) BC-LA-01, BC-PR-04
Transmit buffers The host writes only a buffer that is neither latched nor selected, then switches the selection BC-LA-02
Receive buffers The host reads with the sequence lock of D9 BC-DX-02
Tick Nominal period fixed for the mission, recommended 1 s, variation below 1 % (ECSS 8.2.2.1d, e); pulses of at least two clock cycles BC-IF-08, BC-TK-04, BC-TK-05

5. Error conditions

Condition Detection Response Result code
No response BC-TM-02, BC-TM-03 Next slot after the idle line and the gap no response
Invalid word in a response (sync field, Manchester, bit count, parity) Word event with an error Message error; next slot after the idle line invalid word
Status word with data sync, or data word with command sync Sync type at the position Message error sync
Status word of another RT address Address field Message error address
Data word not contiguous Rx_Contig = '0' Message error gap
Too few or too many data words BC-TM-05 Message error word count low, word count high
Status word with exception bits BC-RV-04 Exception flag, data published when complete none
Busy BC-RV-05 Event, exception flag none
Transmitter not enabled, underrun or abort Stat_TxEn, Tx_Result Not sent or ended transmitter not available
Double error ECC flag BC-FT-01, BC-FT-02, BC-DX-02 memory
Message would not end in its frame Frame guard Not sent frame guard
Refused by the profile check BC-PC-02, BC-PC-03, BC-TD-02, BC-TD-03 Not sent refused
Line not idle until the latest start BC-TM-04 Not sent line busy
Stop command during a message BC-RO-03 The message completes with its own result, then the BC ends as the message
Role error during a message BC-RO-04 Transmission aborted, BC inactive, no result written none
Role copies not complementary BC-RO-04 BC inactive, event none

6. Configuration parameters

Generic Default Range Description
ClkFreq_g none 16e6 to 400e6, integer multiple of 2e6 Frequency of Clk in Hz (real), as o1553_codec
SyncStages_g 2 2 to 4 Synchroniser stages of the codec and of Bc_TimeTick
MemLatency_g 3 1 to 8 Clock cycles from the acceptance of a memory read to its response
AllowOpenProfile_g false boolean The open profile can be selected (BC-PC-01)

7. Interpretation of the standard

The interpretations I1 to I24 of the architecture apply, in particular I15 to I24 of the bus controller. In addition:

Clause Interpretation
MIL 4.3.3.9; ECSS 6.2.2a The time-out is measured to the mid-sync crossing of the expected word, as the response time. A word that starts before the time-out but whose mid-sync crossing comes after it is no response; the BC waits until the line is idle before it sends the next command, so that it never transmits over the late word
MIL 4.4.1.2 A response with too many data words shows as a line still active after the last expected word; the BC checks the line activity 2.0 us after the reference crossing of that word instead of waiting for the next word event
ECSS 8.3.1.1a, 8.3.2.1a The frame of the BC is the interval between the starts of two synchronization messages; the BC uses the nominal start for its timers, so that a late frame does not shift the frames after it
ECSS 8.3.3a, b The start time is exact to the clock cycle at the core ports (I19); the precision at the bus depends on the transceiver delay, which is the same for both commands
ECSS 7.3.1b, 7.4.1b The pre-allocated bandwidth with unpopulated content of Type II is a slot on demand: the host fills the data and increments the request count during a frame, and the message is sent once in the next frame that has the slot