Skip to content

o1553_core: Specification

1. Overview

o1553_core is the top level of Open1553: a MIL-STD-1553B remote terminal on a dual-redundant bus with the ECSS RT services and, with IncludeBc_g, a bus controller and, with IncludeBm_g, a bus monitor, programmed by the host through one AXI4-Lite port. It connects the bus interface (o1553_codec), the remote terminal (o1553_rt), the bus controller (o1553_bc), the bus monitor (o1553_bm) and the host interface (o1553_host) in one clock domain. Its one function of its own is the role of D20 (o1553_core_role): which engine drives the encoder and the fail-safe release, the RT held disabled in the BC role, the record events of both engines into the event log and, with the BM, the start condition of the BC (D27). Every other function is specified in the specification of the module that implements it. This specification states what the core adds: its ports and generics, the connection of the modules, the role, and the behaviour that only the assembled core shows, at its ports, from the bus to the buffer memory and the host and back.

Clause references: MIL = MIL-STD-1553B (Notice 2), ECSS = ECSS-E-ST-50-13C. The architecture decisions (D) and interpretations (I) are those of the core architecture, section 6.

Terms used below:

  • External bus controller: the terminal that sends the commands while the core is an RT, in the tests the bus model of the testbench.
  • BC role: the core as the bus controller (o1553_bc active, BC_STATUS.ACTIVE = '1'); RT role: every other time.
  • BM active: o1553_bm active (BM_STATUS.ACTIVE = '1', o1553_bm BM-EN-01), in the RT role only.
  • Host sequence: an access sequence of the host to the buffer memory as the user guide states it (D9).

2. Requirements

2.1 Interfaces

ID Requirement Clauses
CORE-IF-01 The core shall provide the external interfaces of the architecture (section 6): clock Clk, asynchronous reset input Rst, the AXI4-Lite host port S_AxiLite_* with 16-bit address and 32-bit data, the interrupt Irq, the transceiver signals Bus_TxP, Bus_TxN, Bus_TxInh, Bus_RxP, Bus_RxN, Bus_RxEn of both buses (index 0 bus A, 1 bus B), the address straps Rt_Addr and Rt_AddrParity, the indications Rt_TimeSync, Rt_FrameSync, Rt_SyncData, Rt_ResetReq, Rt_SelfTestReq and the error injection ErrInj_BitFlip, ErrInj_Valid of the buffer memory. MIL 4.5.2 (D1, D2, D3, D7, D10, D17, D19)
CORE-IF-02 The host port shall give access to the registers of o1553_host (register map of o1553_regs.yml) and to the buffer memory with the memory map of o1553_rt (architecture section 7.7). (D7)
CORE-IF-03 The core shall provide the interfaces of the BC: the tick input Bc_TimeTick, the frame start outputs Bc_FrameSync and Bc_FrameNum and the role injection ErrInj_RoleFlip, and the generics IncludeBc_g and AllowOpenProfile_g. ECSS 8.2.2.1c, 8.3.1.1i (D20, D22, D25)
CORE-IF-04 The core shall provide the generic IncludeBm_g and the error injection of the message buffers of the BM, ErrInj_BmBitFlip (2 x 22 bits, bus b in bits 22b + 21 to 22b) and ErrInj_BmValid (2), inactive by default. (D27, D29)

2.2 Structure

ID Requirement Clauses
CORE-ST-01 The core shall contain o1553_codec, o1553_rt and o1553_host, connected as in the internal interfaces of the architecture (section 6), all in Clk. The reset input shall be synchronised once (o1553_host, HI-TB-01), and its output shall reset all three modules. (D1)
CORE-ST-02 The generics shall be passed consistently: ClkFreq_g to the three modules, SyncStages_g to o1553_codec and o1553_rt, RamRdLatency_g, EccPipeline_g and ScrubPeriod_g to o1553_host, and MemLatency_g = RamRdLatency_g + EccPipeline_g + 1 to o1553_rt (HI-CF-02). none
CORE-ST-03 Each output of a module shall drive the input of the module that the architecture names for it, and the inputs of the modules that the core does not use shall have their inactive value; no module output that the architecture names shall stay unconnected. none
CORE-ST-04 The core shall also contain o1553_core_role between the protocol engines and the codec and, with IncludeBc_g = true, o1553_bc, both reset by the synchronised reset. o1553_bc shall get ClkFreq_g, the SyncStages_g of the codec, MemLatency_g = RamRdLatency_g + EccPipeline_g + 1 and AllowOpenProfile_g; o1553_host shall get IncludeBc_g and AllowOpenProfile_g. (D20)
CORE-ST-05 With IncludeBm_g = true the core shall also contain o1553_bm, reset by the synchronised reset, with ClkFreq_g, the SyncStages_g of the codec and MemLatency_g = RamRdLatency_g + EccPipeline_g + 1; o1553_host shall get IncludeBm_g. (D27)

2.3 Function of the terminal

ID Requirement Clauses
CORE-RT-01 After the reset and the initialisation of the buffer memory, the core shall answer the valid commands to its address on either bus as a remote terminal: receive, transmit, RT to RT, mode and broadcast messages, with the data of the subaddress buffers and the tables of the buffer memory as the host programmed them, and with the event records and interrupts of the host interface. MIL 4.3.3.6, 4.6.3, 30.6, 30.8 (D4, D9, D10, D13)
CORE-RT-02 The time from the reference crossing of the last word of a message at the receiver ports to the mid-sync crossing of the status word at the transmitter ports shall be the response time of RESP_TIME, bounded as in RT-TM-01, within one clock cycle. MIL 4.3.3.8 (D6, I11)
CORE-RT-03 The configuration registers shall act on the bus behaviour of the core: RT enable, broadcast enable, illegal command detection, records of errors, status conditions, vector word, host BIT bits, the ECSS services, the bus enables and the loopback monitor. MIL 4.3.3.5.3; ECSS 8.7.1a to e (D12)
CORE-RT-04 The status registers shall show the state of the RT and of the bus interface as the bus shows it: address, status word, last command word, BIT word, frame number, health word, transmit buffer in use, transmitter state. MIL 30.5.1 (D9, D17)
CORE-RT-05 The indications shall come at the ports with the timing of RT-TM-04, and the data word of a frame synchronisation shall be in Rt_SyncData and in SYNC_DATA. ECSS 8.2.2.2b, c (D19)
CORE-RT-06 An invalid address on the straps shall make the core silent on both buses and set RT_ADDRESS and the BIT interrupt flag; COMMAND.ADDR_CHECK shall validate the straps again. MIL 30.3; ECSS 5.5.2 (D17)

2.4 Buffer ownership

ID Requirement Clauses
CORE-BO-01 Receive: a host that reads a subaddress with the sequence lock of D9 (message count, receive status word, data words, message count again, repeated while the count changed) shall obtain the words of one valid message, complete and with the word count of its status word, while a BC sends valid and invalid messages to that subaddress back to back on either bus. MIL 4.4.3.6; ECSS 8.5.2 (D9)
CORE-BO-02 Transmit: a host that writes only the transmit buffer that is neither selected nor in use (TX_IN_USE) and then selects it in the control word shall see every transmit message on the bus carry the words of one buffer as the host completed it, while a BC sends transmit commands to that subaddress back to back on either bus. ECSS 8.6.2.2e (D9)

2.5 Fault tolerance

ID Requirement Clauses
CORE-FT-01 A double error in each region of the buffer memory shall be contained at the core ports as D14 states: subaddress control word and illegal command table entry (status word only, no data stored or sent), receive status word (no data word of the message stored), message count (no publication, record with error code 14), transmit data word (transmission ends before that word), event record and receive data read by the host (SLVERR). MIL 4.3.3.5.3.11 (D14)
CORE-FT-02 Every double error of CORE-FT-01 shall be counted in the counter of its source, set the interrupt flag 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. MIL 4.3.3.5.3.11 (D14)
CORE-FT-03 A single error in any region shall be corrected on its way to the bus and to the host, counted, and written back by the scrubber. none (D14)
CORE-FT-04 A double error in a receive status word or a message count shall stay until the host writes the word: every following message to that subaddress shall end as CORE-FT-01 states (error code 10 or 14 in its record) and set BIT word bit 4. An illegal command shall neither read nor write the status word, the message count or the buffers of its subaddress. After the host has made the subaddress illegal in its table entry, read RT_STATUS.MSG_ACTIVE = '0', waited the publication bound of the RT (MemLatency + 18 cycles), written both words with 0 and made the subaddress legal again, the next valid message to that subaddress shall be published with the message count 1. MIL 4.3.3.5.3.11 (D9, D14)

2.6 Bus controller

ID Requirement Clauses
CORE-BC-01 With IncludeBc_g = true, after BC_COMMAND.START with CONTROL.RT_EN = '0', the core shall run as the bus controller of D20 to D26 at its transceiver ports: the frames, the frame and time synchronization messages and the messages of the bus profile in the buffer memory on the bus of each message, with remote terminals on the bus; the results, received data, status table and event records in the buffer memory, the BC state in BC_STATUS and BC_FRAME_COUNT, the events in IRQ_FLAGS and Irq, all as the o1553_bc specification states. MIL 4.3.3.6, 4.4.2; ECSS 8.3.1.1, 8.4.1 (D20 to D26)
CORE-BC-02 The timing of the BC shall be that of the o1553_bc specification measured at the core ports: the gap and the no-response time-out between the transceiver ports (BC-TM-01, BC-TM-02), Bc_FrameSync txLatency cycles before the start of the sync of each synchronization message at Bus_TxP/Bus_TxN with Bc_FrameNum valid (BC-FR-06), frame 0 after Bc_TimeTick with the tick latency of o1553_bc architecture section 5.3. MIL 4.3.3.7, 4.3.3.9; ECSS 8.3.1.1i (I16, I19)
CORE-BC-03 A double error in a word of the bus profile that the BC reads (frame table entry, slot, descriptor word, transmit data word) shall be contained as BC-FT-01 and BC-FT-02 state, and counted and flagged as CORE-FT-02 states. MIL 4.3.3.5.3.11 (D14)

2.7 Role

ID Requirement Clauses
CORE-RL-01 The BC shall start only while CONTROL.RT_EN = '0' and the RT has no message in progress; a start command otherwise shall be refused (BC_START_REFUSED, the RT unchanged). MIL 4.4.2 (D20)
CORE-RL-02 In the BC role the RT shall be disabled whatever CONTROL.RT_EN: a command to the RT address of the core shall get no status word, and the RT shall release no fail-safe state; only the BC shall drive the encoder and the fail-safe release of the codec. MIL 4.4.1.3, 4.4.2 (D20, I20)
CORE-RL-03 A role error (ErrInj_RoleFlip) during a transmission of the BC shall end it at the transceiver ports within the word in progress, even though the encoder stream follows the RT from the cycle of the error on (the transmission abort of the BC reaches the codec in that cycle); no further word shall follow, the BC shall be inactive with BC_ROLE_ERR, and the RT shall stay disabled until the host sets CONTROL.RT_EN. MIL 4.4.2 (D20)
CORE-RL-04 Each engine shall get only its own read responses: the publication and the record of the last message of the RT shall be complete in the buffer memory also when the BC starts in the first cycle without a message of the RT; the responses of reads of the BC that arrive after a role error shall be discarded with no memory write, no event and no word on the bus (BC-RO-02), and the RT shall work unaffected afterwards. (D8, D20)
CORE-RL-05 The record events of the two engines shall never coincide (D20); o1553_core_role shall report a coincidence with an assertion of severity error. (D10, D20)
CORE-RL-06 With IncludeBc_g = false the core shall behave as an RT only: the BC registers shall have no effect, BC_STATUS shall read 0, no BC event shall come, Bc_FrameSync and Bc_FrameNum shall be '0', and ErrInj_RoleFlip and Bc_TimeTick shall have no effect; CORE_STATUS.BC_INCLUDED shall be '0'. (D20)

2.8 Bus monitor

ID Requirement Clauses
CORE-BM-01 With IncludeBm_g = true, while BM_CONTROL.EN = '1' and the BC is not active, the core shall record the traffic of both buses at its receiver ports as the o1553_bm specification states: a record of each message of every format, of each word outside a message and of each line activity without a word, in the ring of the buffer memory that BM_RING_BASE and BM_RING_SIZE place, selected by the filter table at BM_FILTER_BASE, with the time tag of TIME_TAG. The host shall read the records through the memory window, follow BM_WRITE_INDEX, keep its read index in BM_READ_INDEX, and see BM_STATUS, BM_LOST and the BM flags of IRQ_FLAGS with Irq. MIL 4.4.4; ECSS 6.3a (D27 to D30)
CORE-BM-02 While the BM is active and CONTROL.RT_EN = '1', the RT shall answer only the commands to its own address and work as CORE-RT-01 and CORE-RT-02 state; the BM shall record the messages of the core as those of any other terminal, with the flag "own" (BM-MR-11). MIL 4.4.4 (D27)
CORE-BM-03 While the BM is active and CONTROL.RT_EN = '0', the core shall transmit no word on either bus. MIL 4.4.4 (D27)
CORE-BM-04 A start of the BC (BC_COMMAND.START) while BM_CONTROL.EN = '1' or the BM is active shall be refused (BC_START_REFUSED, the BC inactive, the BM unchanged). While the BC is active the BM shall stay inactive whatever BM_CONTROL.EN, with no record, no memory access and no BM event; with BM_CONTROL.EN = '1' it shall become active when the BC has become inactive (stop or role error), with the write index and the sequence number at 0. MIL 4.4.4 (D27)
CORE-BM-05 With messages back to back on both buses, the RT answering those to its address, and the host reading the ring and the subaddress buffers through the memory window at the same time, the BM shall lose no record while the ring has room (BM_LOST unchanged, sequence numbers without a gap), and the response time of the RT shall stay as CORE-RT-02 states. MIL 4.4.4 (D8, D30)
CORE-BM-06 A double error in a word of the filter table read by the BM shall be taken as BM-FI-04 states (the record written, with the flag "filter error"), counted in ECC_PROTOCOL and set ECC_DED and BIT word bit 4 as CORE-FT-02 states; a single error shall be corrected and counted. A single error injected through ErrInj_BmBitFlip into a word of a message buffer shall be corrected in the record, a double error shall mark the record as BM-FT-03 states. (D14)
CORE-BM-07 With IncludeBm_g = false the BM registers shall have no effect: no memory access of a BM, BM_STATUS, BM_WRITE_INDEX and BM_LOST shall read 0, no BM flag shall be set, BM_CONTROL.EN shall not refuse a start of the BC, and ErrInj_BmBitFlip and ErrInj_BmValid shall have no effect; CORE_STATUS.BM_INCLUDED shall be '0'. (D27)

2.9 Configuration

ID Requirement Clauses
CORE-CF-01 The core shall stop the elaboration for a ClkFreq_g that is not an integer multiple of 2 MHz from 16 MHz to 400 MHz, and for a ScrubPeriod_g below 1 ms other than 0.0. (D1)
CORE-CF-02 The core shall synthesise with GHDL without inferred latches at the ends of the ranges of its generics. none
CORE-CF-03 The core shall synthesise with GHDL without inferred latches with IncludeBc_g = true at the ends of the ranges of the other generics, and with AllowOpenProfile_g = true. none
CORE-CF-04 The core shall synthesise with GHDL without inferred latches with IncludeBm_g = true, alone and with IncludeBc_g = true, at the ends of the ranges of the other generics. none

3. Partner behaviour

3.1 Bus controller and other terminals

Property Behaviour Handling
Messages All formats of MIL 4.3.3.6 on either bus, also back to back with the minimum intermessage gap of 4.0 us, superseding commands on the other bus, invalid words and timing faults CORE-RT-01; module specifications of o1553_codec and o1553_rt
Transceiver Comparator outputs of the receivers with the delay of the transceiver; the own transmission returns on the receiver of the transmitting bus o1553_codec (CD-1, CD-5); response time measured at the ports (I11)
Remote terminals (BC role) Status words and data words after a response time of 4.0 to 12.0 us, on the bus of the command; no response, late responses, invalid words and word count errors; busy and the other status bits o1553_bc (BC-RV-01 to BC-RV-07, BC-TM-02); the RT model of the repository in the tests
Bus traffic (BM) Messages of every format between other terminals on either bus, also back to back and superseded on the other bus, words outside a message, line activity without a word, missing, late and invalid responses o1553_bm (BM-MR-01 to BM-MR-12, BM-RC-01 to BM-RC-03); the bus model and the RT model of the repository in the tests

3.2 Host

Property Behaviour Handling
Accesses AXI4-Lite single transfers in any order and at any time, also slowed down between the accesses of a host sequence (interrupt latency of the processor) o1553_host (HI-HP-01 to HI-HP-05); host sequences of D9 (CORE-BO-01, CORE-BO-02)
Programming Register writes and buffer writes before and while the RT runs; reads of the status registers and the event log CORE-RT-03, CORE-RT-04

4. Error conditions

The error conditions of the core are those of its modules; CORE-FT-01 and CORE-FT-02 state the containment of double errors at the core ports, CORE-FT-04 the repair of a descriptor word that only the RT writes, CORE-BC-03 the double errors of the bus profile, CORE-BM-06 the errors in the words that the BM reads. A role error (CORE-RL-03) and a coincidence of the record events of both engines (CORE-RL-05, an assertion in simulation) are the conditions of the role; a start of the BC while the BM is enabled is refused (CORE-BM-04).

5. Configuration parameters

Generic Type Default Range Description
ClkFreq_g real none 16.0e6 to 400.0e6, integer multiple of 2.0e6 Frequency of Clk in Hz (D1)
ScrubPeriod_g real 0.0 0.0 or at least 1.0e-3 Scrub pass period of the buffer memory in seconds, 0.0 = free-running
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
EccPipeline_g natural 1 0 to 2 Pipeline stages of the ECC decoder of the buffer memory
IncludeBc_g boolean false Include the bus controller (D20)
AllowOpenProfile_g boolean false The open profile of the BC can be selected (D25)
IncludeBm_g boolean false Include the bus monitor (D27)

SyncStages_g, RamRdLatency_g and EccPipeline_g adapt the core to the timing of the target technology; the behaviour at the ports is the same for every value within the response time range (the shortest response time rtRespMin grows with the memory latency at 16 MHz, RT architecture section 8).