Skip to content

Open1553 Architecture

Version 0.3. This file is the reference for the architecture and is versioned with the code.

1 Purpose, scope and references

This document defines the architecture of Open1553, a MIL-STD-1553B terminal for spacecraft data buses that follows ECSS-E-ST-50-13C. Together with the two standards it is the complete basis for the implementation: it fixes the building blocks, their interfaces, the clauses each block owns, the Open Logic entities each block is built from and the phase in which each block is delivered.

In scope

  • Bus interface: Manchester II bi-phase encoding and decoding with the command/status and data sync waveforms, word validation, the transmitter and receiver signals of a dual-redundant bus (bus A and bus B) for external transceivers, the terminal fail-safe timer.
  • Remote terminal (RT): command validation, all message formats including broadcast and RT to RT transfers, the mode codes of MIL-STD-1553B Table I, the status word, illegal command detection, superseding commands on the same and on the other bus, response timing, data wrap-around, the RT address with parity from external straps, and the RT functions of the ECSS-E-ST-50-13C services (time message, communication frame number, health word, terminal configuration).
  • Bus controller (BC): communication frames and their synchronisation messages, time distribution, message lists, accurate message start times, response time-out and status evaluation, without automatic retries.
  • Bus monitor (BM): recording of every word on both buses with time tags, selective monitoring.
  • Data block transfer of ECSS-E-ST-50-13C clause 8.6 as hardware engines on the RT and the BC side. Until these engines exist, the host software of an RT runs the protocol on the subaddress buffers.
  • Host interface: one AXI4-Lite port for the registers and the subaddress buffer memory, interrupts, error detection and correction (EDAC) of the memory, clocking and reset, and the verification architecture.

Out of scope

  • The analogue parts of the bus: transceivers, isolation and coupling transformers, stubs, cables, terminations, connectors and their pin allocation (MIL-STD-1553B 4.5, 4.6.1, 4.6.2, 30.10; ECSS-E-ST-50-13C 5.3, 5.4, 5.5). The core drives and reads the logic-level signals of a transceiver; section 7.1 states what the target has to provide. The RT address straps of ECSS 5.5.2 are read by the core (block RT-5); the straps themselves belong to the board.
  • More than two redundant buses. The selected transmitter shutdown mode codes are implemented for the two buses of the core (interpretation I5).
  • Acceptance of dynamic bus control: the terminal never takes over the bus controller function from a mode command (interpretation I7).
  • The environmental and qualification requirements of MIL-STD-1553B 4.1 and the system-level test specification of ECSS-E-ST-50-13C clause 9. They belong to the target device and to the project.

Target technology

Open1553 contains no vendor code. The receivers sample the transceiver outputs with the core clock, the encoder derives the bit rate from the core clock with an integer divider, and the RAM, the synchronisers and the reset generator are Open Logic entities. The core therefore runs on any FPGA. The transceiver is outside the FPGA; its logic signals connect to ordinary I/O pins.

Project

Open1553 is an open MIL-STD-1553B implementation that is based on the Open Logic VHDL Library. The code lives in open-space-hdl/open1553 under the PSI HDL Library License, Version 1.0, the licence of Open Logic. Open Logic is pinned to the tag 4.7.0-ft.11 (227eecd) of the branch fault-tolerant of open-space-hdl/open-logic-ft, the fault-tolerant fork of Open Logic.

References

ID Document Version used
[MIL] MIL-STD-1553B, Digital time division command/response multiplex data bus Notice 2, 8 September 1986 (requirements and numbering unchanged by Notices 3 and 4)
[ECSS] ECSS-E-ST-50-13C, Interface and communication protocol for MIL-STD-1553B data bus onboard spacecraft 15 November 2008
[OLO] Open Logic, fault-tolerant fork, branch fault-tolerant 4.7.0-ft.11 (227eecd)

MIL-STD-1553C (28 February 2018) supersedes MIL-STD-1553B and keeps the clause numbers of its section 4; the appendix sections 10 and 30 of MIL-STD-1553B are the sections A.1 and A.2 of MIL-STD-1553C. This document uses the MIL-STD-1553B numbers because [ECSS] cites them.

Conventions

  • Requirement references name the standard and the clause: [MIL] 4.3.3.8 or MIL 4.3.3.8, [ECSS] 8.2.1.2a or ECSS 8.2.1.2a (with the requirement letter). A range such as 4.3.3.5.1.7.1 to 4.3.3.5.1.7.17 means all clauses in between.
  • Bit numbers: [ECSS] numbers the most significant bit of a field as bit 0. Registers, memory words and the VHDL code of Open1553 number the least significant bit as bit 0. Where a field of [ECSS] is mapped, the module specification gives both numbers (interpretation I3).
  • Coding conventions: those of Open Logic (naming, two-process style, synchronous high-active resets, VSG rules), entity prefix o1553_, VHDL library open1553; see conventions.md.
  • "FT" (fault-tolerant) means the Open Logic olo_ft_* entities (SECDED ECC on every RAM) and the triplicated synchronisers of the Open Logic entities (SyncTmr_g = true: three synchroniser chains and a majority voter).
Term Meaning
BC, RT, BM Bus controller, remote terminal, bus monitor ([MIL] 3.5, 3.15, 3.6)
CW, SW, DW Command word, status word, data word ([MIL] 4.3.3.5)
SA, WC Subaddress, data word count ([MIL] 4.3.3.5.1.4, 4.3.3.5.1.5); SA nT and SA nR are the transmit and receive sides of subaddress n ([ECSS] 3.4.2)
ME, BCR, TF, SSF, SR, DBCA Message error, broadcast command received, terminal flag, subsystem flag, service request, dynamic bus control acceptance bits of the status word
CF, TSC Communication frame, time synchronization cycle ([ECSS] 3.2.3, 3.2.6)
DTD, DTC, ATR, ATC Distribution transfer descriptor and confirmation, acquisition transfer request and confirmation ([ECSS] 8.6)
Reference crossing The mid-bit zero crossing of the parity bit of a word: the point from which [MIL] measures response time, gaps and time-outs
SEU Single event upset

2 MIL-STD-1553B functional overview

A MIL-STD-1553B bus connects one bus controller with up to 31 remote terminals and any number of bus monitors over one or more buses. All transfers are messages that the BC starts with a command word; an RT answers only when commanded. [ECSS] adds the conventions of spacecraft use: a nominal and a redundant bus, a fixed subaddress map, communication frames, time distribution, data block transfer and terminal management services.

Function Terminal [MIL] clauses [ECSS] clauses
Manchester II code, bit rate, word formats, sync waveforms, parity all 4.3.1 to 4.3.3.5 5.6
Word validation, transmission continuity, fail-safe all 4.4.1 6.3
Command validation, message formats, broadcast, response time RT 4.3.3.6, 4.3.3.8, 4.4.3, 30.6, 30.8, 30.9 6.2.2
Mode codes RT, BC 4.3.3.5.1.7, 30.4 6.2.1.2.1 to 6.2.1.2.4
Status word RT 4.3.3.5.3, 4.3.3.5.4, 30.5 6.2.1.2.5
Unique address, data wrap-around RT 30.3, 30.7 5.5.2, 8.7.4
Dual standby redundant bus all 4.6.3 5.3e, f
Intermessage gap, no-response time-out, message scheduling BC 4.3.3.7, 4.3.3.9, 4.4.2 6.2.2, 6.5, 8.3, 8.4, 8.5
Bus monitoring BM 4.4.4 4.3.1 (informative)
Time and communication synchronization services BC, RT 4.3.3.5.1.7.2, 4.3.3.5.1.7.12 7.1, 7.2, 8.2, 8.3
Data block transfer service BC, RT none 7.5, 8.6
Terminal management services BC, RT 30.7 8.7
Electrical characteristics of bus and terminals none (board) 4.5, 4.6.1, 4.6.2, 30.10 5.3, 5.4, 5.5

Four properties of the standards shape the architecture more than any single feature:

  • A message is valid only as a whole. An error in any data word, a wrong word count or a gap invalidates the entire message ([MIL] 4.4.3.6). Received data therefore becomes visible to the host only after the last word has been validated, never word by word.
  • Timing is measured from the reference crossing of the last word. The response time of 4.0 to 12.0 us ([MIL] 4.3.3.8), the no-response time-out of 14.0 us (4.3.3.9) and the RT to RT time-out of 57.0 us (30.9) all start there. The decoder reports this instant with every word, and every timer of the protocol starts from it.
  • Dual standby redundancy is one terminal on two buses. Both receivers listen at all times, a valid command on the other bus supersedes the message in progress ([MIL] 4.6.3.2), and the terminal answers on the bus of the command. There is one protocol engine and one transmitter, but two decoders.
  • A status word looks like a command word. Both use the command sync ([MIL] 4.3.3.5.3.1); only the position in the message tells them apart. The RT never treats the words of its own transmission or of a status response as a command, and the bus monitor reconstructs messages from their context.

3 Design drivers

Driver Consequence
Use in space: single event upsets in the RAM, in registers and in the synchronisers SECDED ECC on the buffer memory with a scrubber, TMR synchronisers on the reset, the receiver inputs and the address straps, state machines with a recovery state, an EDAC monitor, the TMR of the synthesis tool for all other logic (P5)
Conformance that a project can claim Every clause of both standards is owned by a block or stated out of scope; the RT functions of [ECSS] that the bus can observe run in hardware (D12)
Deterministic bus timing Response time and every time-out derived from the reference crossing and the core clock, independent of host and memory activity (D6, D8)
Technology independence A sampling decoder and an integer bit-rate divider in one clock domain; no vendor primitive (P10)
Integration One AXI4-Lite port for registers and buffers, plain transceiver signals, interrupt output, sync and reset indications as ports (P7)
Verifiability Every block is verified through its ports, against an independent bus model in continuous time (P8, section 9)
Reuse Every generic function comes from Open Logic; custom logic is limited to the MIL-STD-1553B and ECSS functions (P9)

4 Design goals

Goal Implementation
Defined handshakes between blocks Every internal data path is a valid / ready stream or a stream of one-cycle events (P2)
Correct state semantics Received words and messages are one-cycle events with a defined source; every register has a specified reset value (P4)
One protocol function per block A block implements one function of the standards; no clause is owned by two blocks (P1)
No clock domain crossing inside the core One clock domain; only the asynchronous inputs are synchronised (D1)
Fault tolerance FT RAM with scrubbing, triplicated synchronisers, state machines with a recovery state, contained double errors (P5, D14)
One host interface All registers and the buffer memory behind one AXI4-Lite port (P7)
Tests independent of the design hierarchy Tests observe only ports, registers and the buffer memory (section 9)

5 Design principles

ID Principle Rule for the implementation
P1 One protocol function per block A block implements one function of the standards (a clause group or a state machine). Its specification names the clauses it owns; no clause is owned by two blocks.
P2 Streams everywhere Every data path between blocks is a valid / ready stream (Open Logic AXI4-Stream conventions) or, where the receiver can never be slower than the source, a valid-only stream of events.
P3 One clock domain The whole core runs on Clk (D1). The receiver inputs and the address straps enter through olo_intf_sync, the reset through olo_base_reset_gen, both with SyncTmr_g = true.
P4 Explicit state semantics A received word, a completed message and a mode command are one-cycle events from the block that decodes them. Every state register has a specified reset value. Resets are synchronous and high-active inside every block.
P5 Fault tolerance by construction The buffer memory is olo_ft_ram_sp_scrub (SECDED ECC and a scrubber), the synchronisers are triplicated. State machines have a defined recovery state (D15). ECC events are counted; a double error is contained and never passed on as valid data (D14). All other logic relies on the TMR of the synthesis tool; the user guide states the protection scope in its section 7.
P6 Optional functions by configuration Options of the standards that a mission selects at run time (illegal command tables, [ECSS] services, bus enables) are configuration registers or memory tables; options that change the structure (BC, BM, data block transfer engines) are generics.
P7 One host interface All registers and the buffer memory are reached through one AXI4-Lite port; the register map is generated from a single description (VHDL package, documentation, C header).
P8 Verifiable in isolation Each module has a specification and a unit testbench that drives only its ports. Core benches connect the real blocks; the far end of the bus is a model written independently of the RTL.
P9 Reuse before design A function available in Open Logic (RAM, scrubber, synchroniser, reset generator, arbiter, AXI4-Lite slave, ECC monitor, strobe generator) is instantiated, not rewritten.
P10 No vendor code The core has no vendor primitive; the transceivers and the I/O buffers are outside the core.

6 Architecture overview

Open1553 is one terminal on a dual-redundant bus. The bus interface encodes the words of the terminal and decodes the words on both buses. The protocol engine of the active role (RT in phase a; BC and BM in later phases) validates commands, sequences the messages and exchanges data with the buffer memory. The host interface makes the registers, the buffers and the event log available on one AXI4-Lite port.

Architecture overview of Open1553: the bus interface with the transceiver interface (CD-1), the encoder (CD-2), one
decoder per bus (CD-3), the fail-safe timers (CD-4), the transmission monitor (CD-5) and the bus selector (CD-6); the
remote terminal (RT-1 to RT-6); the host interface (HI-1 to HI-6) with the buffer memory; the bus controller (BC-1 to
BC-3), the bus monitor (BM-1) and the data block transfer engines (DB-1, DB-2) of the later
phases

A message to the RT flows as follows. The decoder of the bus on which the command arrives reports each word with its reference crossing. The message sequencer (RT-1) validates the command, reads the subaddress control word and the illegal command table through the buffer access block (RT-4), stores the received data words in the buffer that the host does not see, or reads the words to transmit, and schedules the status word at the programmed response time. After the last word it publishes the received buffer, writes an event record and updates the status bits. The bus selector (CD-6) steers the encoder to the bus of the command and holds the other transmitter inhibited.

External interfaces

Interface Ports Phase Content
Clock and reset Clk, Rst a One clock (D1); asynchronous reset input, synchronised by olo_base_reset_gen
Host port S_AxiLite_* a AXI4-Lite slave, 32-bit data, 16-bit address: registers and buffer memory (D7)
Interrupt Irq a Level, high-active: an enabled interrupt flag is set (D10)
Transceiver, transmit Bus_TxP(1:0), Bus_TxN(1:0), Bus_TxInh(1:0) a Index 0 = bus A (nominal), 1 = bus B (redundant). Positive and negative halves of the Manchester signal and transmitter inhibit, per bus (D2)
Transceiver, receive Bus_RxP(1:0), Bus_RxN(1:0), Bus_RxEn(1:0) a Positive and negative comparator outputs of the receiver and receiver enable, per bus (D3)
RT address Rt_Addr(4:0), Rt_AddrParity a Address straps and their parity bit ([ECSS] 5.5.2, D17)
RT indications Rt_TimeSync, Rt_FrameSync, Rt_SyncData(15:0), Rt_ResetReq, Rt_SelfTestReq a One-cycle pulses at a fixed delay after the reference crossing of the mode command (D19)
ECC injection ErrInj_BitFlip, ErrInj_Valid a Error injection into the buffer memory (olo_ft_ram_sp_scrub semantics)
BC time input Bc_TimeTick b Time synchronization event of the on-board time master ([ECSS] 8.2.2.1c), asynchronous
BC frame start Bc_FrameSync, Bc_FrameNum(7:0) b One-cycle pulse a fixed number of cycles before the synchronization message of each frame, with the frame number (D22)
Role injection ErrInj_RoleFlip b Test input: inverts the complement copy of the role state (D20); a system ties it to '0'

Generics

Generic Range Default Phase Meaning
ClkFreq_g integer multiple of 2 MHz, at least 16 MHz none a Frequency of Clk in Hz (real, as in Open Logic); checked by an assertion (D1)
ScrubPeriod_g 0.0 or at least 1 ms 0.0 a Scrub period of the buffer memory; 0.0 = free-running scrubber in idle cycles
SyncStages_g 2 to 4 2 a Synchroniser stages of the receiver inputs and the address straps
RamRdLatency_g, EccPipeline_g 1 to 4, 0 to 2 1, 1 a Read latency of the RAM and pipeline stages of the ECC decoder of the buffer memory, for the timing of the target technology
IncludeBc_g, IncludeBm_g boolean false b, c Include the bus controller, the bus monitor
AllowOpenProfile_g boolean false b The open profile of the bus controller can be selected (D25)
IncludeDbt_g boolean false d Include the data block transfer engines

Architecture decisions

ID Decision Reason
D1 One clock domain Clk for the bus interface, the protocol engines and the AXI4-Lite port. ClkFreq_g is an integer multiple of 2 MHz and at least 16 MHz A half bit is an exact number of clock cycles, so the encoder adds no timing error to the 25 ns zero-crossing budget of [MIL] 4.5.2.1.1.2, which remains for the transceiver. 16 samples per microsecond resolve the 150 ns zero-crossing deviation of [MIL] 4.5.2.1.2.1. One domain needs no internal crossing; a host on another clock connects through an AXI4-Lite clock converter. Common clocks such as 125 MHz or 156.25 MHz are not multiples of 2 MHz and need a PLL output such as 100 or 150 MHz; the assertion message names the rule
D2 One encoder for both buses. It sends a sequence of words without gaps, with the sync of each word and odd parity; the bus selector routes it to one bus. Idle: Bus_TxP = Bus_TxN = '0' and Bus_TxInh = '1' A terminal transmits on one bus at a time ([MIL] 4.2, 4.6.3.1); contiguous words ([MIL] 4.3.3.6) need one serialiser per message, not per word
D3 One decoder per bus, always active while the bus is enabled. It classifies the time between zero crossings of the receiver outputs (after olo_intf_sync and a glitch filter) into half bits, bits and sync halves, with acceptance windows that include the zero-crossing deviation of [MIL] 4.5.2.1.2.1. Each word is reported once, as a one-cycle event with its type (command/status or data sync), 16 data bits, the result of the validation of [MIL] 4.4.1.1, its reference crossing and whether it followed the previous word without a gap Response time and time-outs start at the reference crossing (section 2); a word-level event stream lets every protocol engine and the bus monitor share one decoder per bus
D4 Dual standby: the protocol engine accepts commands from both decoders; a valid command on the other bus aborts the message in progress, including a transmission, and the terminal answers the new command on its bus. The words that the decoder of the transmitting bus receives during the own transmission go to the transmission monitor (CD-5), never to the protocol engine [MIL] 4.6.3.1, 4.6.3.2; the own transmission is not a command (section 2)
D5 Fail-safe timer per bus: a transmission that lasts longer than 700 us is cut by Bus_TxInh; the transmitter stays inhibited until a valid command arrives on that bus. The event sets the terminal flag condition and an interrupt flag [MIL] 4.4.1.3 (limit 800 us); the longest correct transmission of a terminal is 33 words, 660 us
D6 The RT starts its status word so that the time from the reference crossing of the last received word to the mid-sync crossing of the status word equals the programmed response time, measured at the core ports. The reset value is 6.0 us; the programmable range keeps the time at the bus within 4.0 to 12.0 us after the transceiver delays [MIL] 4.3.3.8 is measured at point A of the bus; the core sees the bus through the receiver delay and drives it through the transmitter delay (interpretation I11)
D7 Host port: olo_axi_lite_slave with 32-bit data. The lower half of the address space holds the registers, the upper half the buffer memory window, one 16-bit memory word per 32-bit location (bits 15 to 0; bits 31 to 16 read 0 and are ignored on writes) One port for all host data (P7); one 1553 word per address keeps the software simple
D8 Buffer memory: one olo_ft_ram_sp_scrub of 8192 words of 16 bits, shared by the host access, the RT, the BC, the BM and the initialisation (D11) in this priority through a fixed-priority arbiter, each protocol engine on a port of its own; the host access holds one access of the host and takes one cycle for it, so a request of the RT waits at most one cycle, a request of the BC as well while the RT makes none, a request of the BM only for the host access and the RT (the BC is never active beside it), and every host write reaches the memory; the scrubber works in the idle cycles ECC and scrubbing from Open Logic (P9) for data that stays in the memory for a long time (tables, transmit data); the protocol never waits longer than one host access, so the bus timing does not depend on host activity
D9 Buffer ownership and publication. Each T/R bit and subaddress has a control word that only the host writes (selected transmit buffer, enables) and two status words that only the core writes (published buffer, word count and broadcast flag of the last message; 16-bit message count). Receive: the RT writes the data words into the buffer that is not published and, after the message is valid, publishes that buffer and increments the message count; an invalid message leaves the published buffer unchanged. The host reads the message count, the published buffer and its data, then the message count again, and repeats the read when the count has changed (sequence lock: the core writes only into the buffer that is not published, so an unchanged count means that the data was not touched; the count wraps after 65536 messages, at least 2.8 s at the shortest message to one subaddress). Transmit: the RT latches the selected buffer when it validates the command and shows the subaddress and buffer in use in a register, set by the memory access that latches the selection and cleared after the last word of the message has been read. The host writes only a buffer that is neither selected nor in use, then switches the selection in its control word. The user guide gives both host sequences (section 6). The one exception to the single writer: the host repairs a status word or a message count with a double error (D14) while the subaddress is illegal and no message uses it (user guide, section 7) [MIL] 4.4.3.6 (an invalid message is not used); consistent multiword data for the host and for the bus ([ECSS] 8.5.2, 8.6.2.2e) without a lock that could stall the bus; every word has one writer, so the host and the core never update the same word
D10 Event log: a ring in the buffer memory with one record per message (command word, status word, bus, error code, word count, published buffer, 32-bit time tag), enabled per subaddress and mode code; the record is complete before the write index advances. Interrupt flags for records that request an interrupt, for the mode commands of D19 and for errors, with enables and a level output The host learns what happened in which order without polling every subaddress; [ECSS] 7.x deliver primitives map to records and interrupts
D11 The reset input initialises the buffer memory: the subaddress control words, the illegal command tables (defaults of interpretation I8) and all buffers are written before the RT answers its first command. Mode code 8 and the host commands reset the protocol state, not the memory The memory content is defined (and its ECC consistent) after power-up; status and data are valid at all times ([MIL] 30.5.1)
D12 The RT functions of the [ECSS] services that the bus can observe run in hardware, each enabled by a configuration bit (reset value enabled): data wrap-around on SA 30 (the transmit side reads the last received message), the time message copy into SA 29T words 0 to 4, the frame number in SA 1T word 1, the RT health word in SA 1T word 0 and the health reset command in SA 1R word 0 No real-time software is needed for conformance of these clauses ([ECSS] 8.2.1.2, 8.3.1.2b, 8.3.2.2b, 8.7.1 to 8.7.4); a mission without [ECSS] services disables them and uses the subaddresses freely
D13 All mode codes of [MIL] Table I are decoded and executed in hardware; whether a mode code (with its T/R bit and broadcast) is legal comes from the mode code table in the buffer memory [MIL] 4.3.3.5.1.7, 30.4.2.1; the [ECSS] 6.2.1.2.1b selection is a configuration, not a design variant
D14 A double error is contained. In a word to transmit: the transmission ends before that word, so the BC sees a word count error. In a control word or table entry: the RT answers the command with its status word only and neither stores nor sends data. In a host read: the AXI4-Lite response is SLVERR. Every double error sets the terminal flag condition, a BIT word bit and an interrupt flag, and is counted. A status word or message count with a double error stays, since the RT reads it before it writes it; the host repairs it (D9) Corrupted data never reaches the bus or the host as valid data (P5)
D15 The state machines have a defined recovery state: the when others branch leads to it from an illegal state where the synthesis tool implements the state machine safe, and the reset input restarts it from any state. Their registers rely on the TMR of the synthesis tool like all other logic Same as the other cores of the family
D16 Registers whose values enter arithmetic, comparisons or conversions are reset; an idle core evaluates no undefined value Simulation logs of systems with the core stay free of numeric_std metavalue warnings
D17 The RT address is read from the straps through olo_intf_sync and validated with odd parity when the reset ends and when the host requests it; an address with wrong parity or the address 31 makes the RT silent and is reported in a status register and by an interrupt flag [MIL] 30.3 (address from an external connector, validated at power-up, no single point failure gives a false address, no response with an invalid address), [ECSS] 5.5.2
D18 Time base: a 1 us tick from Clk (integer division) drives a 32-bit time tag counter and every protocol timer in microseconds; timers that need finer resolution count Clk cycles One reference for event records, time-outs and the BC schedule
D19 The RT signals the synchronize mode commands (with and without data word), reset remote terminal and initiate self test as one-cycle pulses on ports, at a fixed delay after the reference crossing of the command (or of its data word), in addition to the event records and interrupts A time slave or a subsystem reset needs no software in the path; the jitter is one clock cycle ([ECSS] 8.2.2.2b, c)
D20 Role: the core is RT or BC, never both. The BC exists with IncludeBc_g and starts only while the RT is disabled and idle; while it is active the core holds the RT disabled (the RT sees CONTROL.RT_EN and not BC active). The encoder stream and the fail-safe release go to the active engine through a mux on the role; the transmission abort of both engines reaches the encoder, so that the abort of the BC in the cycle of a role error ends its transmission although the mux already selects the RT. Each engine has its own port to the buffer memory (D8), and the owner of every read is carried to its response: the jobs of the RT that end after its message (publication and record, o1553_rt architecture section 6.1) and the reads of the BC in flight at a role error reach only their requester, and the BC drops the responses that arrive while it is inactive. The event log takes the record events of both engines: their pushes are at least one bus message apart, since the last push of the RT follows the end of its message by at most the time of its jobs, the first push of the BC follows its first message, and a role error ends a record of the BC without a push; a simulation assertion checks that they never coincide. The role is held as a value and its complement; copies that are not complementary end the BC at once (transmission aborted, no further command) and leave the core an RT that does not transmit unless the host has enabled it; ErrInj_RoleFlip inverts the complement copy for the test [MIL] 4.4.2: one terminal in control of the bus; a single upset never turns a terminal into a bus controller. A backup BC runs as RT and prepares its bus profile (D21). A mux on one memory port would hand the responses of one engine to the other across a change of the role; the RT does not release a fail-safe cut in the BC role (I20)
D21 Bus profile of the BC in the buffer memory, by pointers: a frame table (one entry per frame index: the address of a message list), message lists of two-word slots (descriptor, last and timed flags, start time in us), descriptors of 16 words (words 0 to 7 written by the host, 8 to 15 by the BC) and a status table with the last status word of each RT. Each descriptor has two data buffers with the ownership and publication of D9 and a message count; its result keeps the result code, the status words and the frame count of the last execution. Only the event log is a fixed region; in the BC role the regions of the RT are free One descriptor in the lists of many frames keeps one result and one pair of buffers for a periodic message; the host places the profile where its RT, if any, leaves room
D22 Communication frames: without time synchronization a frame every D us, numbers 0 to N-1; with time synchronization frame 0 starts with the time synchronization message a programmable delay after the tick (port Bc_TimeTick or a host command), frames 1 to N-1 every D, the last frame ends at the next tick ([ECSS] 8.3.1.1c, method 2 only). A missing tick lets the frames continue with the numbers counting on. The BC signals each frame start (Bc_FrameSync, Bc_FrameNum, interrupt) txLatency cycles before the sync of its synchronization message, and counts all times of a cycle in whole microseconds from the presentation of its first synchronization message Fixed frame positions without a measurement of the tick period; the "fixed time" and the "application defined time" of [ECSS] 8.3.1.1i and 8.2.2.1f become a constant and a register
D23 Latch at the end of each frame: in a latch window before the start of a frame (for frame 0: at the tick) the BC copies the selected transmit buffer and the on-demand request of every descriptor of the frame's list into a word of the descriptor; the messages of the frame use these copies [ECSS] 8.4.1b, c: data the host submits during a frame goes out at the earliest in the next frame, all its messages in the same frame, without software timing
D24 Slots and bounds: an untimed slot starts after the previous message and the gap, a timed slot at its start time to the clock cycle; slots with a false service request condition or without an on-demand request are skipped without moving later slots. A message starts only when its worst-case end lies before the latch window (frame guard), and never after a tick. Every wait of the BC has a bound named in its specification, and every timer ends its wait at or beyond its limit (>=) [ECSS] 8.3.3, 6.2.1.2.3a; the frame and time synchronization messages start on time; an upset of a counter shortens a wait instead of extending it
D25 Profile check of the BC, before every message: ECSS (reset value), MIL or open. ECSS refuses what [ECSS] forbids a BC (not recommended and reserved mode codes, mode code 16 without the service request condition, RT to RT, subaddresses 0 and 8, broadcast other than the broadcast mode commands and the time message, time messages outside their window or with a word count that does not match the P-field); MIL refuses the reserved mode codes and the broadcast rules of [MIL] 30.6; open sends any command word and is selectable only with AllowOpenProfile_g = true, so that no register upset makes the profile open. A refused message is reported, not sent The rules that [ECSS] and [MIL] give the BC are enforced in hardware instead of being a duty of the profile author; the open profile serves test equipment
D26 Timing and responses of the BC, at the core ports: gap and no-response time-out are registers in clock cycles (bounded to at least 4.0 and 14.0 us), measured from the reference crossing of the last word to the mid-sync crossing of the next one. The BC checks every response word (validity, sync, address, contiguity, word count), stores the status words, flags exception bits and busy, publishes received data only for a correct message, never repeats a message ([ECSS] 6.5) and transmits only on an idle line. A transmitter cut by the fail-safe timer is released by the host [MIL] 4.3.3.7, 4.3.3.9, 4.4.2; [ECSS] 6.2.2a, 6.2.1.2.5a.7; I19, I20
D27 Bus monitor role: o1553_bm exists with IncludeBm_g and is active while the host enables it and the BC is not active; it runs alone (RT disabled: the core answers nothing) or beside the RT (the RT answers only its own address). While the BM is enabled or active the BC start is refused: o1553_core_role adds both to the start condition of the BC, and the enable also covers the cycle in which the BM and the BC would otherwise both start at the end of the memory initialisation. The BM never transmits: it has no output to the encoder, the bus selector, the fail-safe timers or the RT [MIL] 4.4.4: no response except to the own address if one is assigned; RT and BM together give a backup BC the traffic it needs to take over; the BC records its own messages in the event log, and in the BC role the memory belongs to its bus profile (D21)
D28 Message reconstruction of the BM, per bus from context and timing: command word 1 on a bus without a message in progress, the words of its format from bcFormat (the format function of the BC), an RT to RT transfer from a contiguous transmit command, a status word as the next command sync word within BM_TIMEOUT (I25). Deviations are flags of the record (no response, status address, word count, invalid word, sync, gap, superseded by a command on the other bus, own words); words outside a message and line activity without a word (o1553_codec CD-DE-14, an additional output of the decoders) are records of their own Context and timing work for every profile; the format function is verified for every format and profile; the codec keeps every existing output and timing
D29 Records of the BM in a ring in the buffer memory, by pointers (base, size): message records with a header of 12 words (command and status words, flags, response times in clock cycles, sequence number, 32-bit time tag) and the data words; word and activity records of 6 words. A record is assembled in a message buffer per bus (olo_ft_ram_sdp) and copied in the order of completion; the write index advances after the whole record. The host keeps the read index; a record that does not fit is not written but counted, and the sequence numbers show the gap Variable length keeps the ring efficient (a message of 32 data words takes 44 words); software never reads a record that is being overwritten. An overwrite mode and a raw word mode are roadmap candidates
D30 Selective monitoring by a filter table in the buffer memory, by pointer: a record bit and an interrupt bit per RT address, T/R bit and subaddress (256 words). The BM has its own memory port (D8) with the lowest priority of the protocol engines. Register map 0.3 adds the BM registers and the interrupt flags BM_RECORD, BM_OVERFLOW and BM_LEVEL [MIL] 4.4.4: extract selected information; 2048 bits as registers would bloat the map, and the memory path exists

Interpretations of the standards

Where [MIL] and [ECSS] are open, optional or differ from each other, Open1553 behaves as follows. The module specifications repeat the interpretations that concern them.

ID Item Standards Open1553
I1 RT to RT transfers [MIL] 30.8 requires them in every RT; [ECSS] 6.2.2a.2 does not use them The RT implements both directions of RT to RT transfers with the validation of [MIL] 30.9; the [ECSS] restriction applies to the bus profile of the BC
I2 Broadcast data messages [MIL] 30.6 allows the BC only broadcast mode commands; [ECSS] 8.2.1.1d sends the time message (SA 29) in broadcast mode The RT accepts broadcast receive messages where the broadcast table allows them and records the broadcast in the event log (30.6: broadcast and non-broadcast messages to the same subaddress are distinguishable). The BC sends a broadcast data message only as the time message to SA 29 in its ECSS profile, the [ECSS] tailoring of 30.6 (I22)
I3 Bit numbering [ECSS] 3.4.1: bit 0 is the most significant bit Open1553 numbers the least significant bit as 0. Mapped fields: frame number of [ECSS] Table 8-2 (bits 8 to 15) = data word bits 7 to 0; RT health bit n of Table 8-8 = bit 15 - n; reset services bit 15 of Table 8-10 = bit 0
I4 Reset remote terminal (mode code 8) [MIL] 4.3.3.5.1.7.9 and 30.4.3: the RT sends its status word, then resets within 5 ms; while it is being reset it may give no response, a status word with the busy bit or a normal response. [ECSS] 6.2.1.2.2b: while the RT is being reset, it does not respond to any valid command The RT sends its status word, resets its protocol state (status bits, transmitter shutdowns, terminal flag inhibit) and pulses Rt_ResetReq; it does not answer on either bus until the reset is complete. The host extends the silent period while the subsystem resets by keeping the RT disabled; the 5 ms limit for the subsystem is an application requirement
I5 Selected transmitter shutdown and its override (mode codes 20, 21) [MIL] 4.3.3.5.1.7.15, .16: the data word identifies the bus, intended for more than two buses; [ECSS] 6.2.1.2.4: not recommended, the RT reacts as specified Data word 0 selects bus A, 1 selects bus B; any other value and the bus of the command change nothing. The status word is always sent
I6 Initiate self test (mode code 3) [MIL] 30.4.4: self test within 100 ms, any of three response behaviours meanwhile; [ECSS] 6.2.1.2.1b: not recommended The RT sends its status word and pulses Rt_SelfTestReq; the self test is run by the host application, the RT keeps answering normally, and the result appears in the BIT word and the terminal flag
I7 Dynamic bus control (mode code 0) Optional; [ECSS] 6.2.1.2.1b: not recommended The RT answers with its status word and DBCA = 0 (offer rejected); the terminal never becomes BC by a mode command
I8 Illegal command detection Optional, [MIL] 4.4.3.4 Implemented with tables in the buffer memory: per T/R bit and subaddress a word count mask for own and for broadcast commands, per mode code and T/R bit a legal and a broadcast-legal bit. Defaults after reset: every subaddress 1 to 30 legal for every word count, except SA 8 ([ECSS] 6.4d); mode codes of Table I legal with their T/R bit and broadcast column; reserved mode codes and the wrong T/R bit illegal
I9 Busy bit Optional and discouraged ([MIL] 30.5.3, [ECSS] 6.2.1.2.5a.6) Set by the host. With the busy bit set, a transmit command to a subaddress gets the status word only ([MIL] 4.3.3.5.3.8) and a receive command gets the status word while its data is not published; mode commands are executed
I10 Status word reset [MIL] 4.3.3.5.4 resets the status bits after each valid command, except as specified in 4.3.3.5.1.7 Transmit status word (mode code 2) and transmit last command (mode code 18) leave the status word and the last command word unchanged (4.3.3.5.1.7.3, 4.3.3.5.1.7.13); every other valid command resets ME and BCR, and the conditions that persist (busy, SSF, SR, TF) set their bits again
I11 Measuring point of response time and time-outs [MIL] point A, on the bus side of the transceiver Open1553 measures at its ports (D6); the user guide (section 4.3) states the transceiver delays that the integrator adds
I12 Address 31 on the straps [MIL] 30.3: unique addresses 0 to 30 Invalid address (D17)
I13 Partial words of the time message [ECSS] 8.2.1.2a, b: copy the received words, set missing words 3 and 4 to zero SA 29T words 0 to 4 read the last valid time message; words beyond its word count read 0 (D12)
I14 Word ranges of SA 1 [ECSS] 8.7.1c, d and 8.7.3d, e name words 2 to 15 and 16 to 32 in the text, Tables 8-7 and 8-9 show words 2 to 14 and 15 to 31 The tables apply. The hardware uses only words 0 and 1 of SA 1T and word 0 of SA 1R; word 1 of SA 1R (reset services) is reported to the host as an event (phase a) and drives the data block transfer engine (phase d)
I15 Time synchronization message after the tick [ECSS] 8.2.2.1f, g: within an application defined time of the TimeSynchronize.Submit, with a jitter not selected below 50 us The BC presents it a programmable delay after the tick, exact to the clock cycle when the delay covers the longest message and the gap; otherwise after the message in progress and the gap, reported as late (D22, D24)
I16 Frame start signal [ECSS] 8.3.1.1i, 8.3.2.1e: a fixed time from the signal to the sync of the frame synchronization message txLatency clock cycles from Bc_FrameSync to the start of the sync (D22)
I17 Frame numbers without a tick [ECSS] 8.3.1.1k: incremented until the next time synchronization message Frames continue every D with the numbers N, N+1, ... modulo 256 and the message lists of frame index modulo N, until the next tick (D22)
I18 Time message [ECSS] 8.2.1.1c: unused words not transmitted; 8.2.1.1e: before or during the second frame before the time synchronization message, at least 10 ms after the previous one The words of the coarse time are always sent (their positions are fixed by Table 8-1), so the word count is 3 + ceil(f / 2), f the fine octets of the P-field; the window is the frames with index 0 to N-2 from 10 ms after the start of frame 0 (D25)
I19 Measuring point of the BC gap and time-out [MIL] 4.3.3.7, 4.3.3.9: point A; [ECSS] 6.2.2a: time-out of 14 to 22 us, or 18 to 30 us with a repeater Measured at the core ports, as I11: at point A the time-out is shorter by the transmitter and receiver delays of the transceiver and the gap longer; the user guide states the values to program (D26)
I20 Fail-safe of a BC [MIL] 4.4.1.3: the time-out is reset by a valid command on its bus A BC receives no valid commands; in the BC role the host releases a cut transmitter (D26)
I21 Dynamic bus control at the BC [MIL] 4.3.3.5.1.7.1: control passes to an RT that accepts; [ECSS] 6.2.1.2.1b, 6.2.1.2.4a: not recommended, not issued Refused in the ECSS profile; in the MIL and open profiles the BC ends after a status word with the acceptance bit in response to mode code 0 (D25)
I22 Broadcast at the BC [MIL] 30.6: only the broadcast mode commands of Table I; [ECSS] 8.2.1.1d: time message in broadcast ECSS profile: the broadcast mode commands of Table I and the time message to SA 29; MIL profile: the broadcast mode commands only (D25)
I23 Set Data and Get Data timing [ECSS] 8.4.1b, 8.5.1b: at the earliest after the start of the next frame; 8.4.1c, 8.5.1c: within one frame The latch of D23 for the data the host submits; the acquisitions run in the frames the bus profile gives them; the frame guard keeps every transfer within its frame (D24)
I24 ReadStatus and ReadData primitives [ECSS] 7.3.2a, 7.4.2a: OR of the status words and number of no-responses of all transfers of an identifier Computed by the host software from the results of the descriptors of the identifier; the hardware keeps the status words and result codes per message (D21)
I25 Command and status words at a bus monitor [MIL] 4.3.3.5.3.4 and the note to [ECSS] 6.4d: the instrumentation bit can separate a status word from a command word; [MIL] 4.3.3.8, 4.3.3.9: response within 4 to 12 us, time-out of the BC at least 14 us; [MIL] 4.3.3.5.3.3 with 4.4.3.4, and 4.3.3.5.3.8: a status word only, with message error or busy The BM decides by context and timing, not by the instrumentation bit, whose use is optional: a command sync word where a status word is expected and within BM_TIMEOUT is the status word; the host sets BM_TIMEOUT to the time-out of the BC of the bus. A status word with message error or busy and no data words is a complete response (o1553_bm BM-MR-04, BM-MR-06)

Clock domains and reset

Domain Clocked blocks Frequency
Clk All blocks Integer multiple of 2 MHz, at least 16 MHz (D1)
Where Signals Open Logic entity
Reset input Reset of the core olo_base_reset_gen
Receiver inputs Bus_RxP, Bus_RxN of both buses olo_intf_sync
Address straps Rt_Addr, Rt_AddrParity olo_intf_sync
BC tick input Bc_TimeTick olo_intf_sync

Every Open Logic entity in this table is instantiated with SyncTmr_g = true: each synchroniser is implemented three times with a majority voter after the last stage. The synchroniser registers carry syn_radhardlevel = none, so automatic TMR of the synthesis tool inserts no voters between the stages. Inside the blocks all resets are synchronous and high-active (Open Logic convention).

Internal interfaces

Interface Between Payload Protocol
Transmit words Protocol engine and CD-2 Sync type, 16 data bits, last word of the transmission, bus Valid / ready
Received words CD-3 and the protocol engines, CD-5 Bus, sync type, 16 data bits, validation result, reference crossing, contiguous flag Valid (one-cycle events)
Activity without a word CD-3 and BM-1 Bus, duration in clock cycles (o1553_codec CD-DE-14) Valid (one-cycle events)
Bus control CD-6 and the protocol engines Transmitter enables per bus (host, shutdown mode codes, fail-safe), receiver enables, transmitting bus Levels
Memory requests Each protocol engine (one port each), HI-1 and HI-3 Address, write flag, 16 data bits; read data with SEC and DED flags, to the requester of the read Valid / ready, valid
Event signals Protocol engines and HI-4 Record written (write index advances), interrupt causes Valid (one-cycle events)
Register bus HI-1 and HI-2 Address, write data, read data olo_axi_lite_slave register interface
Transceiver signals CD-1 and the transceivers Bus_* ports Logic levels
Role BC, BM and the core BC active (D20); selects the protocol engine for the encoder and the fail-safe release, holds the RT disabled and the BM inactive. BM enabled or active (D27): refuses the start of the BC Levels; BC active from the two role copies

7 Building block specifications

The core has 24 building blocks in six groups. Each block lists its responsibility, the Open Logic entities it is built from, the clauses it owns (P1: no clause is owned twice) and its phase. Phase a is the RT (release 0.1.0), phase b the BC (release 0.2.0), phase c the BM (release 0.3.0), phase d the data block transfer engines.

Module (hdl/) Blocks Phase
o1553_pkg Types, constants and functions shared by all modules (word fields, parity, mode code table) a
o1553_codec CD-1 to CD-6 a
o1553_host HI-1 to HI-6 a
o1553_rt RT-1 to RT-6 a
o1553_core Top level; from phase b the role of D20 (o1553_core_role), from phase c the start condition of the BC with the BM (D27) a, b, c
o1553_bc BC-1 to BC-3 b
o1553_bm BM-1 c
o1553_dbt DB-1, DB-2 d

7.1 Bus interface

ID Block Responsibility Open Logic Clauses Phase
CD-1 Transceiver interface Output registers of the transmit signals with the idle levels of D2, receiver enables, synchronisation of the receiver outputs, conversion of the two comparator outputs into a three-level line state (positive, zero, negative) olo_intf_sync none owned (signals of [MIL] 4.5.2 for the transceiver) a
CD-2 Encoder Manchester II bi-phase level, 1 Mb/s from ClkFreq_g, command/status and data sync, most significant bit first, odd parity, contiguous words, transmitter inhibit around the transmission none [MIL] 4.3.2, 4.3.3.1 to 4.3.3.4, 4.3.3.5.1.1, 4.3.3.5.1.6, 4.3.3.5.2.1, 4.3.3.5.2.3, 4.5.2.1.1.2 (digital part); [ECSS] 5.6 a
CD-3 Decoder (one per bus) Glitch filter, zero-crossing timing, sync detection, bit decoding, Manchester, bit count and parity checks, word events with reference crossing and contiguous flag (D3) none [MIL] 4.4.1.1, 4.4.1.2 (detection), 4.5.2.1.2.1 and 4.5.2.2.2.1 (timing part) a
CD-4 Fail-safe timer (one per bus) Transmitter time-out of 700 us, inhibit until a valid command on that bus (D5) none [MIL] 4.4.1.3 a
CD-5 Transmission monitor Compares the words decoded on the transmitting bus with the words sent; a missing or different word is a loopback error (BIT word, terminal flag condition). Enabled by a configuration bit, for transceivers that pass the own transmission to the receiver outputs none none (built-in test) a
CD-6 Bus selector Routes the encoder to the bus of the message, holds the other transmitter inhibited, keeps the transmitter enable of each bus (host enable, transmitter shutdown and override, fail-safe) and the receiver enables none [MIL] 4.6.3, 4.6.3.1; [ECSS] 5.3e, f a

The transceiver connects to the core with logic levels:

  • Bus_TxP and Bus_TxN are the positive and negative halves of the Manchester signal; at most one of them is '1'. Bus_TxInh = '1' disables the transmitter. The core never drives both buses at the same time.
  • Bus_RxP is '1' while the line voltage is above the positive threshold, Bus_RxN while it is below the negative threshold. Both are '0' while the line is idle or within the threshold band. Bus_RxEn enables the receiver.
  • The transceiver delays, the output waveform, amplitude, symmetry and noise, the input thresholds, impedance and common mode rejection and the isolation between the buses are properties of the transceiver and the board ([MIL] 4.5.2, 4.6.1, [ECSS] 5.4).

7.2 Remote terminal

ID Block Responsibility Open Logic Clauses Phase
RT-1 Message sequencer Command validation (own address, broadcast, RT enabled, address valid), all message formats including broadcast and RT to RT, word count and contiguity of data words, the RT to RT time-out, illegal commands, superseding commands on both buses, status word suppression, response timing (D6), message results for the event log none [MIL] 4.2, 4.3.3.5.1 to 4.3.3.5.1.5, 4.3.3.6 (RT side), 4.3.3.8, 4.3.3.9 (RT to RT), 4.4.3, 4.6.3.2, 30.4.1, 30.6, 30.8, 30.9; [ECSS] 6.2.2 (RT side), 6.3 (RT) a
RT-2 Status registers Status word composition and reset rules (I10), last command word, BIT word, terminal flag with its inhibit, vector word, busy, SSF and SR from the host none [MIL] 4.3.1, 4.3.3.5.3, 4.3.3.5.4, 30.5; [ECSS] 6.2.1.1, 6.2.1.2.5 a
RT-3 Mode code handler Execution of mode codes 0 to 31 (D13, I4 to I7), transmitter shutdown commands to CD-6, synchronize and reset indications (D19) none [MIL] 4.3.3.5.1.7 to 4.3.3.5.1.7.17, 30.4.2.1, 30.4.3, 30.4.4; [ECSS] 6.2.1.2.1 to 6.2.1.2.4 (RT side) a
RT-4 Buffer access Subaddress control words, illegal command tables (I8), double buffers and publication (D9), data wrap-around on SA 30, event records (D10), address generation for the memory, consistency of multiword transmit data none [MIL] 30.7; [ECSS] 6.4, 8.6.2.2e, 8.7.4a, b a
RT-5 Address input Straps through olo_intf_sync, odd parity, validation at reset end and on request (D17) olo_intf_sync [MIL] 30.3; [ECSS] 5.5.2 (core side) a
RT-6 [ECSS] terminal services SA 29 time message copy (I13) and time indications, communication frame number into SA 1T word 1, RT health word in SA 1T word 0 with its reset command from SA 1R word 0, reset services event from SA 1R word 1 (D12) none [ECSS] 7.1, 7.2 (RT side), 8.2.1.2, 8.2.2.2, 8.3.1.2, 8.3.2.2, 8.7.1 to 8.7.3 a

7.3 Host interface

ID Block Responsibility Open Logic Clauses Phase
HI-1 Host port AXI4-Lite slave, decoding into the register file and the buffer memory window (D7), SLVERR on a double error olo_axi_lite_slave none (transport) a
HI-2 Register file Configuration, control and status registers of all blocks, generated from one register description (hdl/o1553_host/regs/o1553_regs.yml, tools/regmap.py): RT enable, bus enables, response time, status bits from the host, vector and BIT words, transmit buffer in use (D9), [ECSS] service enables, health word, event log pointers, interrupt flags and enables, ECC counters, time tag; from phase b the configuration, commands and state of the BC and its interrupt flags (register map 0.2), from phase c those of the BM (register map 0.3) none none owned (configuration of the blocks) a, b, c
HI-3 Buffer memory olo_ft_ram_sp_scrub with the fixed-priority arbiter of D8 (a port for the RT, from phase b one for the BC and from phase c one for the BM; the owner of each read carried to its response), memory initialisation (D11); memory map in section 7.7 olo_ft_ram_sp_scrub, olo_base_arb_prio none (fault tolerance, P5) a, b, c
HI-4 Event log, interrupts Write index and overflow flag of the event log (D10), interrupt flags, enables and the Irq output; the protocol engines write the records through their memory port none [ECSS] 7.1 to 7.2 deliver primitives (RT side, with RT-6) a
HI-5 EDAC monitor Counts the single and double errors of protocol reads, host reads and the scrubber, sets the interrupt flags of D14; error injection through the ErrInj ports olo_ft_ecc_monitor none (fault tolerance, P5) a
HI-6 Reset and time base Reset synchroniser, 1 us tick, 32-bit time tag counter (D18) olo_base_reset_gen, olo_base_strobe_gen none a

7.4 Bus controller (phase b)

ID Block Responsibility Open Logic Clauses Phase
BC-1 Frame scheduler Communication frames between time synchronization messages or per second, frame synchronization messages (mode code 17, broadcast) with the frame number, time synchronization messages (mode code 1, broadcast) from the tick, the last frame of a cycle ending at the tick, frame start signal, latch window (D23), accurate message start times relative to the frame start, frame guard limit olo_intf_sync [ECSS] 7.2 (BC side), 8.2.2.1, 8.3.1.1, 8.3.2.1, 8.3.3 b
BC-2 Message processor Execution of message lists from the buffer memory: all message formats, broadcast, mode commands, bus selection per message, intermessage gap, programmable no-response time-out, status word checks, results and data back to the memory, notification of busy, no automatic retries none [MIL] 4.3.3.6 (BC side), 4.3.3.7, 4.3.3.9 (BC), 4.4.2, 30.4.2.2; [ECSS] 6.2.1.2.1a, 6.2.1.2.3a, 6.2.1.2.4a, 6.2.1.2.5a.7, 6.2.2 (BC side), 6.5, 7.3, 7.4, 8.4, 8.5, 8.7.4c b
BC-3 Time distribution Rules of the time message to SA 29 (CCSDS unsegmented time code with the P-field, broadcast or individual): its window relative to the time synchronization message and its word count from the P-field (I18), checked by the profile check of BC-2 (D25); the time itself is data of the host in the buffer of the descriptor none [ECSS] 7.1 (BC side), 8.2.1.1 b

7.5 Bus monitor (phase c)

ID Block Responsibility Open Logic Clauses Phase
BM-1 Bus monitor Reconstructs the messages of both buses from words and timing and records each message, each word outside a message and each line activity without a word into a ring in the buffer memory, selected by a filter table per RT address, T/R bit and subaddress; runs alone or beside the RT, which then answers only its own address, never beside the BC; never transmits (D27 to D30) olo_ft_ram_sdp [MIL] 4.4.4; [ECSS] 6.3 (BM) c

The decoders report line activity in which they recognise no sync half not as a word (o1553_codec interpretation of MIL 4.4.1.1a) but, from phase c, as a separate event with its duration (o1553_codec CD-DE-14), which the bus monitor records; the word events and all other outputs of the codec are unchanged.

7.6 Data block transfer (phase d)

ID Block Responsibility Open Logic Clauses Phase
DB-1 RT engine Distribution (DTD and DTC on SA 27, reassembly from flat or deep subaddressing) and acquisition (ATR and ATC on SA 28, segmentation), block counters, quality of service, protocol reset, block queues to the host none [ECSS] 7.5 (RT side), 8.6.1.2, 8.6.2.2 (except e) d
DB-2 BC engine Distribution and acquisition transfers per RT, polling of ATR, confirmations, block counters, error reporting none [ECSS] 7.5 (BC side), 8.6.1.1, 8.6.2.1 d

Before phase d, the host software of an RT runs the data block transfer protocol on the buffers of SA 11 to 28; the publication of D9 provides the consistent DTD and ATR words that the protocol needs.

7.7 Buffer memory map

The buffer memory holds 8192 words of 16 bits. Phase a uses these regions; the architecture of o1553_rt (section 4) fixes the addresses and the formats, and o1553_host adopts them.

Region Size (words) Content
Subaddress descriptors 256 Per T/R bit and subaddress, 4 words: the control word of the host (selected transmit buffer, event log and interrupt enables) and the two status words of the core (buffer, word count and broadcast flag of the last message; message count), D9
Illegal command tables 256 Per T/R bit and subaddress, 4 words: masks of the legal word counts for own and for broadcast commands (2 words each); the entries of subaddress 31 hold the mode code legality (I8)
Subaddress buffers 4096 Two buffers of 32 words per T/R bit and subaddress
Event log 2048 Ring of records (D10)
Reserved 1536 BC bus profile of a core that runs as RT (D21), ring and filter table of the BM (D29, D30), as the host divides it

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, o1553_bc architecture section 4).

8 Open Logic usage

Open Logic entity Used in Purpose
olo_ft_ram_sp_scrub HI-3 Buffer memory with SECDED ECC, opportunistic scrubber and error injection
olo_base_arb_prio HI-3 Fixed-priority arbitration of the memory port
olo_ft_ecc_monitor HI-5 Single and double error counters
olo_axi_lite_slave HI-1 AXI4-Lite access to registers and memory
olo_intf_sync CD-1, RT-5, BC-1 Triplicated synchroniser of the receiver outputs, the address straps and the BC tick input
olo_base_reset_gen HI-6 Triplicated reset synchroniser
olo_base_strobe_gen HI-6 1 us tick

Gaps in Open Logic

Gap Resolution in this architecture
No MIL-STD-1553B codec CD-2 and CD-3 are custom blocks
No true dual-port FT RAM with a scrubber (olo_ft_ram_tdp has no scrubber) One single-port olo_ft_ram_sp_scrub shared through an arbiter (D8); the access rate of a 1 Mb/s bus leaves most cycles idle for the scrubber and the host
No TMR helper for protocol state machines TMR of the synthesis tool for their registers (P5) and a recovery state in every state machine (D15)

9 Verification architecture

The core is verified with VUnit and UVVM in the seven-phase module workflow (requirements, architecture, verification plan, RTL, testbenches, verification, integration; see conventions.md). Every building block of section 7 belongs to a module with its own specification, verification plan, testbench and verification report; core tests cross the seams between the modules. Every test case names the requirements it verifies, and every requirement names its clauses, so the traceability matrix of section 10 is checked by tools/compliance.py.

Level Scope Bench Checks
Unit One module (for example o1553_codec, o1553_rt) <entity>_th.vhd (clock, DUT, models) and <entity>_tb.vhd (VUnit runner, one run("test_...") per test of the verification plan) UVVM checks and scoreboards, directed and randomised tests at the module ports
Core o1553_core with the bus model on both buses and the AXI4-Lite VVC on the host port Bus model as BC and as a second RT, transceiver model with delays Message formats and mode codes end to end, response time and time-outs at the ports, error injection on the bus and into the memory, dual bus behaviour, [ECSS] services, host programming sequences, buffer ownership races (host accesses slowed down while the bus model sends messages back to back, D9)

Framework

  • VUnit (run.py) discovers and runs every test and is the CI regression. UVVM supplies the verification building blocks: AXI4-Lite VVC, alert and log handling, check_value / await_value, randomisation and functional coverage.
  • The bus model is behavioural VHDL in tb/, written independently of the RTL and running in continuous time, not on the core clock. It acts as BC, as a second RT and as a monitor on both buses: it sends words and messages with a programmable bit rate deviation, zero-crossing deviation, rise and fall times and gaps; it injects every word validation error of [MIL] 4.4.1.1 (sync, Manchester, bit count, parity) and timing errors (gaps, late data words); it decodes and time-stamps every word the core sends and measures response times and transmission lengths.
  • Simulators: GHDL for every test; QuestaSim for code coverage and for the release regression.

Rules

  • Tests observe ports, registers and the buffer memory only (P8).
  • A failed check fails the test; a test cannot pass with a failed step.
  • Negative tests inject the fault from the bench (bus errors from the bus model, double errors through the ErrInj ports) and expect the status, the event record or the absence of a response; never from an RTL mutation.
  • A check is proven by a mutation of the design that makes it fail.
  • Every commit passes the full regression.

10 Requirement traceability matrix

Every clause of both standards has exactly one owner block or is out of scope. "Phase" names the phase that delivers the owner; "First verified at" names the lowest verification level at which the clause can be fully checked. The compliance matrix, generated from these tables, the module specifications and the verification plans, lists the requirements and test cases of every clause.

10.1 MIL-STD-1553B

Clause Title Owner Also involved Phase First verified at
4.1 Test and operating requirements Out of scope (target qualification)
4.2 Data bus operation RT-1 BC-2 a Core
4.3.1 Data form RT-2 HI-2 a Unit
4.3.2 Bit priority CD-2 CD-3 a Unit
4.3.3.1 Modulation CD-2 a Unit
4.3.3.2 Data code CD-2 CD-3 a Unit
4.3.3.3 Transmission bit rate CD-2 Clk oscillator a Unit
4.3.3.4 Word size CD-2 CD-3 a Unit
4.3.3.5 Word formats CD-2 CD-3, RT-2 a Unit
4.3.3.5.1 Command word RT-1 CD-3 a Unit
4.3.3.5.1.1 Sync CD-2 CD-3 a Unit
4.3.3.5.1.2 Remote terminal address RT-1 RT-5 a Unit
4.3.3.5.1.3 Transmit/receive RT-1 a Unit
4.3.3.5.1.4 Subaddress/mode RT-1 RT-4 a Unit
4.3.3.5.1.5 Data word count/mode code RT-1 a Unit
4.3.3.5.1.6 Parity CD-2 CD-3 a Unit
4.3.3.5.1.7 Optional mode control RT-3 RT-1 a Unit
4.3.3.5.1.7.1 Dynamic bus control RT-3 (I7) BC-2 (I21) a Unit
4.3.3.5.1.7.2 Synchronize (without data word) RT-3 RT-6 a Unit
4.3.3.5.1.7.3 Transmit status word RT-3 RT-2 a Unit
4.3.3.5.1.7.4 Initiate self test RT-3 (I6) HI-4 a Unit
4.3.3.5.1.7.5 Transmitter shutdown RT-3 CD-6 a Core
4.3.3.5.1.7.6 Override transmitter shutdown RT-3 CD-6 a Core
4.3.3.5.1.7.7 Inhibit terminal flag bit RT-3 RT-2 a Unit
4.3.3.5.1.7.8 Override inhibit terminal flag bit RT-3 RT-2 a Unit
4.3.3.5.1.7.9 Reset remote terminal RT-3 (I4) RT-1, RT-2 a Unit
4.3.3.5.1.7.10 Reserved mode codes (01001 to 01111) RT-3 (I8) RT-4 a Unit
4.3.3.5.1.7.11 Transmit vector word RT-3 RT-2 a Unit
4.3.3.5.1.7.12 Synchronize (with data word) RT-3 RT-6 a Unit
4.3.3.5.1.7.13 Transmit last command word RT-3 RT-2 a Unit
4.3.3.5.1.7.14 Transmit built-in-test word RT-3 RT-2 a Unit
4.3.3.5.1.7.15 Selected transmitter shutdown RT-3 (I5) CD-6 a Core
4.3.3.5.1.7.16 Override selected transmitter shutdown RT-3 (I5) CD-6 a Core
4.3.3.5.1.7.17 Reserved mode codes (10110 to 11111) RT-3 (I8) RT-4 a Unit
4.3.3.5.2 Data word CD-2 CD-3 a Unit
4.3.3.5.2.1 Sync CD-2 CD-3 a Unit
4.3.3.5.2.2 Data CD-2 CD-3 a Unit
4.3.3.5.2.3 Parity CD-2 CD-3 a Unit
4.3.3.5.3 Status word RT-2 a Unit
4.3.3.5.3.1 Sync RT-2 CD-2 a Unit
4.3.3.5.3.2 RT address RT-2 RT-5, BM-1 a Unit
4.3.3.5.3.3 Message error bit RT-2 RT-1, BM-1 a Unit
4.3.3.5.3.4 Instrumentation bit RT-2 a Unit
4.3.3.5.3.5 Service request bit RT-2 HI-2 a Unit
4.3.3.5.3.6 Reserved status bits RT-2 a Unit
4.3.3.5.3.7 Broadcast command received bit RT-2 RT-1 a Unit
4.3.3.5.3.8 Busy bit RT-2 (I9) RT-1, HI-2, BM-1 a Unit
4.3.3.5.3.9 Subsystem flag bit RT-2 HI-2 a Unit
4.3.3.5.3.10 Dynamic bus control acceptance bit RT-2 (I7) a Unit
4.3.3.5.3.11 Terminal flag bit RT-2 CD-4, CD-5, HI-5 a Unit
4.3.3.5.3.12 Parity bit RT-2 CD-2 a Unit
4.3.3.5.4 Status word reset RT-2 (I10) a Unit
4.3.3.6 Message formats RT-1 BC-2, BM-1 a Unit
4.3.3.6.1 Bus controller to remote terminal transfers RT-1 BC-2, BM-1 a Unit
4.3.3.6.2 Remote terminal to bus controller transfers RT-1 BC-2, BM-1 a Unit
4.3.3.6.3 Remote terminal to remote terminal transfers RT-1 (I1) BC-2, BM-1 a Unit
4.3.3.6.4 Mode command without data word RT-1 RT-3, BC-2, BM-1 a Unit
4.3.3.6.5 Mode command with data word (transmit) RT-1 RT-3, BC-2, BM-1 a Unit
4.3.3.6.6 Mode command with data word (receive) RT-1 RT-3, BC-2, BM-1 a Unit
4.3.3.6.7 Optional broadcast command RT-1 (I2) BC-2, BM-1 a Unit
4.3.3.6.7.1 Bus controller to remote terminal(s) transfer (broadcast) RT-1 BC-2, BM-1 a Unit
4.3.3.6.7.2 Remote terminal to remote terminal(s) transfers (broadcast) RT-1 BC-2, BM-1 a Unit
4.3.3.6.7.3 Mode command without data word (broadcast) RT-1 RT-3, BC-2, BM-1 a Unit
4.3.3.6.7.4 Mode command with data word (broadcast) RT-1 RT-3, BC-2, BM-1 a Unit
4.3.3.7 Intermessage gap BC-2 RT-1 b Unit
4.3.3.8 Response time RT-1 CD-2, CD-3, BM-1 a Core
4.3.3.9 Minimum no-response time-out RT-1 BC-2, BM-1 a Unit
4.4.1.1 Word validation CD-3 BM-1 a Unit
4.4.1.2 Transmission continuity CD-3 RT-1, BC-2, BM-1 a Unit
4.4.1.3 Terminal fail-safe CD-4 CD-6, BC-2 (I20) a Unit
4.4.2 Bus controller operation BC-2 BC-1 b Core
4.4.3.1 Operation RT-1 a Unit
4.4.3.2 Superseding valid commands RT-1 a Unit
4.4.3.3 Invalid commands RT-1 a Unit
4.4.3.4 Illegal command RT-1 (I8) RT-4 a Unit
4.4.3.5 Valid data reception RT-1 RT-4 a Unit
4.4.3.6 Invalid data reception RT-1 RT-4 a Unit
4.4.4 Bus monitor operation BM-1 c Core
4.5.1 Data bus characteristics Out of scope (harness)
4.5.2 Terminal characteristics Out of scope (transceiver), except the clauses below
4.5.2.1.1.2, 4.5.2.2.1.2 Output waveform CD-2 (timing of the transitions) transceiver a Unit
4.5.2.1.2.1, 4.5.2.2.2.1 Input waveform compatibility CD-3 (zero-crossing deviation) transceiver a Unit
4.5.2.1.2.4, 4.5.2.2.2.4 Noise rejection CD-3 (word validation) transceiver a Target
4.6.1 Electrical isolation Out of scope (transceiver and board)
4.6.2 Single event failures Out of scope (bus routing)
4.6.3 Dual standby redundant data bus CD-6 RT-1, BM-1 a Core
4.6.3.1 Data bus activity CD-6 BC-2 a Unit
4.6.3.2 Superseding valid commands RT-1 CD-6, BM-1 a Core
30.1, 30.2 Option selection, application Not a requirement on a terminal (they select the options of 30.3 to 30.10)
30.3 Unique address RT-5 (I12) RT-1 a Unit
30.4.1 Subaddress/mode RT-1 BC-2 a Unit
30.4.2.1 Remote terminal required mode codes RT-3 a Unit
30.4.2.2 Bus controller required mode codes BC-2 b Unit
30.4.3 Reset remote terminal RT-3 (I4) RT-1 a Unit
30.4.4 Initiate RT self test RT-3 (I6) HI-4 a Unit
30.5.1 Information content RT-2 HI-3 (D11) a Core
30.5.2 Status bit requirements RT-2 a Unit
30.5.3 Busy bit RT-2 (I9) HI-2 a Unit
30.6 Broadcast RT-1 (I2) RT-4, BC-2 a Unit
30.7 Data wrap-around RT-4 a Unit
30.8 Message formats RT-1 (I1) BC-2 a Unit
30.9 RT to RT validation RT-1 a Unit
30.10 Electrical characteristics Out of scope (harness and connectors)

10.2 ECSS-E-ST-50-13C

Clause Title Owner Also involved Phase First verified at
5.2a Applicability matrix of the physical layer User guide (conformance) a Review
5.3a to d Data bus characteristics Out of scope (harness)
5.3e, f Redundant or non-redundant data bus CD-6 a Core
5.4 Terminal characteristics Out of scope (transceiver and board)
5.5.1, 5.5.3 Connectors, pin allocation Out of scope (board)
5.5.2 Pin allocation for 15-pin connectors: address straps and parity RT-5 board a Unit
5.6a Transmission method CD-2 CD-3 a Unit
6.1a Applicability matrix of the data link layer User guide (conformance) a Review
6.2.1.1a Data word formats RT-2 RT-3 a Unit
6.2.1.2.1a Mode commands on subaddress 31 BC-2 RT-1 b Unit
6.2.1.2.1b Mode code usage RT-3 BC-2 a Unit
6.2.1.2.2 Mode code 8 RT-3 (I4) a Unit
6.2.1.2.3a Mode code 16 only after a service request BC-2 b Unit
6.2.1.2.3b Content of the vector word RT-3 HI-2 a Unit
6.2.1.2.4a Non-recommended mode codes not issued BC-2 b Unit
6.2.1.2.4b Reaction to non-recommended mode codes RT-3 (I5, I6) a Unit
6.2.1.2.5 Terminal status word RT-2 BC-2 (a.7) a Unit
6.2.2a Messages, BC response time-out, no RT to RT RT-1 (I1) BC-2 a Core
6.3a Terminal operation RT-1 BC-2, BM-1 a Core
6.4a to d Subaddress usage RT-4 (I8) RT-6, BC-2 (d) a Unit
6.5a No automatic retries BC-2 b Unit
7.1.1a TimeData primitive RT-6 (deliver) BC-3 (submit) a Core
7.1.2a TimeSynchronize primitive RT-6 (deliver) BC-1 (submit) a Core
7.2.1a CommunicationSynchronize primitive RT-6 (deliver) BC-1 (submit) a Core
7.3.1a, b, 7.3.2a Set Data service primitives BC-2 b Core
7.4.1a, b, 7.4.2a Get Data service primitives BC-2 b Core
7.5.1a Data block transfer primitive DB-1 DB-2 d Core
8.2.1.1a to e Time message, BC BC-3 b Unit
8.2.1.2a to e Time message, RT RT-6 (I13) RT-4 a Unit
8.2.2.1a to g Time synchronization, BC BC-1 b Unit
8.2.2.2a to c Time synchronization, RT RT-6 RT-3 a Unit
8.2.2.2d Order of time message and time synchronization Out of scope (host application)
8.3.1.1a to l Communication frames with time synchronization, BC BC-1 b Unit
8.3.1.2a, b Communication frames with time synchronization, RT RT-6 RT-3 a Unit
8.3.2.1a to h Communication frames without time synchronization, BC BC-1 b Unit
8.3.2.2a, b Communication frames without time synchronization, RT RT-6 RT-3 a Unit
8.3.3a to c Accurate message transfer BC-1 b Unit
8.4.1a to d Set Data, BC BC-2 b Unit
8.5.1a to d Get Data, BC BC-2 b Unit
8.5.2a Get Data, refresh of RT output buffers RT-4 (D9, publication) host application a Core
8.6.1.1a to r Data distribution, BC DB-2 d Unit
8.6.1.2a to f Data distribution, RT DB-1 RT-4 d Unit
8.6.2.1a to k Data acquisition, BC DB-2 d Unit
8.6.2.2a to d, f to m Data acquisition, RT DB-1 RT-4 d Unit
8.6.2.2e Consistent acquisition transfer request RT-4 (D9) a Unit
8.7.1a to e RT monitoring RT-6 (I14) HI-2 a Unit
8.7.2a to d RT health data word RT-6 (I3) HI-2 a Unit
8.7.3a to h Terminal configuration commands RT-6 (I3, I14) HI-4 a Unit
8.7.4a, b Data wrap-around, RT RT-4 a Unit
8.7.4c Data wrap-around, BC BC-2 b Core
9.1a, 9.2a, 9.3a, b Test and verification of the data bus system Out of scope (project); the verification of the core follows section 9

11 Development plan

Phase Content Release
a Foundations (repository, common package, bus model, regression and CI); o1553_codec; o1553_host with the generated register map; o1553_rt; o1553_core with core tests, the compliance matrix and the synthesizability check 0.1.0, TRL 3
b o1553_bc; its registers and memory port in o1553_host; the role in o1553_core (o1553_core_role, D20) 0.2.0, TRL 3
c o1553_bm; the event of line activity without a word in o1553_codec (CD-DE-14); its registers and memory port in o1553_host; its place in o1553_core (D27) 0.3.0, TRL 3
d o1553_dbt 0.4.0

The hardware test with transceivers on a dual-redundant bus as part of a reference system of the family (TRL 4) follows when a target board is selected; the board adapter (transceiver pins, address straps of [ECSS] 5.5.3c with two connectors) is a separate module of that step.