Skip to content

Open1553 User Guide

This guide describes how to integrate the Open1553 core o1553_core into an FPGA design and how to program it: sources, generics, clock and reset, interfaces, the register and memory maps, the programming sequences of the host for the remote terminal, the bus controller and the bus monitor, the protection scope, performance and timing, the integration constraints and the conformance statement. Release 0.3.1 is a MIL-STD-1553B (Notice 2) terminal that runs as the remote terminal (RT) or, with the generic IncludeBc_g, as the bus controller (BC), one role at a time (D20), with the RT and the BC functions of the ECSS-E-ST-50-13C services. With the generic IncludeBm_g it also contains a bus monitor (BM), which records the traffic of both buses alone or beside the RT, never beside the BC (D27). The data block transfer engines are a later phase (roadmap). The architecture is described in architecture.md, the registers in the generated register map. Clause references: MIL = MIL-STD-1553B, ECSS = ECSS-E-ST-50-13C; D and I numbers are the decisions and interpretations of the architecture (section 6).

1. Sources

Library Sources Order
olo Open Logic areas base, axi, intf and ft of the submodule open-logic/ open-logic/compile_order.txt
open1553 hdl/<module>/src/*.vhd of every module of component_list.txt compile_order.txt: the modules in the order of component_list.txt, within a module in dependency order

All sources are VHDL-2008 and contain no vendor primitive. The top level is o1553_core. The Open Logic entities in use are olo_ft_ram_sp_scrub, olo_ft_ram_sdp (the message buffers of the BM), olo_ft_ecc_monitor, olo_axi_lite_slave, olo_base_arb_prio, olo_base_reset_gen, olo_base_strobe_gen and olo_intf_sync (architecture, section 8).

2. Generics

Generic Type Default Range Description
ClkFreq_g real none 16.0e6 to 400.0e6, integer multiple of 2.0e6 Frequency of Clk in Hz (section 3); elaboration stops otherwise with a message that names the rule
ScrubPeriod_g real 0.0 0.0, or at least 1.0e-3 Scrub pass period of the buffer memory in seconds; 0.0 scrubs in every cycle without a memory access. Elaboration stops for a value below 1 ms other than 0.0
SyncStages_g positive 2 2 to 4 Synchroniser stages of the receiver inputs and the address straps
RamRdLatency_g positive 1 1 to 4 Read latency of the RAM of the buffer memory, for the timing of the target technology
EccPipeline_g natural 1 0 to 2 Pipeline stages of the ECC decoder of the buffer memory
IncludeBc_g boolean false false, true The core includes the bus controller (section 6.10). With false the core is an RT only: the BC registers have no effect, BC_STATUS and BC_FRAME_COUNT read 0, Bc_FrameSync and Bc_FrameNum are '0'
AllowOpenProfile_g boolean false false, true The open profile of the BC can be selected (section 6.13); with false no value of BC_CONTROL.PROFILE selects it
IncludeBm_g boolean false false, true The core includes the bus monitor (section 6.15). With false the BM registers have no effect: BM_STATUS, BM_WRITE_INDEX and BM_LOST read 0, no BM flag is set, BM_CONTROL.EN refuses no start of the BC, and ErrInj_BmBitFlip and ErrInj_BmValid have no effect

The core derives the memory latency MemLatency = RamRdLatency_g + EccPipeline_g + 1 (2 to 7 cycles) and passes it to the RT, the BC and the BM. SyncStages_g and MemLatency lengthen the shortest response time only at low clock frequencies (section 8.1). CORE_STATUS.BC_INCLUDED, CORE_STATUS.OPEN_PROFILE and CORE_STATUS.BM_INCLUDED show the three boolean generics to the software. Every boundary of the ranges is simulated and synthesised (core verification report, section 5).

3. Clock and reset

All of the core runs in Clk; there is no clock domain crossing inside the core. ClkFreq_g is the frequency of Clk and an integer multiple of 2 MHz from 16 MHz to 400 MHz (D1): a half bit (0.5 us) is then an exact number of clock cycles, so the encoder adds no timing error to the bus signal and the microsecond tick of the time tag is exact. Common system clocks such as 125 MHz or 156.25 MHz are not multiples of 2 MHz; generate a clock such as 100 MHz or 150 MHz for the core with a PLL. The bit rate on the bus has the accuracy and stability of Clk: MIL 4.3.3.3 asks for 1.0 Mb/s with a combined accuracy and long-term stability of +/- 0.1 % and a short-term stability (over 1 s) of 0.01 %, so the oscillator of Clk needs at least these values.

Rst is an asynchronous high-active reset input. The core synchronises it with olo_base_reset_gen (SyncTmr_g = true) and resets all of its modules with the synchronised reset. After the reset the core initialises the buffer memory (8192 cycles, section 6.1). A host on another clock connects through an AXI4-Lite clock converter.

4. Interfaces

Interface Ports Function
Clock and reset Clk, Rst Section 3
Host port S_AxiLite_* AXI4-Lite slave, 16-bit byte address, 32-bit data: registers and buffer memory (section 4.1)
Interrupt Irq Level, high-active (section 6.6)
Transceivers Bus_TxP, Bus_TxN, Bus_TxInh, Bus_RxP, Bus_RxN, Bus_RxEn, 2 bits each Index 0 bus A (nominal), index 1 bus B (redundant) (section 4.3)
Address straps Rt_Addr(4:0), Rt_AddrParity RT address and its odd parity, asynchronous (section 4.4)
Indications Rt_TimeSync, Rt_FrameSync, Rt_SyncData(15:0), Rt_ResetReq, Rt_SelfTestReq One-cycle pulses of the mode commands (section 4.5)
Error injection ErrInj_BitFlip(21:0), ErrInj_Valid, ErrInj_RoleFlip, ErrInj_BmBitFlip(43:0), ErrInj_BmValid(1:0) Error injection into the buffer memory, into the role state of the BC and into the message buffers of the BM; default no injection (section 4.6)
Tick and frame start of the BC Bc_TimeTick, Bc_FrameSync, Bc_FrameNum(7:0) Tick of the on-board time master, asynchronous; frame start pulse and frame number (section 4.7)

4.1 Host port

S_AxiLite_* is an AXI4-Lite slave (olo_axi_lite_slave). Byte addresses 0x0000 to 0x7FFF hold the 32-bit registers; addresses without a register read 0 and ignore writes. Addresses 0x8000 to 0xFFFF are the memory window: word w of the buffer memory at 0x8000 + 4 x w, in bits 15 to 0 (bits 31 to 16 read 0 and are ignored on writes). Every access is answered with OKAY, except a read of a memory word with a double error, which is answered with SLVERR after the read time-out of 128 cycles (section 7).

The port serves one access at a time and, when a read and a write wait together, the read first. A master that issues reads continuously on its read channel can therefore delay its writes for as long as the reads continue; a processor that issues its accesses in program order is not affected. AXI4-Lite does not order a read against an earlier write on the other channel: a read that depends on a write waits for the write response. A write to the memory window needs the byte enables of bits 15 to 0; write whole 32-bit words.

4.2 Interrupt

Irq is '1' while an interrupt flag of IRQ_FLAGS is set whose bit in IRQ_ENABLE is set (section 6.6). It comes from a register.

4.3 Transceivers

The core drives and reads the logic signals of one transceiver per bus; the transceivers, the coupling transformers and the bus are outside the core.

Signal Contract at the core ports
Bus_TxP, Bus_TxN Positive and negative halves of the Manchester II signal; at most one of them is '1', both '0' drive no signal. They come from registers
Bus_TxInh '1' disables the transmitter; '1' while the bus is idle. The core never drives both buses at the same time
Bus_RxP, Bus_RxN Comparator outputs of the receiver: Bus_RxP = '1' while the line is above the positive threshold, Bus_RxN = '1' while it is below the negative threshold, both '0' on an idle line and within the threshold band. Asynchronous; pulses shorter than 50 ns are filtered
Bus_RxEn Receiver enable, '1' while the bus is enabled (CONTROL.BUS_EN)

Transceivers that pass the own transmission to their receiver outputs (an echo) are supported: the core marks a received word as an own word when its sync comes during its own transmission on that bus or up to 1.0 us after it (a loop delay of the transceiver up to 1.0 us), and never takes own words for commands or data. With such a transceiver the loopback monitor (CONTROL.MON_EN = '1', the reset value) compares every echo with the word sent and reports a missing or different echo in the BIT word. With a transceiver without an echo, clear CONTROL.MON_EN; otherwise every transmitted word is a loopback error.

Delays at point A. MIL-STD-1553B measures the response time and the time-outs at point A of the terminal, on the bus side of the transceiver (MIL 4.3.3.8). The core measures at its ports (D6, I11): from the reference crossing (the mid-bit zero crossing of the parity bit) of the last received word at Bus_RxP/Bus_RxN to the mid-sync zero crossing of the status word at Bus_TxP/Bus_TxN. At point A the receiver delay t_rx and the transmitter delay t_tx of the transceiver (datasheet values, typically a few hundred nanoseconds each) add to it:

response time at point A = RESP_TIME / ClkFreq_g + t_rx + t_tx

The core keeps RESP_TIME within rtRespMin (at least 4.0 us) and 12.0 us at its ports (section 8.1), so the 4.0 us minimum of MIL 4.3.3.8 holds at point A for every transceiver. Choose RESP_TIME so that RESP_TIME / ClkFreq_g + t_rx + t_tx is at most 12.0 us; the reset value (6.0 us at the ports) meets this with any transceiver delays up to 6.0 us. Time differences measured on one bus (contiguity of the words, the 21.0 us word timer, the 57.0 us of an RT to RT transfer) are not changed by the delays.

Delays at point A in the BC role. The BC measures its gap and its no-response time-out at the ports as well (I19), from the reference crossing of the last word to the mid-sync crossing of the next one. For a status word that answers a word of the BC, the delays shorten the time at point A:

no-response time-out at point A = BC_TIMEOUT / ClkFreq_g - t_rx - t_tx

MIL 4.3.3.9 asks for at least 14.0 us at point A and ECSS 6.2.2a for 14 to 22 us (18 to 30 us with one bus repeater). Choose BC_TIMEOUT so that the time-out at point A lies in that range; the reset value (18.0 us at the ports) meets 14 to 22 us with transceiver delays of up to 4.0 us together. The gap after a word of the BC is the same at point A as at the ports; after a received word it is longer at point A by t_rx + t_tx. BC_GAP (at least 4.0 us) therefore keeps the 4.0 us of MIL 4.3.3.7 at point A for every transceiver.

Delays at point A in the BM. The BM takes every word from the receiver ports and measures the gaps, the response times and its response window between two words that both come through the receiver, so t_rx cancels and the values are those on the bus. A status word of the core itself, beside the RT, reaches the receiver ports through the echo of the transceiver: its recorded response time is the response time at the ports plus the loop delay of the transceiver (TC-CORE-23), the response time at point A when the loop delay is t_tx + t_rx. Set BM_TIMEOUT to the time-out of the bus controller of the bus (I25). The cancellation of t_rx rests on design analysis: the benches drive the receiver ports directly.

The decoder accepts zero crossings within +/- 150 ns of their nominal intervals at the core ports (MIL 4.5.2.1.2.1, 4.5.2.2.2.1, with a bit rate of the far end within +/- 1 %); the transceiver and the bus must keep the signal within this tolerance.

4.4 Address straps

Rt_Addr(4:0) and Rt_AddrParity are the address straps of the terminal connector (ECSS 5.5.2): the six signals have odd parity (an odd number of them is '1'). The core synchronises them (olo_intf_sync, SyncTmr_g = true) and validates them at the end of the reset and when the host writes COMMAND.ADDR_CHECK. An address with even parity or the address 31 makes the RT silent on both buses and is shown in RT_ADDRESS (PARITY_ERR, ADDR_31), BIT word bit 6 and the interrupt flag BIT (D17, MIL 30.3).

4.5 Indications

Port Pulse at Timing (section 8.3)
Rt_TimeSync Mode code 1 (synchronize), also broadcast Presentation cycle of the status word
Rt_FrameSync, Rt_SyncData Mode code 17 (synchronize with data word), also broadcast; Rt_SyncData carries its data word Presentation cycle of the status word
Rt_SelfTestReq Mode code 3 (initiate self test) Presentation cycle of the status word
Rt_ResetReq Mode code 8 (reset remote terminal) First cycle after the end of the status word (broadcast: presentation cycle)

The same events set the interrupt flags TIME_SYNC, FRAME_SYNC, SELF_TEST and RESET_REQ, so the indication ports may stay open when the host serves the events by interrupt. They let a time slave or a subsystem reset act without software in the path (D19).

4.6 Error injection

ErrInj_BitFlip and ErrInj_Valid have the semantics of olo_ft_ram_sp_scrub: a one-cycle ErrInj_Valid latches the flip pattern (one bit per position of the 22-bit codeword of 16 data bits and 6 check bits, layout of olo_ft_pkg_ecc), and the next write of the buffer memory stores its codeword with these bits inverted. One bit gives a single error, two bits a double error. The next write can be a write of the RT or a write-back of the scrubber: to inject into a chosen word, clear CONTROL.SCRUB_EN, inject while the RT has no message, write the word through the memory window and set CONTROL.SCRUB_EN again. With the BC, the next write can also be a write of the BC: inject into a chosen word of the bus profile while the BC is inactive.

ErrInj_RoleFlip = '1' inverts the complement copy of the role state of the BC in that cycle (section 7). While the BC is active, it ends at once: its transmission stops within the word in progress, the flag BC_ROLE_ERR is set and the core returns to the RT role with the RT disabled (section 6.10). While the BC is inactive it stays inactive and the flag is set.

ErrInj_BmBitFlip and ErrInj_BmValid inject into the message buffers of the BM (olo_ft_ram_sdp, one per bus, section 7), with the same semantics per bus: bus b has the flip pattern in bits 22b + 21 to 22b and the strobe in bit b, and the next write into the message buffer of bus b stores its codeword with these bits inverted. The next write is the next word of a record that the BM assembles for that bus, so inject while the bus carries the words of the message under test (TC-CORE-26).

Leave the error injection ports unconnected (their defaults) in a flight design.

4.7 Tick and frame start of the BC

Port Contract at the core ports
Bc_TimeTick Tick of the on-board time master (TimeSynchronize.Submit, ECSS 7.1.2a), asynchronous, synchronised with olo_intf_sync (SyncTmr_g = true). A rising edge after at least two cycles of '0' is a tick, so pulses and pauses last at least two cycles of Clk. Used with BC_CONTROL.TIME_SYNC = 1 and TICK_SRC = 0, ignored otherwise; default '0'
Bc_FrameSync One-cycle pulse at every frame start of the BC, txLatency = 2 cycles before the sync of the command word of the frame's synchronization message starts at Bus_TxP/Bus_TxN (I16); the frame start, the mid-sync crossing of that command word, follows 3H + 2 cycles after the pulse
Bc_FrameNum(7:0) Frame number of the frame, valid with Bc_FrameSync and held until the next frame start

Bc_FrameSync and Bc_FrameNum are combinational outputs of the BC: register them before they leave the device or enter another clock domain. The flag BC_FRAME serves a host that takes the frame start by interrupt.

5. Registers and buffer memory

5.1 Register map

The registers are generated by tools/regmap.py from hdl/o1553_host/regs/o1553_regs.yml: the register map with every field, access type and reset value, the C header sw/o1553_regs.h with the addresses and field masks, and the VHDL package o1553_regs_pkg. ID reads 0x15530003 (identification 0x1553, register map version 0.3). The registers of the BC (BC_CONTROL at 0x0064 to BC_FRAME_COUNT at 0x0098) and the flags BC_FRAME to BC_ROLE_ERR of IRQ_FLAGS exist in every configuration; in a core without the BC (CORE_STATUS.BC_INCLUDED = 0) they have no effect, BC_STATUS and BC_FRAME_COUNT read 0 and no BC flag is set. The same holds for the registers of the BM (BM_CONTROL at 0x009C to BM_LOST at 0x00C4) and the flags BM_RECORD, BM_OVERFLOW and BM_LEVEL (bits 20 to 22) in a core without the BM (CORE_STATUS.BM_INCLUDED = 0): BM_STATUS, BM_WRITE_INDEX and BM_LOST read 0 and no BM flag is set. Register map 0.3 keeps every address and field of map 0.2.

5.2 Buffer memory map

The buffer memory holds 8192 words of 16 bits. Host byte address = 0x8000 + 4 x word address. The formats of the descriptors, the table entries, the event records and the error codes of the RT are in the o1553_rt architecture, section 4, those of the bus profile of the BC in the o1553_bc architecture, section 4, and in section 6.11, those of the records and the filter table of the BM in the o1553_bm architecture, section 4, and in sections 6.16 and 6.17.

Region Word addresses Host byte addresses Content
Subaddress descriptors 0x0000 to 0x00FF 0x8000 to 0x83FC 4 words at T/R x 128 + SA x 4: word 0 control word (host), word 1 status word (RT), word 2 message count (RT), word 3 reserved
Illegal command tables 0x0100 to 0x01FF 0x8400 to 0x87FC 4 words at 0x0100 + T/R x 128 + SA x 4: masks of the legal word counts (mode codes) for own commands (words 0, 1) and broadcast commands (words 2, 3)
Reserved 0x0200 to 0x07FF 0x8800 to 0x9FFC Not used by the RT, 0 after the initialisation: the place for the bus profile of the BC in a core that runs as RT (section 6.10) and for the filter table and the ring of the BM beside the RT (section 6.16)
Event log 0x0800 to 0x0FFF 0xA000 to 0xBFFC 256 records of 8 words at 0x0800 + index x 8
Subaddress buffers 0x1000 to 0x1FFF 0xC000 to 0xFFFC Two buffers of 32 words per T/R bit and subaddress: 0x1000 + T/R x 2048 + SA x 64 + buffer x 32 + word

T/R is 0 for receive and 1 for transmit. Subaddresses 0 and 31 (mode commands) have no buffers: the table entry and the control word of subaddress 31 of each T/R bit serve the mode codes of both.

Descriptor word Bits
0: control word (host) 0: selected transmit buffer (transmit descriptors); 1: event record enable; 2: interrupt enable
1: status word (RT) 0: buffer (receive: published; transmit: last used); 6 to 1: word count of the last valid message (1 to 32); 7: broadcast
2: message count (RT) Valid messages, modulo 65536; 0 = none yet
Record word Content
0, 1 Command word; status word (as sent or as it would have been sent)
2 3 to 0: error code (0 none); 4: bus ('1' = B); 5: broadcast; 6: status word sent (the status word went onto the bus: its outputs were driven from the start of the transmission to the end of the message, '0' when the transmitter of the bus was shut down); 7: RT to RT transfer; 8: buffer; 14 to 9: data words transferred; 15: interrupt requested
3, 4 Data word of a mode command; transmit command of an RT to RT transfer
5, 6 Time tag of the command, low and high half (microseconds, TIME_TAG)

The host writes only the control words, the illegal command tables and the transmit buffers; the RT writes only the status words, the message counts, the receive buffers and the event records (D9). Every word has one writer.

In the BC role only the event log keeps its region; the BC uses the rest of the memory as its bus profile points to it (D21, section 6.11). The host writes the frame table, the message lists, words 0 to 7 of the descriptors and the transmit buffers; the BC writes words 8 to 15 of the descriptors, the receive buffers, the status table and the event records.

The BM writes only the words of its ring and reads only its filter table; the host places both (section 6.16).

6. Programming sequences

6.1 Start-up and initialisation

  1. Release Rst. The core initialises the buffer memory in 8192 cycles without other traffic (82 us at 100 MHz): the illegal command tables with their defaults (section 6.2), every other word with 0. Wait for CORE_STATUS.INIT_DONE = 1; host writes to the memory window before may be overwritten by the initialisation.
  2. Read ID (0x15530003).
  3. Read RT_ADDRESS: VALID = 1 with the address in ADDR. With PARITY_ERR or ADDR_31 the straps are wrong; after they are corrected, COMMAND.ADDR_CHECK validates them again.
  4. Read CORE_STATUS: BC_INCLUDED = 1 in a core with the BC, OPEN_PROFILE = 1 when the open profile of the BC can be selected, BM_INCLUDED = 1 in a core with the BM. Software that uses the BC or the BM checks BC_INCLUDED or BM_INCLUDED before it accesses their registers.

From INIT_DONE on, the RT answers every legal command with the reset configuration: RT and broadcast enabled, both buses enabled, response time 6.0 us at the ports, the default tables, the ECSS services enabled, all transmit buffers 0x0000 and buffer 0 selected (status and data valid at all times, MIL 30.5.1). To change the configuration without answering meanwhile, clear CONTROL.RT_EN first and set it again at the end of section 6.2.

6.2 Configuration of the RT

  1. RESP_TIME: the response time in clock cycles at the ports (section 4.3, delays at point A). Values below rtRespMin act as rtRespMin, values above 12.0 us as 12.0 us.
  2. CONTROL: BUS_EN (one bit per bus; a non-redundant bus clears the bit of the unused bus), MON_EN (cleared for a transceiver without an echo), BCST_EN, ILLEGAL_EN, LOG_ERRORS (a record for every message that ends with an error) and the ECSS services WRAP_EN, TIME_EN, FRAME_EN, HEALTH_EN (section 6.9). A mission that does not use the ECSS services clears them and uses subaddresses 1, 29 and 30 like the others.
  3. Illegal command tables, if the defaults do not fit: a set bit w in an entry makes word count (mode code) w legal, w = 0 standing for 32 words. The defaults make every subaddress 1 to 30 legal for every word count, broadcast receive included, except subaddress 8 (ECSS 6.4d); the mode codes of MIL Table I with their T/R bit and broadcast column legal, the reserved mode codes illegal (o1553_host specification, section 6). Broadcast transmit commands and the combinations no message format defines are illegal whatever the table says.
  4. Control words of the subaddresses (word 0 of each descriptor): bit 1 enables the event record of every message to the subaddress, bit 2 its interrupt. The control word of subaddress 31 (receive descriptor at word 0x007C, transmit at 0x00FC) does this for the mode codes of that T/R bit.
  5. Transmit data: section 6.4 for each transmit subaddress.
  6. VECTOR, TERM_COND (service request, busy, subsystem flag, terminal flag of the host) and BIT.HOST as the application defines them.
  7. IRQ_ENABLE for the interrupt flags the host serves (section 6.6), after writing 1 to the flags in IRQ_FLAGS that are already set.
  8. CONTROL.RT_EN = 1 if it was cleared.

6.3 Receive data: sequence lock

The RT writes the data words of a receive message into the buffer of the subaddress that is not published and, when the message is valid, publishes that buffer: it writes the status word (published buffer, word count) and then increments the message count. An invalid, illegal, superseded or busy message publishes nothing. The host reads a subaddress sa with this sequence (receive descriptor at word sa x 4, buffer b at word 0x1000 + sa x 64 + b x 32):

  1. Read the message count C1 (descriptor word 2). C1 = 0: no message yet.
  2. Read the status word (descriptor word 1): published buffer b (bit 0), word count n (bits 6 to 1), broadcast (bit 7).
  3. Read the n data words of buffer b.
  4. Read the message count C2. If C2 differs from C1, repeat from step 1; otherwise the words of step 3 are one complete valid message.

The sequence may be interrupted at any point; it stays correct, since the RT writes only into the buffer that is not published, so an unchanged count means that the data of step 3 was not touched. The count wraps after 65536 messages, at least 2.8 s at the shortest messages to one subaddress, so a sequence has to complete well within that time. The event record of the message (section 6.5) carries the buffer and the word count too.

6.4 Transmit data: buffer switch

The RT reads the control word of a transmit subaddress when it validates a transmit command and sends the selected buffer of that moment until the end of the message. TX_IN_USE shows the subaddress (SA) while a transmit command is looked up, with PENDING = 1 until the RT has read the control word, then the buffer (BUF) until the last data word has been read. The host updates subaddress sa (transmit descriptor at word 0x0080 + sa x 4, buffer b at word 0x1800 + sa x 64 + b x 32) with this sequence:

  1. Read the control word (descriptor word 0): selected buffer s (bit 0). Read TX_IN_USE.
  2. The free buffer is f = not s. If TX_IN_USE shows IN_USE = 1 and SA = sa with PENDING = 1 or BUF = f, wait and repeat from step 1.
  3. Write the data words into buffer f.
  4. Write the control word with bit 0 = f and the enables unchanged.

From the next transmit command on, the RT sends buffer f; a command that has latched s finishes with s. Every transmitted message carries the words of one buffer as the host completed it (ECSS 8.5.2a, 8.6.2.2e). The words that the ECSS services substitute (section 6.9) come from the RT instead of the buffer.

6.5 Event log

The RT writes one record of 8 words per message to a subaddress whose control word enables records, and per message that ends with an error while CONTROL.LOG_ERRORS = 1. LOG_WR_IDX is the index of the next record; it advances by one, modulo 256, when a record is complete. The host keeps its own index in LOG_RD_IDX:

  1. Read LOG_WR_IDX = w.
  2. While LOG_RD_IDX differs from w: read the 8 words of the record at word 0x0800 + LOG_RD_IDX x 8, then write LOG_RD_IDX + 1 (modulo 256).

The error code in record word 2 gives the reason of a message that ended with an error (o1553_rt architecture, section 4.5): invalid data word, data word with command sync, data word not contiguous, word count too low or too high, RT to RT time-out or format, illegal command, superseded, memory double error, busy, transmission not completed, RT disabled or address invalid, not published. The record with LOG_WR_IDX + 1 = LOG_RD_IDX fills the ring and sets LOG_OVF; every further record overwrites the oldest unread one. Serve the log before 255 records are unread; after LOG_OVF, set LOG_RD_IDX to LOG_WR_IDX to restart, or read the records from LOG_WR_IDX on in the order of their time tags.

In the BC role the BC writes its records into the same log (section 6.14). Record word 7 bit 15 is 1 in a record of the BC and 0 in a record of the RT.

6.6 Interrupts

Flag Set by
RECORD A record that requests an interrupt: of the RT when the control word enables it or the message ended with an error, of the BC when the control word of the descriptor enables it (section 6.14)
LOG_OVF A record that fills the event log (section 6.5)
TIME_SYNC, FRAME_SYNC, SELF_TEST, RESET_REQ Mode codes 1, 17, 3 and 8 (section 4.5)
BIT A bit of BIT.FAULTS changing from 0 to 1 (section 6.7)
ECC_SEC, ECC_DED A corrected single error, a detected double error in the buffer memory (section 7)
SCRUB_OVR A scrub pass that overran ScrubPeriod_g
BC_FRAME A frame start of the BC (with Bc_FrameSync)
BC_BUSY A status word with the busy bit in a message of the BC
BC_NOT_SENT A message of the BC that was not sent: frame guard, refused by the profile check, line busy, transmitter not available, double error (section 6.13)
BC_LATE A frame, a time synchronization message or a timed slot that started late (section 6.12)
BC_TICK_MISSING, BC_TICK_EARLY No tick within BC_TICK_TIMEOUT of the previous one; a tick before frame N-1 has started or before the time synchronization message of the previous tick (section 6.12)
BC_LIST_END A message list without a last flag that ended after 256 slots
BC_STOPPED The BC stopped after BC_COMMAND.STOP or after a remote terminal accepted dynamic bus control (section 6.10)
BC_START_REFUSED BC_COMMAND.START refused (section 6.10)
BC_ROLE_ERR The two copies of the role state of the BC were not complementary (section 7)
BM_RECORD A message record of the BM written into the ring whose command has its interrupt bit in the filter table, with BM_CONTROL.FILTER = 1 (section 6.16)
BM_OVERFLOW A record of the BM lost: it did not fit into the ring, or the bus traffic outran the message buffers (section 6.18)
BM_LEVEL A record of the BM written after which the unread words of the ring are at least BM_IRQ_LEVEL (section 6.18)

A flag stays set until the host writes 1 to it; an event in the cycle of the clear sets it again. An interrupt routine reads IRQ_FLAGS, writes the value read back to clear these flags and then serves them, so that no event is lost.

6.7 Health word, BIT word and terminal flag

  • BIT.FAULTS (BIT word bits 7 to 0) latches the faults the core detects: loopback error on bus A (bit 0) and bus B (1), fail-safe time-out on bus A (2) and bus B (3), memory double error (4), transmission not completed (5), address validation failed (6). A fault sets the interrupt flag BIT and stays set until the host writes 1 to its bit.
  • While a bit of BIT.FAULTS is set or TERM_COND.TERM_FLAG = 1, the terminal flag bit of the status word is set, unless the bus controller inhibited it with mode code 6 (RT_STATUS.TF_INHIBIT).
  • BIT.HOST holds BIT word bits 15 to 8, which the application defines (results of a self test, for example); they do not set the terminal flag. Mode code 19 transmits the whole BIT word.
  • The RT health word of ECSS 8.7.2 is kept by the core: writing 1 to a bit of HEALTH sets it. With CONTROL.HEALTH_EN a valid receive message to subaddress 1 clears the bits that are 1 in its word 0, and the health word is word 0 of every transmit message of subaddress 1. Bit n of ECSS Table 8-8 is bit 15 - n of the word (I3).

6.8 Mode codes

The RT executes all mode codes of MIL Table I in hardware (D13); which are legal comes from the mode code entries of the tables (subaddress 31). With the control word of subaddress 31 a mode code is also recorded in the event log, with its data word in record word 3.

Mode code Behaviour of the core Host
0 Dynamic bus control Status word with the dynamic bus control acceptance bit 0: the offer is rejected (I7) None; make it illegal if the mission does not use it
1 Synchronize Rt_TimeSync, flag TIME_SYNC Time synchronisation of the application
2 Transmit status word Status word of the command before, unchanged None
3 Initiate self test Rt_SelfTestReq, flag SELF_TEST; the RT keeps answering normally (I6) Runs the self test and reports the result in BIT.HOST and TERM_COND.TERM_FLAG
4, 5 Transmitter shutdown and override The transmitter of the other bus is shut down or released (BUS_STATUS.SHUTDOWN) None
6, 7 Inhibit terminal flag and override RT_STATUS.TF_INHIBIT set or cleared None
8 Reset remote terminal Status word, then the reset of the protocol state: status bits, last command word, terminal flag inhibit, shutdowns of both buses, frame number; Rt_ResetReq, flag RESET_REQ. The buffer memory, the registers and the BIT word are kept (I4, D11) Resets the subsystem; clears CONTROL.RT_EN while the subsystem needs a silent RT and sets it again
16 Transmit vector word Status word and VECTOR Sets VECTOR and TERM_COND.SERVICE_REQ together, clears the service request once the vector has been read (ECSS 6.2.1.2.3)
17 Synchronize with data word Rt_FrameSync with Rt_SyncData, flag FRAME_SYNC, the data word in SYNC_DATA and bits 7 to 0 in RT_FRAME Frame synchronisation of the application
18 Transmit last command word Status word unchanged and the last command word None
19 Transmit BIT word Status word and the BIT word Keeps BIT.HOST, clears BIT.FAULTS after handling
20, 21 Selected transmitter shutdown and override Data word 0 selects bus A, 1 bus B; never the bus of the command; other values change nothing (I5) None
Reserved mode codes Illegal by default; when the table makes one legal: status word, data word 0x0000 when one is transmitted None

6.9 ECSS services

The RT functions of the ECSS services that the bus can observe run in hardware, each enabled by a bit of CONTROL (reset value 1, D12). With a service enabled the RT substitutes words of a transmit subaddress:

Service CONTROL bit Behaviour Host
Time message (ECSS 8.2.1.2) TIME_EN Words 0 to 4 of subaddress 29 transmit are words 0 to 4 of the last valid time message received on subaddress 29 (also broadcast), words beyond its word count 0x0000 (I13) Enables the record and interrupt of subaddress 29 receive to receive the time message; writes words 5 and later of subaddress 29 transmit, if used
Communication frame number (ECSS 8.3.1.2b, 8.3.2.2b) FRAME_EN Word 1 of subaddress 1 transmit is the frame number of the last mode code 17 (bits 15 to 8 zero) None
RT health word (ECSS 8.7.1, 8.7.2) HEALTH_EN Word 0 of subaddress 1 transmit is the health word; word 0 of a receive message to subaddress 1 clears health bits (section 6.7) Sets health bits through HEALTH
Data wrap-around (ECSS 8.7.4, MIL 30.7) WRAP_EN Subaddress 30 transmit sends the last valid message received on subaddress 30 None

Word 1 of a receive message to subaddress 1 (the reset services of ECSS 8.7.3) reaches the host through the published buffer and the record of subaddress 1 receive (I14). The data block transfer of ECSS 8.6 has no engine in release 0.3.1: the host software runs the protocol on the buffers of subaddresses 11 to 28 with the sequences of sections 6.3 and 6.4, which give the consistent transfer descriptors and requests the protocol needs.

6.10 Bus controller: role, start and stop

The core is an RT or a BC, never both (D20). With IncludeBc_g = true the host starts the BC with a command. While the BC is active, the core holds the RT disabled whatever CONTROL.RT_EN says and answers no command, not even one to its own address (CORE-RL-02). A stop, a remote terminal that accepts dynamic bus control and a role error return the core to the RT role. In a core without the BC, BC_COMMAND has no effect. The BC and the BM are never active together: a start of the BC is refused while BM_CONTROL.EN = 1 or the BM is active (D27, section 6.15).

  1. Wait for CORE_STATUS.INIT_DONE = 1 and check CORE_STATUS.BC_INCLUDED = 1 (section 6.1).
  2. Write the bus profile into the buffer memory (section 6.11) and the BC registers (section 6.12).
  3. Write CONTROL.RT_EN = 0 and, in a core with the BM, BM_CONTROL.EN = 0, and wait for the write responses.
  4. Write BC_COMMAND.START.
  5. Read BC_STATUS: ACTIVE = 1 with STATE = 01 (waiting for the first frame) or 10 (running). If the flag BC_START_REFUSED is set instead, the RT was enabled or had a message in progress, the BM was enabled, or the memory was not initialised: write 1 to the flag, read RT_STATUS until MSG_ACTIVE = 0 and repeat from step 3.

The BC takes the registers that the register map marks as taken at the start in the cycle of the start command and keeps them while it is active (BC-FR-09); a write to them acts from the next start on. BC_RT_BUS and BC_FRAME_RSVD act at once. The start may follow the last message of the RT directly: the publication and the record of that message are completed in the buffer memory while the BC begins (CORE-RL-04).

Stop. Write BC_COMMAND.STOP. The BC completes the message in progress and writes its results (BC_STATUS.STATE = 11 meanwhile), then it is inactive (ACTIVE = 0) and sets the flag BC_STOPPED; without a message in progress it stops at once. In the MIL and open profiles the BC stops in the same way after a status word that accepts dynamic bus control in response to mode code 0 (I21).

Return to the RT role. After BC_STOPPED or BC_ROLE_ERR the core is an RT with CONTROL.RT_EN = 0, as the host wrote it before the start; the RT answers from the moment the host sets RT_EN = 1. With BM_CONTROL.EN = 1 the BM becomes active as soon as the BC is inactive (section 6.15). A core that changes between the roles keeps its bus profile in the reserved region 0x0200 to 0x07FF and in the buffers of subaddresses that its RT does not use, so that the configuration of the RT stays valid. Otherwise the host writes the words of the RT that the bus profile overwrote (control words, illegal command table entries, transmit buffers, and the status words and message counts with 0, their values after the initialisation) before it sets RT_EN.

6.11 Bus profile

The BC runs the bus profile that the host writes into the buffer memory (D21). BC_TABLES points to the frame table and the status table, the frame table to the message lists, their slots to the descriptors and the descriptors to their data buffers. Only the event log (0x0800 to 0x0FFF) has a fixed region; the BC reads and writes nothing but the words these pointers name.

Structure Size Alignment Writer Content
Frame table N words (BC_FRAMES.N) none host One entry per frame index: bits 12 to 0 the word address of the message list, bit 15 valid ('0': the frame has no messages), bits 14 and 13 '0'
Message list 2 words per slot, at most 256 slots none host Slot word 0: bits 8 to 0 the descriptor index (the descriptor is at word address index x 16), bits 12 to 9 bits 19 to 16 of the start time, bit 13 '0', bit 14 timed, bit 15 last slot of the list. Slot word 1: bits 15 to 0 of the start time. The start time is in us after the frame start
Descriptor 16 words 16 words host (words 0 to 7), BC (words 8 to 15) One message (table below)
Data buffers 2 x n words per descriptor none host (transmit), BC (receive) Buffer b at the word address of descriptor word 3 plus b x n, n the word count of the message (32 for the word count 0, 1 for a mode command with a data word)
Status table 32 words 32 words BC Word r: the last valid status word of RT r in a message of the BC; word 31 is not written
Descriptor word Writer Content
0: control word host 1, 0: bus (00 bus A, 01 bus B, 10 and 11 the bus of BC_RT_BUS for the RT address of command word 1); 2: RT to RT transfer; 3: selected transmit buffer; 4: event record enable; 5: interrupt enable; 6: service request condition; 7: on demand; 11 to 8: request count; 15 to 12: '0'
1 host Command word 1 (the receive command of an RT to RT transfer)
2 host Command word 2 of an RT to RT transfer (the transmit command), or the data word of a receive mode command
3 host 12 to 0: word address of the data buffers
4 to 7 host Reserved, 0
8: result BC 3 to 0: result code (section 6.14); 4: bus used ('1' = B); 5: exception; 6: buffer (receive: published, transmit: sent); 12 to 7: data words transferred, 0 to 32; 13: started late; 14: not sent; 15: '0'
9 BC Status word of the RT of command word 1, or of the transmitting RT of an RT to RT transfer; 0 when none was received
10 BC Status word of the receiving RT of an RT to RT transfer, otherwise 0
11 BC Message count: executions without an error, modulo 65536
12 BC Frame count (BC_FRAME_COUNT) of the last execution
13: latch word BC 0: latched transmit buffer; 4 to 1: latched request count; 5: double error in the control word at the latch; 15 to 6: '0'
14 BC 3 to 0: done count of an on-demand slot; 15 to 4: '0'
15 none Reserved

The format of a message follows from command word 1 (RT address 31 for a broadcast, the T/R bit, subaddress 0 or 31 for a mode command, the word count or mode code) and from the RT to RT bit of the control word: BC to RT, RT to BC, RT to RT, the mode commands without and with a data word, and their broadcast forms (o1553_bc specification, BC-MF-01 to BC-MF-07). A descriptor can be named by slots of several lists and several times in one list. As an example, 100 descriptors with 16 data words each take 1600 + 3200 words; with lists of 10 slots for 8 frames (160 words), the frame table and the status table, 4992 of the 6144 words outside the event log are used.

The host writes the bus profile before the start. While the BC is active it changes only the control words (the selection of the transmit buffer and the request count act from the next frame, section 6.14; the other bits from the next execution of the slot), the transmit buffers that are free (section 6.14) and the frame table entry of a frame other than the current and the next one, to point it to a message list that is complete. Every other host word of the bus profile is changed while the BC is inactive.

6.12 Frames and time synchronization

Register Reset value Content
BC_CONTROL.PROFILE 00 Profile check: 00 and 11 ECSS, 01 MIL, 10 open (only with AllowOpenProfile_g, otherwise ECSS); section 6.13
BC_CONTROL.TIME_SYNC 0 Frames with time synchronization
BC_CONTROL.TICK_SRC 0 Tick from Bc_TimeTick (0) or from BC_COMMAND.TICK (1)
BC_FRAMES.N 8 Frames per second (without time synchronization) or per time synchronization cycle; bounded to 1 to 256 (2 to 256 with time synchronization)
BC_FRAME_TIME.D 125000 us Frame duration D, bounded to at least 2000 us
BC_TICK_TIMEOUT 1010000 us Time after a tick by which the next one is missing, bounded to at least D
BC_TS_DELAY 1000 us Tick to the time synchronization message
BC_LATCH_TIME 200 us Latch window before each frame, bounded to 20 to 1000 us
BC_TIMEOUT 18.0 us in cycles No-response time-out in clock cycles at the ports, bounded to at least 14.0 us (section 4.3)
BC_GAP 4.0 us in cycles Intermessage gap in clock cycles at the ports, bounded to at least 4.0 us
BC_TABLES 0x0200, 0x0300 Word addresses of the frame table and the status table (bits 12 to 5 of the status table)
BC_RT_BUS 0 Bus per RT address ('1' = bus B); bit 31 for the synchronization messages and for a broadcast message whose control word selects this register; acts at once
BC_FRAME_RSVD 0 Bits 15 to 8 of the data word of the frame synchronization message; acts at once

A bounded value acts as the nearest bound. Every frame starts with a synchronization message on the bus of bit 31 of BC_RT_BUS, and the frame start is the mid-sync crossing of its command word (Bc_FrameSync, section 4.7). The frame synchronization message is mode code 17 in broadcast (command word 0xFBF1) with the data word BC_FRAME_RSVD in bits 15 to 8 and the frame number in bits 7 to 0 (I3); the time synchronization message is mode code 1 in broadcast (command word 0xFFE1) without a data word.

Without time synchronization (TIME_SYNC = 0) the BC starts a frame every D us, numbered 0 to N-1 modulo N; the first frame starts when the latch walk of its list is complete after the start, and the grid of D counts from it (ECSS 8.3.2.1). With time synchronization (TIME_SYNC = 1) the tick of the time master starts each cycle (ECSS 8.3.1.1, with the second method of 8.3.1.1c):

  • Frame 0 starts BC_TS_DELAY us after the tick, with the time synchronization message (ECSS 8.2.2.1). Frames 1 to N-1 start every D us after frame 0, with the frame synchronization message. The frame numbers count 0, 1, 2 and on, modulo 256.
  • From the tick on no further message starts; the message in progress completes. The last frame therefore ends at the next tick, and all frames last D except the last one, which follows the period of the tick.
  • From the start to the first tick the BC runs frames from number 1 every D (ECSS 8.2.1.1e).
  • No tick within BC_TICK_TIMEOUT us of the previous one sets BC_TICK_MISSING: the last frame ends then (not earlier than D after its start), and the frames continue every D with the numbers counting on (I17).
  • A tick before frame N-1 has started sets BC_TICK_EARLY and starts frame 0 as any tick does; a tick before the time synchronization message of the previous tick sets BC_TICK_EARLY and is ignored.

The frame index selects the entry of the frame table: without time synchronization it is the frame number, with time synchronization the number of frames since the last frame 0 modulo N, with index 1 for the first frame after the start. BC_STATUS.FRAME_NUM shows the number of the current frame, BC_FRAME_COUNT the frames since the start modulo 65536.

Choice of the values. The tick has a nominal period P, recommended 1 s with a variation below 1 % (ECSS 8.2.2.1d, e). Choose N and D so that frame N-1 starts before the earliest next tick, BC_TS_DELAY + (N - 1) x D < 0.99 P, with room for the message list of the last frame; set BC_TICK_TIMEOUT to the latest next tick, for example 1.01 P. Choose BC_TS_DELAY at least as long as the longest message of the last frame and the gap, so that the time synchronization message starts exactly on time (I15); otherwise it starts after the message in progress and the gap, with BC_LATE. The reset values give seven frames of 125 ms and a last frame of about 124 ms in a cycle of 1 s.

Latch window and frame guard. At the start of the latch window, BC_LATCH_TIME us before the nominal start of a frame (for frame 0: at the tick), the BC reads the list of that frame and latches the transmit buffer selection and the request count of each of its descriptors (D23, section 6.14). No message of the current frame may run into the latch window: a message starts only when its worst-case end lies before it (section 8.5), otherwise it is not sent (result code 10). The messages of a frame thus fit into D - BC_LATCH_TIME; in the last frame of a cycle no message starts after the tick. The reset value of BC_LATCH_TIME covers a list of 256 slots at every clock frequency (section 8.5).

Late and skipped frames. A frame starts late, with BC_LATE, when the latch walk of its list is not complete at its nominal start or when the line of the bus of its synchronization message is active; the frames after it keep their nominal times (BC-FR-08). When the line stays active until the latch window of that frame, the frame is skipped: no synchronization message and no messages, with BC_LATE. A frame also starts late, by at most 3 clock cycles and with BC_LATE, when its nominal start (for frame 0: BC_TS_DELAY after the tick) comes while the BC decides a slot of the list before that is not sent: after the start of the latch window, and from a tick on, the remaining slots of a list are not sent (result code 10) one after the other. The slots of that list not decided by the frame start are not executed: nothing is written into their descriptors. Ticks while the BC is inactive have no effect.

6.13 Messages of the BC

The BC executes the slots of a frame's list in their order (D24):

Slot Execution
Untimed As early as the gap (BC_GAP after the last word of the message before, or of the synchronization message) and the idle line allow
Timed (slot word 0 bit 14) The mid-sync crossing of its command word comes exactly its start time after the frame start, to the clock cycle (ECSS 8.3.3). When the message before or the gap do not allow it, the message starts as early as allowed, with result bit 13 and BC_LATE
Service request condition (control word bit 6) Executed only when the last valid status word of the RT of command word 1 has the service request bit: the status word of the message just ended to that RT, or its entry of the status table. Otherwise skipped (ECSS 6.2.1.2.3a)
On demand (control word bit 7) Executed only when the request count latched for the frame differs from the done count (descriptor word 14), otherwise skipped (section 6.14)

A skipped slot writes nothing and does not move a later timed slot. The BC never repeats a message (ECSS 6.5a). After the last slot of a list (slot word 0 bit 15) the BC starts no message until the next frame; a list without a last flag ends after its 256th slot, with BC_LIST_END.

Before it presents the command word, the BC checks the message. A message that fails a check is not sent: its result word has the result code and bit 14, the flag BC_NOT_SENT is set and a record is written when the descriptor enables records or CONTROL.LOG_ERRORS = 1.

Check Result code
Double error in a word that the BC read for the message (section 7) 9
Profile check (table below) 11
Transmitter of the bus not enabled (BUS_STATUS.TX_EN = 0: bus disabled, transmitter shut down or cut by the fail-safe timer) 8
Frame guard: the worst-case end of the message lies after the start of the latch window, or a tick came 10
Line of the bus still active at the latest start that the frame guard allows 12

Bus. The control word selects bus A (00), bus B (01) or the bus of BC_RT_BUS for the RT address of command word 1 (10 and 11; bit 31 for a broadcast message). BC_RT_BUS acts at once, so one register write moves the traffic of an RT to its other bus. The BC transmits on one bus at a time and only on an idle line (BC-MF-08, BC-TM-04). In the BC role a transmitter cut by the fail-safe timer (BUS_STATUS.FAIL_SAFE) stays off until the host writes BC_COMMAND.FS_CLR for its bus (I20).

Profile check. BC_CONTROL.PROFILE selects the rules that every message of the BC is checked against (D25):

Rule ECSS MIL Open
Reserved mode codes (9 to 15, 22 to 31) refused refused sent
Mode code with a T/R bit that MIL Table I does not give it (0 to 16, 18 and 19 with T/R = '0'; 17, 20 and 21 with T/R = '1') refused refused sent
Broadcast mode code that MIL Table I does not allow in broadcast (0, 2, 16, 18, 19) refused refused sent
Mode codes 0, 3, 19, 20 and 21 refused sent sent
Mode code 16 without the service request condition refused sent sent
Mode command on subaddress 0 refused sent sent
Data message to subaddress 0 or 8 refused sent sent
RT to RT transfer refused sent sent
RT to RT transfer whose command word 1 is a transmit command, whose command word 2 is a receive command or a command to subaddress 0 or 31, or whose two command words have the same RT address (MIL 4.3.3.6.3) refused refused sent
RT to RT bit of the control word with a mode command in command word 1 refused refused sent as the mode command
Broadcast data message other than a receive message to subaddress 29 refused refused, also subaddress 29 sent
Transmit command with the broadcast address (command word 1, or command word 2 of an RT to RT transfer) refused refused sent
Time message with time synchronization in a frame with an index above N-2, or less than 10 ms after the start of frame 0 (before the first tick: after the start) refused sent sent
Time message with bits 15 to 8 of data word 0 of the latched transmit buffer not zero, or a word count other than 3 + ceil(f / 2) refused sent sent

The ECSS profile is the reset value and the profile of an ECSS-E-ST-50-13C mission. With AllowOpenProfile_g = false the value 10 selects the ECSS profile, so that no upset of the register makes the profile open. In the open profile a combination for which MIL defines no format is sent by the rules of the format that its fields name.

Time message. A time message is 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.1). Data word 0 carries the P-field, with the number f of fine octets in bits 1 and 0; the words of the coarse time are always sent, so the word count is 3 + ceil(f / 2) (I18). With time synchronization the host places the time message in a frame with an index of N-2 or less, at least 10 ms after the start of frame 0, and writes its data with the buffer switch of section 6.14.

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 in one list send the words and receive them back (ECSS 8.7.4c); the host compares the received words with the words sent.

Responses. The BC checks every word of a response: validity, sync type, the RT address of the status word, contiguity, the word count and the time-out BC_TIMEOUT. It stores the status words in descriptor words 9 and 10 and in the status table, sets result bit 5 (exception) for a status word with the message error, busy, subsystem flag, terminal flag, instrumentation or a reserved bit, and sets BC_BUSY for the busy bit. A status word with the message error or the busy bit and no data words after it is a response without data words: result code 0 with the exception bit, nothing published. Own words and words on the other bus are never taken as a response.

6.14 Data and results of the BC

Transmit data. A BC to RT message (also in broadcast) sends the transmit buffer that the BC latched for the frame (latch word bit 0). A buffer that the host completes during a frame therefore goes out at the earliest in the next frame, in all its messages of that frame alike (ECSS 8.4.1b, D23). The host updates descriptor d (control word at word address d x 16, latch word at d x 16 + 13, buffer b at the address of word 3 plus b x n) with this sequence:

  1. Read the control word: selected buffer s (bit 3). Read the latch word: latched buffer l (bit 0).
  2. If l differs from s, the latch has not taken the previous switch yet: wait for a later frame start (BC_FRAME) and repeat from step 1.
  3. Write the data words into buffer f = not s.
  4. Write the control word with bit 3 = f and the other bits unchanged.

Buffer f is neither selected nor latched while the host writes it, so no message of the BC reads it. The BC latches f in the latch window before the next frame whose list has the descriptor and sends it from that frame on; a switch written during that latch window acts one frame later.

On-demand messages. A slot on demand sends its message only for a request (the pre-allocated bandwidth with unpopulated content of ECSS 7.3.1b and 7.4.1b). The host prepares the data with steps 1 to 3 and increments the request count (control word bits 11 to 8, modulo 16) in the control word write of step 4. The BC latches the request count with the buffer and sends the message once, in the next frame that has the slot; the done count (word 14 bits 3 to 0) then equals the latched request count. Two increments within one frame give one message. A request whose message is not sent (a result with bit 14) stays: the done count is not written, and the message goes in the next frame that has the slot. A descriptor named by two slots of one frame is sent once for one request.

Receive data. For RT to BC messages, transmit mode commands with a data word and the data words of an RT to RT transfer, the BC writes the received data words into the buffer that is not published. After a message without an error it publishes that buffer: first the result word with the buffer (word 8 bit 6), then the message count (word 11) incremented by one, then the frame count (word 12) (D9). The host reads descriptor d with this sequence lock:

  1. Read the message count C1 (word 11). C1 = 0: no message yet.
  2. Read the result word (word 8): published buffer b (bit 6).
  3. Read the n data words of buffer b, n the word count of the message.
  4. Read the message count C2. If C2 differs from C1, repeat from step 1; otherwise the words of step 3 are one complete message without an error.

The result word of an execution with an error keeps the published buffer in bit 6, so the sequence stays correct when an execution fails meanwhile.

Results. After every execution, also one with an error and a message that was not sent, the BC writes the result word (word 8), the status words (words 9 and 10) and the frame count of the execution (word 12) (BC-DX-03). The ReadStatus and ReadData primitives of ECSS 7.3.2a and 7.4.2a follow from the descriptors of the transfers of a Set Data or Get Data identifier: NbNoResp is the number of their results with code 1, Status the OR of their status words (I24).

Code Result Code Result
0 None 8 Transmitter not available (not enabled, disabled during the message, underrun, abort)
1 No response 9 Memory double error
2 Invalid word in the response 10 Not sent: frame guard
3 Sync type (status word with data sync, data word with command sync) 11 Not sent: refused by the profile check
4 Status word of another RT address 12 Not sent: line busy
5 Data word not contiguous 13 Reserved
6 Word count too low 14 Not published: double error in the message count
7 Word count too high 15 Reserved

Event records. The BC writes an event record of 8 words into the log of section 6.5 for every execution and every message not sent when control word bit 4 enables records, and for every message with an error or not sent when CONTROL.LOG_ERRORS = 1. A record requests the interrupt RECORD when control word bit 5 enables it.

Record word Content
0, 1 Command word 1; status word (descriptor word 9)
2 3 to 0: result code; 4: bus ('1' = B); 5: broadcast; 6: exception; 7: RT to RT transfer; 8: buffer; 14 to 9: data words transferred (0 to 32); 15: interrupt requested
3 Data word of a mode command (sent or received), or the status word of the receiving RT of an RT to RT transfer; otherwise 0
4 Command word 2 of an RT to RT transfer, otherwise 0
5, 6 Time tag at the presentation of the command word, low and high half (microseconds, TIME_TAG)
7 7 to 0: frame number; 8: started late; 9: not sent; 14 to 10: '0'; 15: '1' (record of the BC)

6.15 Bus monitor: use, start and stop

With IncludeBm_g = true the BM records the traffic of both buses at the receiver ports while BM_CONTROL.EN = 1 and the BC is not active (D27, CORE-BM-01). It never transmits: it has no path to the encoder, the bus selection, the fail-safe timers or the RT. It runs in one of two ways:

Use CONTROL.RT_EN Behaviour
Alone 0 The core answers no command and transmits no word on either bus (CORE-BM-03)
Beside the RT 1 The RT answers the commands to its own address with its configuration and response time, as without the BM; the BM records the messages of the core as those of any other terminal, with the flag "own" (CORE-BM-02)

The decoder of a disabled bus reports no words, so CONTROL.BUS_EN enables every bus that the BM is to monitor. The host starts the BM with this sequence:

  1. Wait for CORE_STATUS.INIT_DONE = 1 and check CORE_STATUS.BM_INCLUDED = 1 (section 6.1).
  2. Write the filter table through the memory window, if the filter is used (section 6.16).
  3. Write BM_TIMEOUT, BM_RING_BASE, BM_RING_SIZE, BM_FILTER_BASE, BM_IRQ_LEVEL and BM_READ_INDEX = 0, and IRQ_ENABLE for the BM flags the host serves, after writing 1 to them in IRQ_FLAGS (section 6.6).
  4. Write CONTROL: RT_EN = 0 for the BM alone; the configuration of the RT (section 6.2) and RT_EN = 1 beside it.
  5. Write BM_CONTROL with EN = 1 and the bits FILTER, OUTSIDE and ACTIVITY (section 6.16).
  6. Read BM_STATUS: ACTIVE = 1, SEQ = 0; BM_WRITE_INDEX reads 0.

When the BM becomes active it takes BM_TIMEOUT, BM_RING_BASE, BM_RING_SIZE, BM_FILTER_BASE and the bits FILTER, OUTSIDE and ACTIVITY of BM_CONTROL, keeps them while it is active and starts with the write index and the sequence number at 0 (BM-EN-01). BM_READ_INDEX and BM_IRQ_LEVEL act at once; a change of the other values acts from the next start.

Stop. Write BM_CONTROL.EN = 0. The BM is inactive from then on: messages in progress and records not yet written are discarded, and a record whose writing is in progress is not completed (BM-EN-03). BM_WRITE_INDEX and BM_LOST keep their values until the next start, so the host reads the records written before the stop (section 6.18), writes BM_READ_INDEX = 0 and only then sets EN again.

BM and BC. A core with both monitors the bus while another terminal is the bus controller, and takes over as a backup BC when the host stops the BM and starts the BC (section 6.10), with a bus profile placed beside the ring and the filter table (TC-CORE-25):

  • While BM_CONTROL.EN = 1 or the BM is active, BC_COMMAND.START is refused with BC_START_REFUSED, and the BM records on (CORE-BM-04).
  • While the BC is active the BM is inactive whatever BM_CONTROL.EN says: no record, no memory access, no BM flag. The BC records its own messages in the event log (section 6.14).
  • With BM_CONTROL.EN = 1, written while the BC is active (after BM_READ_INDEX = 0), the BM becomes active as soon as the BC is inactive, after a stop and after a role error, with the write index and the sequence number at 0: the core monitors the bus again when it gives up the BC role.
  • After a role error the BM records from the cycle in which the BC became inactive, while the transmission that the role error aborted can still be on the bus (it ends within the word in progress, section 4.6). The BM has not seen the beginning of that message, so its first records hold what remains of it as the BM sees such words (section 6.17): words outside a message, line activity without a word, or a message that begins with a later word with command sync. These records are ordinary records of the ring and serve the diagnosis of the role error.

6.16 Filter table and ring

Structure Register Reset value Placement
Filter table BM_FILTER_BASE 0x0200 256 words at a multiple of 256 words; bits 7 to 0 of the register read 0 and are ignored
Ring BM_RING_BASE, BM_RING_SIZE 0x0300, 1280 words S = BM_RING_SIZE words (bounded to 64 to 8192); ring word i is memory word (BM_RING_BASE + i) modulo 8192, so a ring may cross the end of the memory

The reset values place both in the reserved region 0x0200 to 0x07FF, which the RT does not use (section 5.2). Beside the RT, the ring and the filter table stay in words that the RT does not use, and apart from the bus profile of a backup BC as the host divides that region. With the RT disabled every region but the event log is free. The BM writes only the words of the ring and reads only the filter table (BM-RG-04); the host writes the filter table while the BM is inactive and never writes the ring.

The filter table has a record bit and an interrupt bit per RT address r, T/R bit t and subaddress s, taken from the command word: RT address 31 for the broadcast commands, subaddress 0 or 31 for the mode commands.

Word Content
r x 4 + t x 2 + s / 16 Record bit of (r, t, s) in bit s mod 16
128 + r x 4 + t x 2 + s / 16 Interrupt bit of (r, t, s) in bit s mod 16

For example, 0xFFFF in words 20 to 23 records every message to and from RT 5, mode commands included; bit 1 of word 23 and of word 151 records the transmit messages of RT 5, subaddress 17, with an interrupt.

BM_CONTROL selects what is recorded (all bits taken at the start):

Bit Reset value With 1
FILTER 0 A message is recorded only when the record bit of command word 1 or, for an RT to RT transfer, of command word 2 is set; otherwise it is discarded without a sequence number. A message record with such an interrupt bit set sets BM_RECORD when it is written. With 0 every message is recorded and BM_RECORD is never set
OUTSIDE 1 A word record for every word outside a message
ACTIVITY 1 An activity record for every line activity without a word

Word and activity records are never filtered. A word of the filter table read with a double error has its bits taken as '1': the message is recorded with the flag "filter error" (section 7).

6.17 Records of the BM

The BM reconstructs the messages of each bus from the words and their timing (D28, o1553_bm specification section 2.3):

  • A valid word with command sync while no message of the bus is in progress begins a message as command word 1. The format of command word 1 gives the words that follow: BC to RT, RT to BC, the mode commands without and with a data word, and the broadcast forms; a receive command followed by a contiguous transmit command is an RT to RT transfer.
  • Where a status word is expected, the next valid word with command sync whose gap is at most BM_TIMEOUT is the status word, and its gap is its response time; the instrumentation bit is not used (I25). A status word with the message error or the busy bit and no data words after it ends the message without a flag.
  • A message ends after the words of its format and any further contiguous data words, at a word that breaks it (invalid, of the wrong sync type, not contiguous), which is then taken as the next word with no message in progress, or when its status word does not come in time. Every deviation is a flag of the record.
  • A command word 1 on the other bus while a message is in progress gives that message the flag "superseded"; it continues to its own end.
  • A word with no message in progress that does not begin one (a valid word with data sync, or an invalid word) is a word outside a message. Line activity in which the decoder recognises no sync half is line activity without a word.

Word 0 of every record gives its type and length:

Bits 15 to 14 of word 0 Record Length in words
"00" Message record 12 + n, n the number of data words in bits 12 to 7
"01" Word record 6
"10" Activity record 6
Message record word Content
0 15 to 14: "00"; 13: bus ('1' = B); 12 to 7: number of data words n (0 to 32); 6 to 0: '0'
1 Sequence number
2 Flags (table below)
3 15 to 13: error class of the invalid word; 5 to 0: its position in the message, command word 1 = 0; 0 without the flag "invalid word"
4, 5 Command word 1; command word 2 of an RT to RT transfer
6, 7 Status word 1; status word 2 (the receiving RT of an RT to RT transfer)
8, 9 Response time of status word 1 and 2 in clock cycles (its gap, saturating at 65535)
10, 11 Time tag of command word 1, low and high half (microseconds, TIME_TAG)
12 to 11 + n The data words in their order on the bus: of the BC, the mode data word, of the RT, and those of the flag "word count high", at most 32

Words of the header that the message does not have are 0.

Word or activity record word Word record Activity record
0 15 to 14: "01"; 13: bus; 12: sync type ('1' command or status); 11: own; 10: contiguous; 9 to 7: error class; 6: buffer error; 5 to 0: '0' 15 to 14: "10"; 13: bus; 6: buffer error; the other bits '0'
1 Sequence number Sequence number
2 The 16 data bits of the word Duration of the line activity in clock cycles (65535 when longer)
3 Its gap in clock cycles 0
4, 5 Time tag of the word, low and high half Time tag of the end of the activity, low and high half
Flag bit Flag Set when
0 Broadcast Command word 1 has the RT address 31
1 RT to RT The message is an RT to RT transfer
2, 3 No response 1, 2 Status word 1 or 2 did not come within BM_TIMEOUT
4, 5 Status address 1, 2 Status word 1 or 2 has another RT address than its command word
6 Word count low Fewer data words than the format gives
7 Word count high More contiguous data words than the format gives
8 Invalid word An invalid word ended the message (word 3)
9 Sync A word of the wrong sync type ended the message
10 Gap A data word that is not contiguous ended the message
11 Superseded A command word 1 on the other bus came during the message
12 Own A word of the message was transmitted by the core itself
13 Filter error A word of the filter table read for the message had a double error
14 Buffer error A word of the record had a double error in the message buffer
15 '0'

The error class is that of the decoder: 001 sync, 010 Manchester, 011 bit count, 100 parity (o1553_codec CD-DE-07). The time tag is the value of TIME_TAG at the word event of command word 1, of the word, or at the end of the line activity. The sequence number counts, modulo 65536, every record that the BM offers to the ring and the filter does not discard; BM_STATUS.SEQ shows the number of the next record (BM-RC-04).

6.18 Reading the ring

BM_WRITE_INDEX (in ring words from BM_RING_BASE) advances after the BM has written every word of a record (BM-RG-02). The host keeps its read index in BM_READ_INDEX; the ring words from the read index up to the write index are complete records. The host reads them with this sequence:

  1. Read BM_WRITE_INDEX = w.
  2. While the read index r differs from w: read word 0 of the record at ring word r, at host byte address 0x8000 + 4 x ((BM_RING_BASE + r) modulo 8192), and its length L (section 6.17); read the L words of the record at ring words r to r + L - 1 modulo S; write BM_READ_INDEX = (r + L) modulo S.

A write of BM_READ_INDEX frees the words at once. The ring holds at most S - 1 words of records: a record of L words is written only when L <= S - 1 - ((w - BM_READ_INDEX) modulo S). A record that does not fit is not written: BM_LOST counts it, BM_OVERFLOW is set, and since it took its sequence number, the next record that is written shows the gap (TC-CORE-24). A message record of 32 data words takes 44 words, so the reset ring of 1280 words holds 29 of them.

The BM also loses a record when the bus traffic outruns its message buffers, which hold four records per bus until they are written: BM_LOST counts it and BM_OVERFLOW is set, but it takes no sequence number. With at most one message or word record and one activity record per bus and word time this does not occur, at every clock frequency (section 8.6); only line activity without words in bursts faster than the BM copies their records (up to 13 clock cycles per record, o1553_bm architecture section 7) can cause it. BM_LOST saturates at 65535; BM_COMMAND.LOST_CLR clears it.

BM_LEVEL is set for each record after which the unread words are at least BM_IRQ_LEVEL (reset value 640, half of the reset ring). A host that serves the ring by interrupt enables BM_LEVEL and BM_OVERFLOW, reads the records up to the write index and clears the flags; a host that polls reads BM_WRITE_INDEX.

7. Protection scope

The core is designed for radiation environments together with the triple modular redundancy (TMR) of the synthesis tool, like the Open Logic ft entities it is built on. It protects the parts in the first rows itself and relies on TMR for all other logic:

Part Protection Indication and test
Buffer memory (olo_ft_ram_sp_scrub, 8192 words): descriptors, illegal command tables, event log, subaddress buffers, bus profile of the BC, filter table and ring of the BM SECDED ECC of the Open Logic ft entities with a scrubber: a single error is corrected (on the way to the bus and to the host, and written back by the scrubber), a double error is detected and contained: it never reaches the bus or the host as valid data (see below) ECC_PROTOCOL, ECC_HOST, ECC_SCRUB (counters per source), interrupt flags ECC_SEC and ECC_DED, BIT word bit 4 and the terminal flag, error codes 10 and 14 in the event record of the RT, result codes 9 and 14 of the BC, SLVERR on a host read; SCRUB_PASSES, SCRUB_OVR; error injection through the ErrInj ports (section 4.6)
Message buffers of the BM (olo_ft_ram_sdp, 256 words per bus) SECDED: a single error is corrected; a word read with a double error is written into the ring as read and the record is marked (BM-FT-03). A record stays in the buffer for less than a word time, so no scrubber is needed Flag "buffer error" of a message record, bit 6 of word 0 of a word or activity record; error injection through ErrInj_BmBitFlip and ErrInj_BmValid (section 4.6)
Clock domain crossings and reset synchronisers The core has one clock domain. The receiver inputs, the address straps and the tick of the BC enter through olo_intf_sync, the reset through olo_base_reset_gen, both with triplicated synchronisers (SyncTmr_g = true): three synchroniser chains and a majority voter. Their registers carry the Synplify attribute syn_radhardlevel = none, so the TMR of the synthesis tool adds no voters between the stages none
Role state of the BC Two copies, the role and its complement. Copies that are not complementary make the BC inactive in the same cycle: its transmission ends within the word in progress and the core returns to the RT role with the RT disabled, so an upset of either copy never makes the core a bus controller (BC-RO-04) BC_ROLE_ERR; error injection through ErrInj_RoleFlip (section 4.6)
State machines Recovery state through the when others branch and the reset; the fail-safe timer of each bus cuts a transmission after 700 us whatever the state of the protocol (MIL 4.4.1.3) BUS_STATUS.FAIL_SAFE, BIT word bits 2 and 3
All other logic: registers of the control and data paths, counters, pointers, pipeline registers and the register file TMR of the synthesis tool (for example syn_radhardlevel = tmr with Synplify, or the equivalent setting of the tool chain). The core adds no protection of its own for this logic; without TMR, an upset in it is not covered synthesis report

The buffer memory, the message buffers of the BM, the role state and the fail-safe timer are verified by test, through the ErrInj ports and the tests of the codec. The triplicated synchronisers in the core, the recovery of the state machines through their when others branches, the TMR of all other logic and the case beyond the protection scope described below are established by design analysis; they are not verified by test, since they need an internal upset that the port-level benches cannot inject.

A double error is contained per region of the buffer memory (D14):

Double error in Consequence
Control word or illegal command table entry, read for a command The RT answers with its status word only, message error bit set; no data stored or sent; error code 10 in the record
Receive status word, read at the first data word of a receive message No data word of the message is written and nothing published; message error bit, error code 10
Message count, read for a publication The message is not published (no status word and no count written, so every publication changes the count); error code 14, and the record is written also for a subaddress without records while CONTROL.LOG_ERRORS = 1
Word to be transmitted (transmit buffer, or the receive buffer or status word that a service substitutes from) The transmission ends before that word, so the bus controller sees a word count error
Any word read by the host (also an event record or receive data) The read is answered with SLVERR after the read time-out of 128 cycles; the host port takes no other access meanwhile, the RT keeps its memory access
Any word, found by the scrubber Counted; the word is not written back and keeps its double error until its writer writes it again

Every double error is counted in the counter of its source, sets ECC_DED and BIT word bit 4, and so the terminal flag of the status words that follow until the host clears the BIT bit. The bus controller learns of the error from the terminal flag, the host from the interrupt and the counters also without the SLVERR response.

Finding the word. A message that meets a double error ends with error code 10 (memory double error) or 14 (not published) in its event record. Record word 0 is the command word: its T/R bit and subaddress name the descriptor, the table entry and the buffers the message used. The host reads the control word, the status word and the message count of that descriptor, the four words of its table entry and, for a transmit message, the words of the selected buffer; the word with the double error is answered with SLVERR. A double error that the scrubber finds sets ECC_DED and counts in ECC_SCRUB without naming the word; a read of the memory window from 0x8000 to 0xFFFC finds it.

Repair. The host rewrites the words it owns (control words, table entries, transmit buffers). The RT writes receive data words, transmit status words and event records again with the next message or record. A receive status word or a message count with a double error stays: the RT reads these words before it writes them and stops at the double error, so every following message to that subaddress ends with error code 10 or 14 and sets BIT word bit 4. The host repairs such a descriptor while the rest of the terminal keeps running (CORE-FT-04):

  1. Make the subaddress illegal: write 0x0000 to the four words of its table entry, for the T/R bit of the descriptor (CONTROL.ILLEGAL_EN = 1). For the receive status word of subaddress 29 with TIME_EN or of subaddress 30 with WRAP_EN, make the transmit side of that subaddress illegal as well, since its transmit messages read the receive status word. An illegal command neither reads nor writes the status word, the message count or the buffers of its subaddress (o1553_rt architecture, section 6.1).
  2. After the write responses, read RT_STATUS until MSG_ACTIVE = 0: a message validated before step 1 has then ended. Between two messages on one bus the RT is idle for at least the length of a command word; only a command on the other bus sent during a message can follow it without such a pause.
  3. Wait MemLatency + 18 cycles of Clk, at most 25 cycles (2 us at every clock frequency of the core): the publication of that message is then complete (o1553_rt architecture, section 6.1).
  4. Write the status word and then the message count of the descriptor with 0x0000, their values after the initialisation.
  5. Write the table entry back with its legal values.
  6. Clear BIT word bit 4 (BIT = 0x00000010) when all double errors are repaired; the terminal flag clears with it.

The subaddress then reads as after the initialisation: message count 0, no message yet. Host software restarts its sequence lock state for that subaddress (section 6.3); the next valid message is published with the message count 1. A reset of the core repairs every word too, since it initialises the whole buffer memory, but it also resets the configuration.

Bus controller. A double error in a word of the bus profile that the BC reads is contained as well (D14, CORE-BC-03), and counted and flagged as every other double error:

Double error in Consequence
Frame table entry, read by the latch walk The frame has no messages; BC_NOT_SENT
Slot The descriptor of the slot is unknown: nothing is written into it, and the frame has no further messages; BC_NOT_SENT
Control word, read by the latch walk Latch word bit 5; the message is not sent in that frame (result code 9)
Word read for the message: descriptor words 0 to 3, the result word, the latch word, the done count, the status table entry of a slot with the service request condition, data word 0 of a time message The message is not sent: result code 9, BC_NOT_SENT
Transmit data word k The transmission ends before that word: k data words are sent, result code 9
Message count, read for the publication The message is sent but its data is not published: result code 14

The host rewrites the words it owns (frame table entries, slots, descriptor words 0 to 7, transmit buffers); the BC writes the result, the status words, the frame count and the latch word again with the next execution or latch walk. The message count, the done count and the status table entries are read by the BC before it writes them and keep a double error, also across a stop and a start: every later execution of that descriptor ends with result code 14 or 9, and a slot with the service request condition to that RT with code 9, until the word is written. The BC writes a status table entry with the next valid status word of its RT; the host writes such a word while the BC is inactive, after a stop: the message count and the status table entry with 0, the done count with the request count of the control word (BC-FT-06). After the repair of a message count, the next message publishes with the count 1.

Bus monitor. A double error in a word of the filter table that the BM reads for a message is counted and flagged as every other double error (ECC_PROTOCOL, ECC_DED, BIT word bit 4 and so the terminal flag of the RT beside it); the BM takes the record and interrupt bits of that word as '1', so the message is recorded, with the flag "filter error" (BM-FI-04, CORE-BM-06). The host rewrites the word of the filter table while the BM is inactive (section 6.16). A ring word with a double error is answered with SLVERR when the host reads it; the BM writes it again when the ring comes round to it. The BM never transmits and has no input to the RT or the encoder, so no upset of the BM reaches the bus (BM-IF-02); an upset of its write index or of a record shows to the host as a record type, length or sequence number that does not fit (design analysis).

Beyond the protection scope. An upset that the TMR of the synthesis tool does not mask is outside the protection of the core. One such case of the bus controller lasts until the host acts: the flag of the BC that marks a slot fetch in progress, stuck at '1', stops the execution of the message lists. The frames go on with their synchronization messages, and BC_FRAME_COUNT and BC_STATUS.FRAME_NUM advance, but no slot is executed: the result words and the frame counts (word 12) of the descriptors stay unchanged. The host detects it from a descriptor that is executed in every frame: its frame count stays behind BC_FRAME_COUNT by more than two frames while BC_STATUS.ACTIVE = 1. The host recovers with BC_COMMAND.STOP and then BC_COMMAND.START; a role error ends the state as well. This case is established by design analysis, not verified by test.

The integrator:

  • enables the TMR of the synthesis tool for the core and the logic around it,
  • checks in the synthesis report that TMR was applied, that the synchroniser chains of the crossings were not triplicated a second time, and that no register-based storage meant to be protected by TMR was inferred as a RAM primitive,
  • requests safe state machines, so that synthesis keeps the when others branches (AMD Vivado: property FSM_SAFE_STATE = default_state on the state registers; Synplify: attribute syn_encoding = safe),
  • protects the configuration memory of SRAM-based FPGAs by scrubbing; this is part of the FPGA design, not of the core.

The ECC paths are verified in simulation by error injection. Whether the protection as a whole meets the requirements of a mission is shown by a radiation test with the core in operation (TRL 5).

8. Performance and timing

All values are at the core ports, measured in simulation by the test cases of the core verification report unless stated otherwise. H = ClkFreq_g / 2 MHz is the number of cycles of a half bit. The RT verification report (section 3) gives the timing of the remote terminal measured in all its configurations: response time, mode code indications, time-outs and its requests on the memory port; the BC verification report (section 3) the timing checks of the bus controller and the BM verification report (section 3) those of the bus monitor.

8.1 Response time

The RT presents its status word so that its mid-sync crossing comes RESP_TIME cycles after the reference crossing of the last word (+/- 1 cycle). RESP_TIME is effective from rtRespMin to 24H cycles (12.0 us); a smaller value acts as rtRespMin, a larger one as 12.0 us. The reset value is 6.0 us. rtRespMin is the decision time of the RT and depends on the generics:

rtRespMin = max(8H, 6H + SyncStages_g + F + MemLatency + 13) cycles, with the glitch filter length F = ceil(50 ns x ClkFreq_g) + 1

ClkFreq_g SyncStages_g MemLatency rtRespMin
16 MHz 2 3 (defaults) 68 cycles (4.25 us)
16 MHz 4 3 70 cycles (4.375 us)
16 MHz 2 7 72 cycles (4.5 us)
16 MHz 4 7 74 cycles (4.625 us), from the formula
28 MHz and above 2 to 4 2 to 7 8H cycles (4.0 us); simulated at 100 MHz (400 cycles) and 400 MHz (1600 cycles)

The response time is within one cycle of RESP_TIME for every value from below rtRespMin to above 12.0 us, for receive, transmit and mode commands, in every simulated configuration, also with host reads at the shortest response time (TC-CORE-04). A memory request of the RT waits at most one cycle behind a host access, and rtRespMin includes that wait, so host traffic does not change the response time.

8.2 Bus timing

Quantity Value
Bit rate 1 Mb/s, a half bit exactly H cycles; words of a transmission contiguous (20 us per word)
Contiguous received word Mid-sync crossing 2.0 us +/- 0.4 us after the reference crossing of the word before
Word count too low Detected 21.0 us after the event of the last word received
RT to RT transfer, receiving RT First data word at most 57.0 us after the reference crossing of the receive command (MIL 30.9)
Fail-safe A transmission longer than 700 us is cut (measured: 700 us to 700 us + 2 cycles); the transmitter stays off until a valid command on that bus. The longest transmission of the RT is 33 words, 660 us
After a message error Command words on the bus of the message are evaluated again once its line has been idle for 1.0 us
New command Accepted at any time after a message, also in the cycle after its last word; a valid command on either bus supersedes the message in progress

8.3 Indications and data availability

Event Time
Rt_TimeSync, Rt_SelfTestReq RESP_TIME - 3H - 2 cycles (+/- 1) after the reference crossing of the mode command
Rt_FrameSync with Rt_SyncData RESP_TIME - 3H - 2 cycles (+/- 1) after the reference crossing of its data word
Rt_ResetReq First cycle after the end of the status word; for a broadcast command the presentation cycle
Receive data published When the status word has been sent completely; a broadcast message in the cycle in which the status word would be presented. A message superseded while its status word is sent is not published
Event record Written after the publication (three accesses for the publication, eight for the record); LOG_WR_IDX and the flag RECORD follow its last word
Frame number in subaddress 1 transmit word 1 Current from the presentation cycle of mode code 17 on: the word is read from a register when it is transmitted
Time message in subaddress 29 transmit words 0 to 4 Current from the publication of the time message on
New transmit buffer Sent from the first transmit command whose control word read follows the control word write of section 6.4

The interrupt flags follow the indications by one cycle and Irq by one more.

8.4 Host port and buffer memory

Quantity Value
Read of the memory window MemLatency + 3 cycles from the read address handshake to the read data handshake: 5 to 10 cycles (6 with the defaults), also beside back-to-back messages
Write to the memory window Answered at once; the word is written in the next cycle, whatever the RT requests
Read of a word with a double error SLVERR 129 cycles after the read address handshake
Wait of an RT memory request At most one cycle, also while the BC or the BM requests in every cycle
Wait of a BM memory request Only behind host accesses and the RT; the requests of the BM never delay the RT
Initialisation 8192 cycles after the reset: 512 us at 16 MHz, 82 us at 100 MHz, 20.5 us at 400 MHz
Scrub pass 8192 words; with ScrubPeriod_g = 1 ms one pass per millisecond (measured 996 to 1007 us); with 0.0 in every cycle without an access

The host sequences of sections 6.3 and 6.4 were run against back-to-back messages on both buses in every simulated configuration: 324 to 436 complete receive reads, 40 or 41 of them repeated after a publication, every one a valid message; 161 to 198 transmit buffer versions with 731 to 904 waits for TX_IN_USE, every transmitted message one complete version.

8.5 Bus controller

Quantity Value
Frame period Exactly D between the mid-sync crossings of the command words of consecutive synchronization messages
Frame start signal Bc_FrameSync exactly txLatency = 2 cycles before the start of the sync of the synchronization message; the frame start (its mid-sync crossing) 3H + 2 cycles after Bc_FrameSync
Frame 0 after the tick Bc_FrameSync BC_TS_DELAY + SyncStages_g + 5 cycles after the first clock edge at which Bc_TimeTick is '1', BC_TS_DELAY + 4 cycles after the command BC_COMMAND.TICK (measured within BC_TS_DELAY + 40 cycles of its write at the host port), when the latch walk and the message in progress are complete by then
Last frame without a tick Ends BC_TICK_TIMEOUT + 0 to 10 us after the previous tick
Timed slot Mid-sync crossing of its command word exactly its start time after the frame start
Gap Exactly BC_GAP after a word of the BC; after a received word 0.5 to 2 cycles longer, never shorter
No-response time-out A status word whose mid-sync crossing comes up to BC_TIMEOUT after the reference crossing of the last word before it is a response, a later one is no response, accurate to about 1.5 cycles. Without any line activity the next command starts BC_TIMEOUT + SyncStages_g + F + 6 cycles + txLatency after the reference crossing
Word count Too low: decided 21.0 us after the event of the last word received; too high: the line still active 2.0 us after the reference crossing of the last expected word
Latch walk At most 6 cycles per slot plus about 3 x (MemLatency + 3) cycles: 256 slots in less than 100 us at 16 MHz and 16 us at 100 MHz. BC_LATCH_TIME = 200 us (the reset value) covers 256 slots at every clock frequency; with 20 us a list of 256 slots starts late below 38.4 MHz
First frame after the start When the latch walk of its list is complete; a start right after a message of the RT delays it by at most MemLatency + 26 cycles (the last memory jobs of the RT)
Role error The transmission of the BC ends within the word in progress, at most 20 us + txLatency + 2 cycles after the error; no further word on either bus

The worst-case duration of a message, from the presentation of its command word to the earliest presentation of the next one, decides the frame guard (section 6.12):

txLatency + 40H x w_bc + r x (BC_TIMEOUT + 37H) + 40H x w_rt + BC_GAP cycles

with w_bc the words that the BC sends (command words, data words), w_rt the data words that the RTs send and r the number of status words expected (0, 1 or 2). A message of 32 data words to one RT with the reset values takes at most about 700 us. A request of the BC on the memory port waits behind host accesses and, once at its start, behind the last jobs of the RT; the timing above was verified with a memory that holds the requests of the BC back at random (o1553_bc verification report, section 2).

8.6 Bus monitor

Quantity Value
Response window A status word whose mid-sync crossing comes up to BM_TIMEOUT after the reference crossing of the word before it is taken, a later one gives "no response", accurate to 2 cycles; BM_TIMEOUT is bounded to at least 14.0 us
Response time and gap in a record Within 2 cycles of the time from the reference crossing of the word before to the mid-sync crossing of the word at the receiver ports; for a status word of the core beside the RT, its response time at the ports plus the loop delay of the transceiver (section 4.3)
Time tag TIME_TAG at the word event of command word 1, rxLatency cycles after its reference crossing
Duration of line activity without a word Within 1 cycle of the time in which the decoder saw the line active (o1553_codec CD-DE-13)
End of a message without a response Its record is written from BM_TIMEOUT + 36H + rxLatency + 2 cycles after the word event of the command word, within 60 cycles
Throughput No record lost with one message or word record and one activity record per bus and word time on both buses, every memory request waiting one cycle and no request served in 20 cycles of each word time (the host and the RT), at 16 and 100 MHz; the budget holds at every clock frequency (o1553_bm architecture section 7)
Load in the core 24 messages of 32 data words back to back on both buses in turn while the host reads the ring and runs the receive sequence of section 6.3: a record of every message, the sequence numbers without a gap, BM_LOST 0, the response time of the RT within one cycle of rtRespMin

The response time of the RT and the waits of its memory requests are those of sections 8.1 and 8.4 with the BM active: the BM takes the memory only when neither a host access nor the RT does.

9. Integration constraints

Constraint Reason
ClkFreq_g equals the frequency of Clk, an integer multiple of 2 MHz from 16 MHz to 400 MHz; the oscillator meets +/- 0.1 % accuracy and long-term stability and 0.01 % short-term stability The bit rate, the response time, every protocol timer and the time tag are derived from it (D1, MIL 4.3.3.3)
RESP_TIME / ClkFreq_g + t_rx + t_tx at most 12.0 us The response time is measured at the core ports; at point A the transceiver delays add (section 4.3, MIL 4.3.3.8)
One transceiver per bus with the logic contract of section 4.3; zero crossings at the receiver outputs within +/- 150 ns of their nominal intervals; the echo of an own word, if the transceiver passes it, within 1.0 us Word validation and own-word marking of the decoder (MIL 4.5.2.1.2.1, 4.5.2.2.2.1)
CONTROL.MON_EN cleared for a transceiver without an echo Otherwise every transmitted word is a loopback error and sets the terminal flag
Address straps with odd parity at the terminal connector; address 0 to 30 ECSS 5.5.2; an invalid address makes the RT silent (MIL 30.3)
set_false_path from Bus_RxP, Bus_RxN, Rt_Addr, Rt_AddrParity, Bc_TimeTick and Rst, or the Open Logic constraint scripts of olo_intf_sync and olo_base_reset_gen (AMD Vivado) The inputs and the reset enter triplicated synchronisers
Output flip-flops of Bus_TxP, Bus_TxN and Bus_TxInh placed in the I/O blocks The transmit signals come from registers; equal delays keep the zero crossings of the transmitter within its tolerance (MIL 4.5.2.1.1.2)
TMR of the synthesis tool enabled for the core The core protects its buffer memory and synchronisers itself and relies on TMR for all other logic (section 7)
Safe implementation of state machines enabled in the synthesis tool Keeps the when others recovery of the state machines (section 7)
The host follows the sequences of section 6 and writes only its own words of the buffer memory (control words, tables, transmit buffers) Every word has one writer; the sequences give consistent messages without a lock (D9)
A read that depends on a write waits for the write response; a master does not issue reads continuously while it has writes to make; memory writes use whole 32-bit words Order of the accesses at the host port (section 4.1)
Time-outs of the interconnect between the host and the core longer than 130 cycles of Clk A read of a word with a double error is answered with SLVERR after 128 cycles (section 7)
The event log is served before 255 records are unread A further record overwrites the oldest unread one (section 6.5)
Records with error code 10 or 14 are served with the repair of section 7 A double error in a status word or a message count stays until the host repairs the descriptor
BC_TIMEOUT / ClkFreq_g - t_rx - t_tx within 14 to 22 us, or 18 to 30 us with one bus repeater The time-out of the BC is measured at the core ports; at point A the transceiver delays shorten it (section 4.3, MIL 4.3.3.9, ECSS 6.2.2a)
Bc_TimeTick with pulses and pauses of at least two cycles of Clk A rising edge after two cycles of '0' is a tick (section 4.7)
Bc_FrameSync and Bc_FrameNum registered before they leave the device or enter another clock domain Combinational outputs (section 4.7)
ErrInj_RoleFlip tied to '0', ErrInj_BmValid to "00" in a flight design Test inputs of the role protection and of the message buffers of the BM (section 4.6)
The messages of each frame fit into D - BC_LATCH_TIME by their worst-case durations; BC_TS_DELAY covers the longest message of the last frame and the gap A message that would run into the latch window is not sent; the time synchronization message waits for the message in progress (sections 6.12, 8.5)
While the BC is active, the host changes only control words, free transmit buffers and the frame table entries of frames other than the current and the next one The BC reads the rest of the bus profile at any time (section 6.11)
CONTROL.RT_EN = 0 before BC_COMMAND.START; set again by the host after a stop or a role error The BC starts only with the RT disabled, and the RT stays disabled after the BC role (section 6.10)
BM_CONTROL.EN = 0 before BC_COMMAND.START A start of the BC is refused while the BM is enabled or active (sections 6.10, 6.15)
The ring and the filter table of the BM in words that no other writer uses: not in the regions of an enabled RT, not in the event log, apart from a bus profile of the BC; the filter table at a multiple of 256 words The BM writes the ring and reads the filter table at any time while it is active (section 6.16)
The filter table, BM_TIMEOUT, BM_RING_BASE, BM_RING_SIZE, BM_FILTER_BASE and the bits of BM_CONTROL other than EN written while the BM is inactive, and BM_READ_INDEX = 0 before EN is set The BM takes them at its start and starts the ring at write index 0 (section 6.15)
Every bus that the BM monitors enabled in CONTROL.BUS_EN; BM_TIMEOUT set to the time-out of the bus controller of the bus The decoder of a disabled bus reports no words; the response window of the BM (section 4.3, I25)
The ring of the BM served before it fills A record that does not fit is lost and counted (section 6.18)

10. Conformance

10.1 Scope

Release 0.3.1 of Open1553 is a MIL-STD-1553B terminal on a dual standby redundant bus that runs as a remote terminal or, with IncludeBc_g, as a bus controller, one role at a time, with the RT and the BC functions of the ECSS-E-ST-50-13C services, and with IncludeBm_g contains a bus monitor that runs alone or beside the remote terminal. It implements every RT, BC and BM clause of MIL-STD-1553B (Notice 2) and of the data link layer of ECSS-E-ST-50-13C, the digital part of the physical layer, and the ECSS services listed in section 10.4. The requirements of ECSS-E-ST-50-13C on a bus controller hold with the ECSS profile of the BC, its reset value (section 6.13). The data block transfer engines are phase d; the clauses that need them are not implemented in this release. The analogue parts of the bus (transceivers, transformers, stubs, cables, connectors) are outside the core. The compliance matrix lists the requirements and test cases of every clause.

10.2 MIL-STD-1553B

Clauses Content Open1553 0.3.1
4.2, 4.3.1 to 4.3.3.5.3.12, 4.3.3.5.4 Data bus operation, data form, bit priority, modulation, data code, bit rate, word size and word formats Implemented
4.3.3.5.1.7 to 4.3.3.5.1.7.17, 30.4.2.1, 30.4.3, 30.4.4 Mode codes of Table I Implemented: the RT decodes and executes all mode codes; dynamic bus control is rejected (I7), the self test runs in the host application (I6), the selected transmitter shutdown serves the two buses of the core (I5). The BC sends them as its profile allows (section 6.13)
4.3.3.6 to 4.3.3.6.7.4, 30.4.1, 30.6, 30.8 Message formats, broadcast Implemented: the RT and the BC handle every format including broadcast and RT to RT transfers (I1, I2); the profile of the BC selects the formats it sends (I22, D25)
4.3.3.7 Intermessage gap Implemented: BC_GAP, at least 4.0 us, measured at the core ports (I19, section 4.3)
4.3.3.8 Response time Implemented, measured at the core ports (I11, section 4.3)
4.3.3.9 Minimum no-response time-out Implemented: the time-out of the BC (BC_TIMEOUT, at least 14.0 us at the ports, I19, section 4.3) and of the receiving RT of an RT to RT transfer (30.9)
4.4.1.1 to 4.4.1.3 Word validation, transmission continuity, terminal fail-safe Implemented; in the BC role the host releases a transmitter cut by the fail-safe timer (I20)
4.4.2, 30.4.2.2 Bus controller operation, bus controller mode codes Implemented: message lists in frames, status word checks, no automatic retries, transmission only on an idle line; every mode code of Table I can be sent (MIL and open profiles), dynamic bus control ends the BC role after an acceptance (I21)
4.4.3.1 to 4.4.3.6 Remote terminal operation: superseding, invalid and illegal commands (I8), valid and invalid data reception Implemented
4.6.3 to 4.6.3.2 Dual standby redundant data bus Implemented; the BC sends on one bus at a time, chosen per message (section 6.13); the BM monitors both buses and marks a message superseded by a command on the other bus (section 6.17)
30.3, 30.5.1 to 30.5.3, 30.7, 30.9 Unique address (I12), status word, busy bit (I9), data wrap-around, RT to RT validation Implemented
4.5.2.1.1.2, 4.5.2.2.1.2 Output waveform Partly: the timing of the transitions in the core; amplitude, waveform and noise belong to the transceiver
4.5.2.1.2.1, 4.5.2.2.2.1 Input waveform compatibility Partly: the zero-crossing deviation in the decoder; the other properties belong to the transceiver
4.5.2.1.2.4, 4.5.2.2.2.4 Noise rejection Partly: word validation in the core, verified in simulation; the noise rejection test needs the transceiver (TRL 4)
4.4.4 Bus monitor operation Implemented with IncludeBm_g: the BM records the messages of both buses, the words outside a message and the line activity without a word, selected by its filter table per RT address, T/R bit and subaddress; it runs alone, with no response to any command, or beside the RT, which answers its own address only; never beside the BC (D27 to D30, I25, sections 6.15 to 6.18)
4.1, 4.5.1, 4.5.2 (other clauses), 4.6.1, 4.6.2, 30.10 Test and operating requirements, bus and terminal electrical characteristics, isolation, single event failures of the bus routing, connectors Outside the core (target device, transceiver, harness and board)
30.1, 30.2 Option selection and application No requirement on a terminal

The applicability matrix and statement of non-compliance of ECSS 5.2a and 6.1a for the core:

Clauses Content Open1553 0.3.1
5.3a to d, 5.4, 5.5.1, 5.5.3 Data bus characteristics, terminal characteristics, connectors and pin allocation Not applicable to the core: harness, transceiver and board
5.3e, f Redundant or non-redundant data bus Implemented: two buses, either one disabled by CONTROL.BUS_EN
5.5.2 Address straps and parity Implemented in the core; the straps are on the board
5.6a Transmission method Implemented
6.2.1.1a Data word formats Implemented
6.2.1.2.1b, 6.2.1.2.2, 6.2.1.2.3b, 6.2.1.2.4b, 6.2.1.2.5 Mode code usage and reaction of the RT, terminal status word Implemented (I4 to I7, I9, I10); the BC reports a status word with the busy bit (6.2.1.2.5a.7, BC_BUSY)
6.2.1.2.1a, 6.2.1.2.3a, 6.2.1.2.4a Mode commands of the bus controller Implemented in the ECSS profile of the BC: mode commands only on subaddress 31, mode code 16 only with the service request condition, the mode codes that are not recommended refused (section 6.13)
6.5a No automatic retries Implemented: the BC sends each message of a slot at most once, in every profile
6.2.2a Messages and response time-out Implemented: the time-out of the BC is BC_TIMEOUT, 14 to 22 us or 18 to 30 us at point A as the integrator chooses it (I19, section 4.3); the ECSS profile of the BC sends no RT to RT transfer, and the RT supports them for other missions (I1)
6.3a Terminal operation Implemented for the RT, the BC and the BM
6.4a to d Subaddress usage Implemented with the default tables of the RT (I8) and the ECSS services of section 6.9; the ECSS profile of the BC refuses data messages to subaddresses 0 and 8

The core meets every requirement on a remote terminal, on a bus controller and on a bus monitor in sections 5 and 6 that concerns its logic, the requirements on the bus controller with its ECSS profile; there is no statement of non-compliance for these clauses.

10.4 ECSS-E-ST-50-13C: functions and services

The selection of ECSS Annex A, Table A-1, for an RT and a BC with Open1553 0.3.1:

Function or service Clauses Open1553 0.3.1
Time distribution 8.2.1.1a to e, 8.2.1.2a to e, 7.1.1a RT side implemented: time message on subaddress 29, copy to subaddress 29 transmit (I13), delivery by record and interrupt. BC side implemented: the time message is a BC to RT message to subaddress 29, to one RT or in broadcast, with the data words of the host (TimeData.Submit); the ECSS profile checks its frame window and its word count (I18, section 6.13)
Time synchronization 8.2.2.1a to g, 8.2.2.2a to c, 7.1.2a RT side implemented: mode code 1 with Rt_TimeSync and the flag TIME_SYNC; the order of time message and synchronisation (8.2.2.2d) belongs to the host application. BC side implemented: mode code 1 in broadcast BC_TS_DELAY after the tick of the time master, from Bc_TimeTick or BC_COMMAND.TICK (I15, section 6.12)
Communication synchronization 8.3.1.1a to l, 8.3.1.2a, b, 8.3.2.1a to h, 8.3.2.2a, b, 8.3.3a to c, 7.2.1a RT side implemented: mode code 17 with Rt_FrameSync, SYNC_DATA, the frame number in subaddress 1 transmit word 1. BC side implemented: frames with time synchronization (the second method of 8.3.1.1c: the last frame ends at the tick) and without, the frame synchronization message, Bc_FrameSync with Bc_FrameNum (I16, I17), the accurate message transfer with timed slots (section 6.13)
Set data, get data 8.4, 8.5, 7.3, 7.4 RT side: receive and transmit subaddresses with consistent buffers (8.5.2a, sections 6.3 and 6.4). BC side implemented: descriptors with two buffers, the latch at the end of each frame (D23), the frame guard, the results per message; the ReadStatus and ReadData values follow from the results in the host software (I23, I24, section 6.14)
Data block transfer 8.6 Consistent acquisition transfer request (8.6.2.2e) implemented; the transfer engines of the RT and the BC are phase d, until then the host software runs the protocol
Terminal management 8.7.1 to 8.7.4 RT side implemented: RT health word (I3), terminal configuration commands (I14), data wrap-around. BC side of the data wrap-around (8.7.4c) implemented: a BC to RT and an RT to BC message on subaddress 30 in one list; the host compares the words (section 6.13)

10.5 Managed parameters

Values of the managed parameters of ECSS Annex A, Table A-2, that concern the core:

Parameter Open1553 0.3.1
Redundant or non-redundant bus Either: CONTROL.BUS_EN; the transmitter shutdown and override mode codes are implemented
Use of the dynamic bus control mode command RT: rejected with the status bit 0 (I7); legal in the default table, illegal by table if not used. BC: refused in the ECSS profile; in the MIL and open profiles an acceptance ends the BC role (I21)
Use of the inhibit terminal flag mode command Implemented, with the override and the terminal flag bit
Use of the reset remote terminal mode command; RT and subsystem reset time Implemented; the RT resets within a few cycles after its status word and answers again unless the host keeps it disabled while the subsystem resets (I4); the reset time of the subsystem is defined by the application
Use of the transmit vector word mode command; content of the vector word Implemented; the content is the application's (VECTOR)
Use of the service request bit, of the subsystem flag bit Set by the host (TERM_COND)
Use of bus repeaters The BC time-out BC_TIMEOUT is set for 14 to 22 us or, with one bus repeater, 18 to 30 us at point A (section 4.3); the RT accepts either
Time format (P-field); time message in broadcast or direct RT: words 0 to 4 of the time message are copied unchanged, whatever their format; broadcast and direct time messages are accepted (I2). BC: the host writes the P-field and the time; the ECSS profile checks the word count against the P-field (I18); broadcast or direct by command word 1
Delay of the received time indication The record and the interrupt RECORD of subaddress 29 follow the publication of the time message (section 8.3)
Nominal period of time synchronization requests The period of the tick of the time master at Bc_TimeTick or BC_COMMAND.TICK; a tick missing for BC_TICK_TIMEOUT is reported (section 6.12)
Delay and jitter from the time synchronization request The sync of mode code 1 starts BC_TS_DELAY + SyncStages_g + 7 cycles after the first clock edge at which Bc_TimeTick is '1' (one cycle of jitter against the asynchronous tick), when the delay covers the message in progress and the gap (I15, section 8.5)
Delay and jitter of the synchronization indications RESP_TIME - 3H - 2 cycles after the reference crossing of the mode command or its data word, +/- 1 cycle (section 8.3)
Communication frames per second or per time synchronization cycle BC_FRAMES.N, 1 to 256 (2 to 256 with time synchronization), frame duration BC_FRAME_TIME
Method of the frame duration adjustment The last frame of a cycle ends at the tick, all others last D (the second method of ECSS 8.3.1.1c)
Delay and jitter from the synchronization indication of the BC to the frame synchronization message txLatency = 2 cycles from Bc_FrameSync to the start of the sync, without jitter (I16)
Time to copy the frame number to subaddress 1 transmit None: current from the presentation cycle of mode code 17 on
Use of the accurate message transfer; message delays Timed slots with a start time of 0 to 2^20 - 1 us after the frame start, exact to the clock cycle at the core ports (section 6.13)
Output data buffer refresh time The host's sequence of section 6.4; a new buffer is sent from the next transmit command after the control word write
Deep or flat subaddressing for data distribution Host software until the engines of phase d

10.6 Interpretations

Where the standards are open, optional or differ from each other, Open1553 behaves as the interpretations of the architecture (section 6) state; the module specifications add the interpretations of their clauses.

ID Item Open1553
I1 RT to RT transfers Both directions implemented with the validation of MIL 30.9
I2 Broadcast data messages Accepted where the broadcast table allows them, recorded as broadcast
I3 Bit numbering Bit 0 is the least significant bit; mapped ECSS fields as section 6.7 and 6.9 state
I4 Reset remote terminal Status word, reset of the protocol state, silent until the reset is complete; a longer silent period by the host
I5 Selected transmitter shutdown Data word 0 bus A, 1 bus B; never the bus of the command
I6 Initiate self test Indication to the host; the RT keeps answering normally
I7 Dynamic bus control Offer rejected; the RT never becomes a bus controller by a mode command
I8 Illegal command detection Tables in the buffer memory with defaults
I9 Busy bit Set by the host; transmit data withheld, receive data not published, mode codes executed
I10 Status word reset Mode codes 2 and 18 leave the status word unchanged; persisting conditions set their bits again
I11 Measuring point Core ports; the transceiver delays add at point A (section 4.3)
I12 Address 31 on the straps Invalid address
I13 Partial time message Words beyond the word count read 0
I14 Word ranges of subaddress 1 Tables 8-7 and 8-9 apply; words 0 and 1 used by the hardware
I15 Time synchronization message after the tick BC_TS_DELAY after the tick, exact to the clock cycle when the delay covers the message in progress and the gap; otherwise after them, reported as late
I16 Frame start signal Bc_FrameSync txLatency cycles before the sync of the synchronization message
I17 Frame numbers without a tick Frames continue every D, the numbers counting on modulo 256
I18 Time message The words of the coarse time are always sent: word count 3 + ceil(f / 2); window from 10 ms after frame 0 to the frame with index N-2
I19 Measuring point of the BC gap and time-out Core ports; the transceiver delays change them at point A (section 4.3)
I20 Fail-safe of a BC The host releases a cut transmitter (BC_COMMAND.FS_CLR)
I21 Dynamic bus control at the BC Refused in the ECSS profile; in the MIL and open profiles the BC ends after an acceptance
I22 Broadcast at the BC ECSS profile: the broadcast mode commands of Table I and the time message; MIL profile: the broadcast mode commands
I23 Set Data and Get Data timing The latch at the end of each frame for the data of the host; the frame guard keeps every transfer within its frame
I24 ReadStatus and ReadData Computed by the host software from the results of the descriptors of an identifier
I25 Command and status words at a bus monitor Decided by context and timing, not by the instrumentation bit: the next command sync word within BM_TIMEOUT where a status word is expected is the status word; a status word with message error or busy and no data words is a complete response

11. Verification and tools

python run.py -p 4                          # regression with GHDL
python run.py --questa --coverage -p 1      # code coverage with QuestaSim
python lint/lint.py                         # VSG
python run.py --compile                     # compile only, needed before synth_check
python lint/synth_check.py                  # synthesizability at the bounds of the generics, GHDL
python tools/compliance.py --check          # traceability of both standards
python tools/regmap.py --check              # generated register map up to date
python run.py --compile-order               # compile_order.txt of the synthesis sources

Every module has a specification, an architecture, a verification plan and a verification report in hdl/<module>/docs/. The core tests in hdl/o1553_core/tb drive only the ports of o1553_core: a bus model on both buses, written independently of the RTL, as bus controller and second RT of the RT role and as the bus controller and the other terminals of the bus monitor, the remote terminal model of the repository bench on both buses as the remote terminals of the BC role, and the UVVM AXI4-Lite VVC as the host, which reads the records of the BM through the memory window.