o1553_rt: Specification¶
1. Overview¶
o1553_rt is the remote terminal of Open1553 (architecture blocks RT-1 to RT-6). It takes the words that the codec
decodes on both buses, validates the commands addressed to the terminal, runs every message format of MIL-STD-1553B
including broadcast and RT to RT transfers, answers with its status word at the programmed response time, executes the
mode codes, moves the data words between the bus and the buffer memory, publishes received data only when a message is
valid, writes an event record per message and provides the remote terminal functions of the ECSS-E-ST-50-13C services.
| Block | Function |
|---|---|
| RT-1 | Message sequencer: command validation, message formats, data word validation, superseding commands, response timing, RT to RT time-out |
| RT-2 | Status registers: status word, last command word, BIT word, terminal flag and its inhibit |
| RT-3 | Mode code handler: execution of mode codes 0 to 31, transmitter shutdown commands, indications |
| RT-4 | Buffer access: control and status words of the subaddresses, illegal command tables, double buffers and publication, data wrap-around, event records |
| RT-5 | Address input: address straps, parity check and validation |
| RT-6 | ECSS services: time message, time and frame synchronisation, frame number, RT health word, terminal configuration commands |
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, status outputs, events). All blocks run in Clk; only the
address straps are 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 comesrxLatencyclock cycles after it (o1553_codecCD-DE-08). - Command candidate: a word event that is valid, has the command sync and is no own word.
- Valid command: a command candidate addressed to the RT (section 2.2). A valid command may be illegal (section 2.7).
- Message: a valid command with the words that belong to it on the bus of the command: the data words, for an RT to RT transfer the transmit command and the status word of the other RT, and the response of the RT.
- Message position: a point of a message at which the RT expects a word of that message on that bus (the first data word or the transmit command after a receive command, the next data word, the status word of the other RT).
- Last word: the word of a message from whose reference crossing MIL measures the response time: the command for a transmit command and a mode command without received data word, otherwise the last received data word.
- Half bit: 0.5 us,
H=ClkFreq_g/ 2 MHz clock cycles; a word lasts 40Hcycles.
2. Requirements¶
2.1 Interfaces¶
| ID | Requirement | Clauses |
|---|---|---|
| RT-IF-01 | The RT 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: '1' from the start of activity on the line until the line has been in the zero state for 0.4 us). |
MIL 4.4.1.1, 4.4.1.2 |
| RT-IF-02 | The RT 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 |
| RT-IF-03 | The RT shall control the transmitter state of each bus with one-cycle commands to o1553_codec: shutdown (Sd_Set), override of the shutdown (Sd_Clr) and release of the fail-safe state (Fs_Clr), and read the fail-safe states (Stat_FailSafe) and loopback errors (Mon_Error). |
MIL 4.4.1.3, 4.3.3.5.1.7.5, 4.3.3.5.1.7.6 |
| RT-IF-04 | The RT 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 (single errors are corrected and counted by the EDAC monitor of the host). | none |
| RT-IF-05 | The RT shall take its configuration as levels and one-cycle commands from the register file and present its state as levels (the signals of architecture section 3). | none |
| RT-IF-06 | The RT 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 |
| RT-IF-07 | The RT shall indicate the synchronize mode commands, reset remote terminal and initiate self test with one-cycle pulses (Rt_TimeSync, Rt_FrameSync with Rt_SyncData, Rt_ResetReq, Rt_SelfTestReq). |
MIL 4.3.3.5.1.7.2, 4.3.3.5.1.7.12; ECSS 7.1.2a, 7.2.1a |
| RT-IF-08 | The RT shall read its address from the asynchronous straps Rt_Addr(4:0) and Rt_AddrParity. |
MIL 30.3; ECSS 5.5.2a |
| RT-IF-09 | The RT shall take the 32-bit time tag (Time_Tag) of the core time base for its event records. |
none |
2.2 Command validation¶
| ID | Requirement | Clauses |
|---|---|---|
| RT-CV-01 | A command candidate that is not at a message position of the message in progress on its bus shall be a valid command when its address field (bits 15 to 11) equals the RT address, or equals 31 while broadcast is enabled (Cfg_BcstEn), and the RT is enabled (Cfg_RtEn), its address is valid (RT-AD-02) and the buffer memory is initialised (Mem_InitDone). Other words shall be ignored, and the RT shall not respond to them. |
MIL 4.4.3.1, 4.4.3.3, 4.3.3.5.1.2, 30.3; ECSS 6.3a |
| RT-CV-02 | The RT shall decode the T/R bit (bit 10, '1' = transmit), the subaddress (bits 9 to 5) and the word count (bits 4 to 0, 0 = 32 words). Subaddresses 0 and 31 shall select a mode command whose mode code is bits 4 to 0; both shall have the same meaning. | MIL 4.3.3.5.1.3 to 4.3.3.5.1.5, 4.3.3.5.1.7, 30.4.1; ECSS 6.2.1.1a |
| RT-CV-03 | Every valid command shall release the fail-safe state of its bus (Fs_Clr). |
MIL 4.4.1.3 |
| RT-CV-04 | Every combination of the fields of a valid command shall lead to one of the behaviours of sections 2.3 and 2.7; no combination shall cause a transmission other than a status word with its data words. | MIL 4.4.3.1 |
2.3 Message formats¶
| ID | Requirement | Clauses |
|---|---|---|
| RT-MF-01 | Receive command to subaddress 1 to 30: the RT shall receive the number of data words of the command, contiguous on the bus of the command, and after the last one transmit its status word at the response time (RT-TM-01). | MIL 4.3.3.6.1, 4.4.3.5; ECSS 6.2.2a |
| RT-MF-02 | Transmit command to subaddress 1 to 30: the RT shall transmit its status word at the response time, followed contiguously by the number of data words of the command. | MIL 4.3.3.6.2; ECSS 6.2.2a |
| RT-MF-03 | RT to RT, receiving terminal: when the word after a receive command is contiguous and is a transmit command (command sync, T/R = '1', subaddress 1 to 30) to another RT address than the own and than 31, the RT shall wait for the status word of that terminal (command sync, address of the transmit command), then receive the data words contiguous to it, and respond as in RT-MF-01. | MIL 4.3.3.6.3, 30.8, 30.9 |
| RT-MF-04 | RT to RT, transmitting terminal: the RT shall answer the transmit command as in RT-MF-02, whatever precedes it. Received and transmitted data shall not depend on whether a message is part of an RT to RT transfer. | MIL 4.3.3.6.3, 30.8 |
| RT-MF-05 | Mode command without data word (mode codes 0 to 15, T/R = '1'): the RT shall transmit its status word at the response time. | MIL 4.3.3.6.4 |
| RT-MF-06 | Mode command with data word, transmit (mode codes 16 to 31, T/R = '1'): the RT shall transmit its status word at the response time, followed contiguously by one data word. | MIL 4.3.3.6.5 |
| RT-MF-07 | Mode command with data word, receive (mode codes 16 to 31, T/R = '0'): the RT shall receive one data word, contiguous to the command, and then transmit its status word at the response time. | MIL 4.3.3.6.6 |
| RT-MF-08 | Broadcast receive command (address 31, T/R = '0', subaddress 1 to 30): the RT shall receive the data words as in RT-MF-01 or, after a transmit command to another RT, as in RT-MF-03, and shall not transmit its status word. When the transmit command after a broadcast receive command addresses the RT itself, the RT shall answer it as in RT-MF-02 and not receive the data. | MIL 4.3.3.6.7.1, 4.3.3.6.7.2, 30.6 |
| RT-MF-09 | Broadcast mode command (address 31): the RT shall receive the data word of a mode code 16 to 31 with T/R = '0', execute the mode code (section 2.8) and not transmit its status word. | MIL 4.3.3.6.7.3, 4.3.3.6.7.4 |
| RT-MF-10 | After every broadcast message that is valid, also an illegal one, the RT shall set the broadcast command received bit (RT-ST-04). | MIL 4.3.3.6.7.1 to 4.3.3.6.7.4, 4.3.3.5.3.7 |
2.4 Data word and message validation¶
| ID | Requirement | Clauses |
|---|---|---|
| RT-DV-01 | Every word at a data word position shall be valid, have the data sync and be contiguous to the word before it (Rx_Contig); the first data word is contiguous to the receive command or, in an RT to RT transfer, to the status word of the other terminal. A word that fails one of these criteria is a message error, except a command candidate that is not contiguous (RT-DV-02). |
MIL 4.4.1.1, 4.4.1.2, 4.4.3.6 |
| RT-DV-02 | Word count too low: when the next word of a message is not reported within 21.0 us of the event of the word before it, or a command candidate that is not contiguous comes at a data word position (the bus controller ended the message early and sent a new command), that is a message error; that command candidate shall then be evaluated as a command (RT-CV-01). | MIL 4.4.3.6, 4.4.3.2 |
| RT-DV-03 | Word count too high: when the line of the bus of a receive message is active (Rx_Active) in the cycle in which the RT presents its status word, or for a broadcast message in the corresponding cycle, that is a message error. |
MIL 4.4.3.6 |
| RT-DV-04 | RT to RT time-out: when the mid-sync crossing of the first data word comes later than 57.0 us after the reference crossing of the receive command, or the first data word does not come, that is a message error. | MIL 30.9 |
| RT-DV-05 | RT to RT format: when the word after the receive command is a command candidate that is neither the transmit command of RT-MF-03 nor a valid command, or when the word at the position of the status word of the other terminal is a command candidate with another address than that of the transmit command, and is not a valid command, that is a message error. | MIL 30.9 |
| RT-DV-06 | A message error shall set the message error bit, suppress the status word, discard the whole message (no data published, no mode code executed) and end the message. A command candidate that caused the error, or that follows contiguously on the bus of the message after the error, shall not be evaluated as a command; the first word after the line of that bus has been idle (Rx_Active = '0') for 1.0 us shall be (architecture section 5.2). |
MIL 4.4.3.6, 4.3.3.5.3.3 |
2.5 Superseding commands and dual standby bus¶
| ID | Requirement | Clauses |
|---|---|---|
| RT-SU-01 | A valid command (RT-CV-01) on either bus while a message is in progress (receiving, waiting for the response time or transmitting) shall supersede that message: a transmission of the RT shall end at once (Tx_Abort), the message shall be discarded without setting the message error bit, and the RT shall process the new command and respond on its bus at its response time. |
MIL 4.4.3.2, 4.6.3.2; ECSS 6.3a |
| RT-SU-02 | A command candidate at a message position on the bus of the message in progress shall be handled as a word of that message (sections 2.3 and 2.4): at a data word position a contiguous one is a message error (RT-DV-01) and one that is not contiguous ends the message as too short and is then evaluated as a command (RT-DV-02); at the position of the RT to RT transmit command or of the status word of the other terminal, a valid command shall supersede the message (RT-DV-05). | MIL 4.4.3.2 |
| RT-SU-03 | When valid commands of both buses are reported in the same clock cycle, the RT shall process the command of bus A and ignore the command of bus B. | MIL 4.6.3.2 |
| RT-SU-04 | The RT shall transmit only on the bus of the command it answers, and never on both buses at the same time. | MIL 4.6.3.1, 4.2 |
| RT-SU-05 | Own words (Rx_Own = '1') shall never be command candidates or words of a message. |
MIL 4.6.3 |
2.6 Timing¶
| ID | Requirement | Clauses |
|---|---|---|
| RT-TM-01 | The RT shall present its status word so that the mid-sync crossing of the status word at the ports comes Cfg_RespTime clock cycles (+/- 1) after the reference crossing of the last word at the ports. Cfg_RespTime shall be effective from rtRespMin (architecture section 8) to 12.0 us; a smaller value shall be taken as rtRespMin and a larger one as 12.0 us. |
MIL 4.3.3.8 |
| RT-TM-02 | The status word and the data words of a response shall be contiguous. | MIL 4.3.3.6.2, 4.3.3.6.5 |
| RT-TM-03 | The RT shall accept a new valid command at any time after a message has ended, including the cycle after its last word was sent or its status word was suppressed. | MIL 4.4.3.2 |
| RT-TM-04 | The indications of RT-IF-07 for mode codes 1, 3 and 17 shall come in the cycle in which the RT presents the status word, or would present it for a broadcast command: Cfg_RespTime - 3H - 2 clock cycles (+/- 1) after the reference crossing of the mode command (mode codes 1, 3) or of its data word (mode code 17). The indication of mode code 8 shall come in the first clock cycle after the end of the status word at the ports, or in the presentation cycle for a broadcast command. |
MIL 4.3.3.5.1.7.2, 4.3.3.5.1.7.12; ECSS 8.2.2.2b, c, 8.3.1.2a, 8.3.2.2a |
2.7 Illegal commands¶
| ID | Requirement | Clauses |
|---|---|---|
| RT-IL-01 | With illegal command detection enabled (Cfg_IllegalEn), a valid command shall be legal when the bit of its word count (or mode code) is '1' in the mask of the illegal command table for its T/R bit, its subaddress (subaddress 0 using the entry of 31) and its kind (own address or broadcast). With detection disabled, every command shall be legal unless RT-IL-02 applies. |
MIL 4.4.3.4 (I8) |
| RT-IL-02 | Independently of the table, these commands shall be illegal: a broadcast transmit command to subaddress 1 to 30, a broadcast mode command with T/R = '1' and a mode code 16 to 31, and a mode code 0 to 15 with T/R = '0'. | MIL 4.3.3.5.1.7, 4.3.3.6.7, 30.6 |
| RT-IL-03 | For an illegal command the RT shall receive the data words that the command specifies (validated as in section 2.4), then transmit its status word only, with the message error bit set, and not use the received information: no data stored or published, no mode code executed. For an illegal broadcast command it shall not transmit. | MIL 4.4.3.4 |
2.8 Mode codes¶
| ID | Requirement | Clauses |
|---|---|---|
| RT-MC-01 | Mode codes shall be executed only for legal mode commands, after the command (mode codes 0 to 15) or its data word (receive mode codes 16 to 31) has been validated, and also when they are broadcast. | MIL 4.3.3.5.1.7 |
| RT-MC-02 | Mode code 0 (dynamic bus control): status word with the dynamic bus control acceptance bit '0'. | MIL 4.3.3.5.1.7.1 (I7); ECSS 6.2.1.2.4b |
| RT-MC-03 | Mode code 1 (synchronize): status word and time synchronisation indication (Rt_TimeSync). |
MIL 4.3.3.5.1.7.2; ECSS 8.2.2.2b |
| RT-MC-04 | Mode code 2 (transmit status word): the status word of the last valid command before it, unchanged; the status word shall not be reset by mode code 2. | MIL 4.3.3.5.1.7.3, 30.4.2.1; ECSS 6.2.1.2.1b |
| RT-MC-05 | Mode code 3 (initiate self test): status word and self test request (Rt_SelfTestReq); the RT keeps answering normally. |
MIL 4.3.3.5.1.7.4, 30.4.4 (I6); ECSS 6.2.1.2.4b |
| RT-MC-06 | Mode codes 4 and 5 (transmitter shutdown and its override): status word, then shutdown (Sd_Set) or override (Sd_Clr) of the transmitter of the other bus than the bus of the command; never of the bus of the command. |
MIL 4.3.3.5.1.7.5, 4.3.3.5.1.7.6, 30.4.2.1 |
| RT-MC-07 | Mode codes 6 and 7 (inhibit terminal flag and its override): status word, then set or clear the terminal flag inhibit. | MIL 4.3.3.5.1.7.7, 4.3.3.5.1.7.8 |
| RT-MC-08 | Mode code 8 (reset remote terminal): status word, then reset the protocol state (status bits, last command word, terminal flag inhibit, transmitter shutdowns of both buses, frame number) and pulse Rt_ResetReq; until the reset is complete the RT shall not respond on either bus. |
MIL 4.3.3.5.1.7.9, 30.4.2.1, 30.4.3 (I4); ECSS 6.2.1.2.2b |
| RT-MC-09 | Mode code 16 (transmit vector word): status word and the vector word of the host (Cfg_Vector). |
MIL 4.3.3.5.1.7.11; ECSS 6.2.1.2.3b |
| RT-MC-10 | Mode code 17 (synchronize with data word): after the data word, status word and frame synchronisation indication (Rt_FrameSync) with the data word (Rt_SyncData). |
MIL 4.3.3.5.1.7.12; ECSS 8.3.1.2a, 8.3.2.2a |
| RT-MC-11 | Mode code 18 (transmit last command word): status word, unchanged, and the last command word before it; the status word shall not be reset and the last command word not updated by mode code 18. | MIL 4.3.3.5.1.7.13; ECSS 6.2.1.2.1b |
| RT-MC-12 | Mode code 19 (transmit BIT word): status word and the BIT word (RT-ST-07). | MIL 4.3.3.5.1.7.14; ECSS 6.2.1.2.4b |
| RT-MC-13 | Mode codes 20 and 21 (selected transmitter shutdown and its override): after the data word, status word; data word 0 selects bus A and 1 bus B; the selected transmitter shall be shut down or released unless it is the transmitter of the bus of the command; other data words shall change nothing. | MIL 4.3.3.5.1.7.15, 4.3.3.5.1.7.16 (I5); ECSS 6.2.1.2.4b |
| RT-MC-14 | Reserved mode codes 9 to 15 and 22 to 31, and mode codes 16 to 21 with the T/R bit that MIL 4.3.3.5.1.7 does not give them (16, 18, 19 with T/R = '0'; 17, 20, 21 with T/R = '1'), that the table makes legal: status word and no action; for T/R = '1' and a mode code 17 or 20 to 31 the data word 0x0000; for T/R = '0' the received data word only in the event record. | MIL 4.3.1, 4.3.3.5.1.7.10, 4.3.3.5.1.7.17 (I8) |
| RT-MC-15 | Mode codes shall not use subaddress buffers. | MIL 4.3.3.5.1.7 |
2.9 Status word, last command word, BIT word¶
| ID | Requirement | Clauses |
|---|---|---|
| RT-ST-01 | The status word shall carry the RT address (bits 15 to 11), the message error bit (10), the instrumentation bit '0' (9), the service request bit (8), three reserved bits '0' (7 to 5), the broadcast command received bit (4), the busy bit (3), the subsystem flag bit (2), the dynamic bus control acceptance bit '0' (1) and the terminal flag bit (0). | MIL 4.3.3.5.3, 4.3.3.5.3.1 to 4.3.3.5.3.12, 30.5.2; ECSS 6.2.1.1a, 6.2.1.2.5a |
| RT-ST-02 | After every valid command except mode codes 2 and 18 the message error and broadcast command received bits shall be cleared, and the service request, busy and subsystem flag bits shall be taken from Cfg_ServiceReq, Cfg_Busy and Cfg_SubsysFlag. |
MIL 4.3.3.5.4 (I10) |
| RT-ST-03 | The terminal flag bit shall be '1' while a terminal flag condition is present (RT-ST-08, or Cfg_TermFlag) and the terminal flag is not inhibited (mode codes 6, 7). |
MIL 4.3.3.5.3.11; ECSS 6.2.1.2.5a.10 |
| RT-ST-04 | The broadcast command received bit shall be set after a valid broadcast message (RT-MF-10). | MIL 4.3.3.5.3.7 |
| RT-ST-05 | With Cfg_Busy = '1' a transmit command to a subaddress shall be answered with the status word only, and the data of a receive command to a subaddress shall be received but not published; mode commands shall be executed. |
MIL 4.3.3.5.3.8, 30.5.3 (I9) |
| RT-ST-06 | The last command word shall be updated with every valid command except mode code 18. | MIL 4.3.3.5.1.7.13 |
| RT-ST-07 | The BIT word shall hold the latched fault indications of the RT (architecture section 3.4), cleared only by the host (Cfg_BitClr); mode codes 2 and 18 shall not change it. |
MIL 4.3.3.5.1.7.14 |
| RT-ST-08 | A terminal flag condition shall be present while a bit of the lower byte of the BIT word is set. | MIL 4.3.3.5.3.11 |
| RT-ST-09 | The status word shall be valid at all times, from the end of the reset on. | MIL 30.5.1 |
2.10 Buffers¶
| ID | Requirement | Clauses |
|---|---|---|
| RT-BF-01 | For a receive command to subaddress 1 to 30 the RT shall write the data words into the buffer of that subaddress that is not published, and after a valid message, when its status word has been sent (a broadcast message: in its presentation cycle), publish it: read the message count, write the receive status word (published buffer, word count, broadcast flag), then write the count + 1 (RT-FT-06 when the count read has a double error). An invalid, illegal, superseded or busy message shall change neither. | MIL 4.4.3.5, 4.4.3.6 (D9); ECSS 8.5.2a |
| RT-BF-02 | For a transmit command to subaddress 1 to 30 the RT shall read the control word of the subaddress when it validates the command and transmit from the transmit buffer selected there. It shall indicate the subaddress as in use (Stat_TxInUse, Stat_TxInUseSa) from the start of the lookup of the command, before the control word is read, with the buffer pending (Stat_TxInUsePend) until the control word has been read and then the buffer (Stat_TxInUseBuf), until the last data word has been read; a command that turns out illegal or with a double error ends the indication. After the last data word is sent it shall publish the message as in RT-BF-01 with the transmit status word (buffer, word count). |
(D9); ECSS 8.6.2.2e |
| RT-BF-03 | With data wrap-around enabled (Cfg_WrapEn), a transmit command to subaddress 30 shall transmit the words of the published receive buffer of subaddress 30. |
MIL 30.7; ECSS 6.4a to d, 8.7.4a, b |
| RT-BF-04 | The RT shall write only data words of receive buffers, the receive and transmit status words, the message counts and event records; it shall never write control words, tables or transmit buffers. | (D9) |
2.11 Event records¶
| ID | Requirement | Clauses |
|---|---|---|
| RT-EV-01 | The RT shall write one event record per message whose subaddress (mode commands: subaddress 31 of its T/R bit) has event logging enabled in its control word, and per message that ends with an error when Cfg_LogErrors = '1'. |
(D10) |
| RT-EV-02 | The record shall hold the command word, the status word (sent or suppressed), the bus, the broadcast flag, the error code, the word count transferred, the buffer, the data word of a mode command, the transmit command of an RT to RT transfer and the time tag of the command. | (D10); ECSS 7.1.1a, 7.1.2a, 7.2.1a |
| RT-EV-03 | All words of a record shall be written before Log_Push; the push shall request an interrupt when the control word enables it or the message ended with an error. |
(D10) |
2.12 Address input¶
| ID | Requirement | Clauses |
|---|---|---|
| RT-AD-01 | The straps shall be synchronised by olo_intf_sync with SyncTmr_g = true. |
MIL 30.3 |
| RT-AD-02 | At the end of the reset and on Cfg_AddrCheck the RT shall take the address and validate it: the six signals shall have odd parity (an odd number of straps) and the address shall not be 31. The validated address and its validity shall be kept until the next validation. |
MIL 30.3 (I12); ECSS 5.5.2a, c |
| RT-AD-03 | With an invalid address the RT shall not respond to any command, and report the condition (Stat_AddrValid, Stat_AddrErr). |
MIL 30.3 |
2.13 ECSS services¶
| ID | Requirement | Clauses |
|---|---|---|
| RT-SV-01 | With the time service enabled (Cfg_TimeEn), words 0 to 4 of a transmit message of subaddress 29 shall be words 0 to 4 of the published receive buffer of subaddress 29, and words at and beyond its word count 0x0000; words 5 and later shall come from the transmit buffer. |
ECSS 6.4a to d, 8.2.1.2a to d (I13) |
| RT-SV-02 | A valid receive message to subaddress 29 (also broadcast) shall deliver the time message to the host: its event record with interrupt when enabled in the control word. | ECSS 7.1.1a, 8.2.1.2e |
| RT-SV-03 | A valid mode code 1 (time synchronisation) and a valid mode code 17 (frame synchronisation) shall deliver the synchronisation to the host: indication (RT-IF-07), and event record with interrupt when enabled. | ECSS 7.1.2a, 7.2.1a, 8.2.2.2b, c, 8.3.1.2a, 8.3.2.2a |
| RT-SV-04 | A valid mode code 17 shall store bits 7 to 0 of its data word as the frame number. With the frame service enabled (Cfg_FrameEn), word 1 of a transmit message of subaddress 1 shall be the frame number (bits 15 to 8 '0'). |
MIL 4.3.1; ECSS 8.3.1.2b, 8.3.2.2b, Table 8-2 (I3) |
| RT-SV-05 | The RT shall keep the RT health word: the host sets bits (Cfg_HealthSet); with the health service enabled (Cfg_HealthEn), a valid receive message to subaddress 1 with at least one data word clears the bits that are '1' in its word 0; no other event clears a bit. With the health service enabled (Cfg_HealthEn), word 0 of a transmit message of subaddress 1 shall be the health word. Bit n of ECSS Table 8-8 is bit 15 - n. |
ECSS 6.4a to d, 8.7.1b, 8.7.2a to d, 8.7.3a, b, f, g (I3) |
| RT-SV-06 | Word 1 of a valid receive message to subaddress 1 (reset services) shall reach the host through the published buffer and the event record of subaddress 1. | ECSS 8.7.3c, h (I14) |
2.14 Fault handling and reset¶
| ID | Requirement | Clauses |
|---|---|---|
| RT-FT-01 | A double error in a control word or table entry read for a command shall make the RT answer with its status word only, with the message error bit set, without storing or sending data, and with the error code "memory" in the event record; it shall set the memory bit of the BIT word. | (D14) |
| RT-FT-02 | A double error in a word to be transmitted shall end the transmission before that word, and set the memory bit of the BIT word. | (D14) |
| RT-FT-03 | Every state machine shall return to its idle state from an illegal state, and the reset shall bring every register to its reset value (architecture section 3). | (D15, D16) |
| RT-FT-04 | When the RT is disabled (Cfg_RtEn = '0') or its address becomes invalid during a message, the message shall end at once (transmission aborted, nothing published). |
MIL 30.3 |
| RT-FT-05 | A double error in the receive status word read for data word 0 of a receive message (the buffer that is not published unknown) shall make the RT write none of the data words of the message and not publish it; it shall set the message error bit, the memory bit of the BIT word and the error code "memory". | (D9, D14) |
| RT-FT-06 | A double error in the message count read for a publication shall cancel the publication: no status word and no count written, so that every publication changes the count for sure (D9). The RT shall set the memory bit of the BIT word and, unless a new command has come since, the message error bit, and report the error code "not published" in the event record of the message, which is written also for a subaddress without logging when Cfg_LogErrors = '1'. |
(D9, D14) |
2.15 Configuration¶
| ID | Requirement | Clauses |
|---|---|---|
| RT-CF-01 | ClkFreq_g and SyncStages_g shall be those of the o1553_codec it is connected to; the RT shall stop the elaboration for a ClkFreq_g that the codec does not accept. |
none |
3. Partner behaviour¶
3.1 Bus controller and other terminals¶
| Property | Behaviour | Handling |
|---|---|---|
| Message formats | Only the formats of MIL 4.3.3.6; broadcast transmit commands to a subaddress are not sent (MIL 30.6); the ECSS profile uses no RT to RT transfers (ECSS 6.2.2a.2) | All formats supported; other combinations illegal (RT-IL-02) |
| Intermessage gap | At least 4.0 us from the last word of a message to the next command (MIL 4.3.3.7) | A new command is accepted at any time after a message (RT-TM-03) |
| No-response time-out | At least 14.0 us (MIL 4.3.3.9; ECSS 6.2.2a.1: 14 to 22 us); after it the BC may send a new command on either bus | Superseding (RT-SU-01) |
| Superseding | A new command can come on the other bus at any time, also during the response of the RT (MIL 4.6.3.2) | RT-SU-01 |
| Other RT in an RT to RT transfer | Answers the transmit command 4.0 to 12.0 us after it with its status word and the data words, contiguous | RT-MF-03, RT-DV-04 |
| Mode codes | The ECSS profile sends mode commands on subaddress 31 (ECSS 6.2.1.2.1a) and the synchronisation mode commands in broadcast (ECSS 8.2.2.1b, 8.3.1.1h) | Subaddress 0 and 31 equal (RT-CV-02) |
3.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 |
RT-DV-01, RT-TM-01 |
| Own words | Words whose mid-sync crossing lies in the own transmission window carry the own flag | RT-SU-05 |
| Line activity | Rx_Active per bus: '1' from the start of activity to 0.4 us of zero line |
RT-DV-03 |
| 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; a missing word ends the transmission (underrun) |
RT-TM-01, RT-TM-02, RT-FT-02 |
3.3 Host and buffer memory¶
| Property | Behaviour | Handling |
|---|---|---|
| Memory port | A request of the RT waits at most for one host access: it is accepted after at most MemWait cycles and a read returns its data MemLatency_g cycles after its acceptance (architecture sections 6.2 and 8) |
Included in rtRespMin |
| Control words and tables | Written only by the host, following the sequences of the user guide (D9) | Read only (RT-BF-04) |
| Transmit buffers | The host writes only a buffer that is neither selected nor in use (D9) | RT-BF-02 |
| Receive buffers | The host reads with the sequence lock of D9 | Publication order of RT-BF-01 |
| Memory content | Initialised before Mem_InitDone (D11), with the illegal command tables of I8 |
RT-CV-01 |
4. Error conditions¶
| Condition | Detection | Response | Error code |
|---|---|---|---|
| Invalid data word (sync, Manchester, bit count, parity) | Word event with an error at a data word position | Message error (RT-DV-06) | invalid word |
| Data word with command sync | Contiguous command candidate at a data word position | Message error; the word and the words contiguous to it are no commands (RT-DV-06) | sync type |
| Data word not contiguous | Rx_Contig = '0' at a data word position |
Message error | gap |
| Too few data words | No word within 21.0 us, or a command candidate that is not contiguous at a data word position | Message error; such a command candidate is then evaluated as a command | word count low |
| Too many data words | Line active when the status word is due | Message error | word count high |
| RT to RT data too late or missing | First data word 57.0 us after the receive command, or none within 21.0 us of the status word of the other terminal | Message error | RT to RT time-out |
| Wrong transmit command or status word in an RT to RT transfer | Command candidate at the position, not as expected | Message error | RT to RT format |
| Illegal command | Table or fixed rule | Status word with message error bit (RT-IL-03) | illegal |
| Valid command during a message | RT-SU-01 | Message discarded, new command processed | superseded |
| Double error in a control word, table entry or data word | ECC flag of the memory response | RT-FT-01, RT-FT-02 | memory |
| Double error in the receive status word read at data word 0 | ECC flag of the memory response | Nothing written, not published (RT-FT-05) | memory |
| Double error in the message count read of a publication | ECC flag of the memory response | Not published (RT-FT-06) | not published |
| Busy | Cfg_Busy |
RT-ST-05 | busy |
| Transmission not completed (underrun not caused by a double error) | Tx_Result |
BIT word bit | transmit |
| RT disabled or address invalid during a message | RT-FT-04 | Message ended | disabled |
5. 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, for rxLatency |
MemLatency_g |
3 | 1 to 8 | Clock cycles from the acceptance of a memory read to its response, for rtRespMin |
6. Interpretation of the standard¶
The interpretations I1 to I14 of the architecture apply. In addition:
| Clause | Interpretation |
|---|---|
| MIL 4.4.3.2, 4.6.3.2 | A valid command supersedes the message in progress on either bus. Where the message expects a data word on its bus, a command-sync word is judged by its contiguity: a contiguous one is a word of the message and a message error; one that is not contiguous shows that the bus controller ended the message early, so the message is too short (MIL 4.4.3.6) and the word is a new command (MIL 4.4.3.2). The rule does not rely on the 21.0 us word timer: a command after the gap of 4.0 us is reported 22 us after the last data word, after the timer, but one after a shorter gap (from 2.4 us, no longer contiguous) is reported before it. After a message error the rest of the contiguous word sequence is not evaluated for commands. On the same bus no word event can come between the last word of a message and the status word, since an event comes at the end of a word, more than 20 us after the reference crossing of the word before |
| MIL 4.4.3.6 (word count too high) | A data word beyond the word count is contiguous: its sync starts 0.5 us after the reference crossing of the last data word, so the line is still active when the status word is due (at least 2.5 us after it). The RT checks the line activity of the codec at that cycle instead of waiting for the word event, which comes only 20 us later |
| MIL 30.9 | The 57.0 us are measured to the mid-sync crossing of the first data word: the time from the event of the receive command to the event of the status word of the other terminal, plus the gap of the first data word that the codec reports. The RT also checks the transmit command and the address of the status word of the other terminal (the recommendation of 30.9) |
| MIL 4.4.3.4, 4.3.3.5.1.7 | Combinations that no message format defines (broadcast transmit to a subaddress, broadcast mode codes that would need a transmitted data word, mode codes 0 to 15 with T/R = '0') are illegal whatever the table says, so that no combination of the command fields leads to an undefined transmission (MIL 4.4.3.1) |
| MIL 4.3.3.5.1.7.10, 4.3.3.5.1.7.17 | A reserved mode code is illegal in the tables after the reset (I8). The host may make it legal; the RT then answers it as a mode code without or with a data word, sends 0x0000 as a data word and reports a received data word in the event record |
| ECSS 8.2.1.2a to c | The RT does not write the transmit buffer of subaddress 29: it reads words 0 to 4 from the published receive buffer of subaddress 29 when it transmits them, so that every memory word keeps one writer (D9) and the copy is current from the end of the time message on. The host writes words 5 to 9 into its transmit buffers |
| ECSS 8.3.1.2b, 8.7.1b | Likewise words 0 (health word) and 1 (frame number) of subaddress 1 transmit come from registers of the RT when the services are enabled |
| MIL 4.3.3.5.1.7.9, 30.4.3; ECSS 6.2.1.2.2b | The reset of mode code 8 takes a few clock cycles after the status word; the RT is silent during that time. A longer silent period while the subsystem resets is made by the host, which disables the RT (I4) |