Skip to content

o1553_host: Specification

1. Overview

o1553_host is the host interface of Open1553 (architecture blocks HI-1 to HI-6). It gives the host one AXI4-Lite port to the registers and to the buffer memory, keeps the buffer memory with its error correction, scrubber and initialisation, arbitrates the memory between the protocol engines and the host, holds the configuration and status registers of the core, the event log pointers and the interrupt flags, counts the memory errors and provides the reset and the time base of the core.

Block Function
HI-1 Host port: AXI4-Lite slave, decoding into the register file and the buffer memory window (D7)
HI-2 Register file: configuration, commands and status of all blocks, generated from one register description
HI-3 Buffer memory: SECDED memory of 8192 words with scrubber, fixed-priority arbitration (D8), initialisation (D11)
HI-4 Event log and interrupts: write and read index of the event log, interrupt flags and enables, Irq (D10)
HI-5 EDAC monitor: single and double error counters of the protocol reads, the host reads and the scrubber (D14)
HI-6 Reset and time base: reset synchroniser, 1 us tick and 32-bit time tag (D18)

The module connects to the AXI4-Lite master of the host, to o1553_rt (memory port, event log, time tag, configuration, state and indications), to o1553_bc (memory port, event log, time tag, configuration, commands, state and events; register map 0.2), to o1553_bm (memory port, time tag, configuration, command, state and events; register map 0.3) and to o1553_codec (bus configuration and bus state). All blocks run in Clk; only the reset input is asynchronous. Clause references: MIL = MIL-STD-1553B (Notice 2), ECSS = ECSS-E-ST-50-13C. The architecture decisions (D) and interpretations (I) are those of the core architecture, section 6; the memory map is that of o1553_rt (architecture section 4).

Terms used below:

  • Protocol engine: a block that accesses the buffer memory for the bus protocol: the RT, the BC and the BM, each through a memory port of its own (D8, D20, D30).
  • Memory window: the upper half of the address space of the host port, one 16-bit memory word per 32-bit location.
  • Record: one entry of the event log of o1553_rt (8 words in the buffer memory).

2. Requirements

2.1 Interfaces

ID Requirement Clauses
HI-IF-01 The host interface shall provide one AXI4-Lite slave port with a 16-bit byte address and 32-bit data (S_AxiLite_*). Addresses 0x0000 to 0x7FFF shall access the registers, addresses 0x8000 to 0xFFFF the buffer memory: memory word w at 0x8000 + 4 x w. (D7)
HI-IF-02 The host interface shall provide the memory port of the RT: requests as a valid / ready stream of 13-bit word address, write flag and 16 data bits; for every read one response, in the order of the requests, MemLatency cycles after its acceptance, with the data and the double error flag. (D8)
HI-IF-03 The host interface shall drive the configuration inputs of o1553_rt and o1553_codec from its registers and take their state outputs, the loopback errors and the indications of the RT. none
HI-IF-04 The host interface shall provide the record index of the event log (Log_WrIdx) and take the record events (Log_Push with Log_Irq). (D10)
HI-IF-05 The host interface shall provide the 32-bit time tag in microseconds (Time_Tag). (D18)
HI-IF-06 The host interface shall provide a high-active level interrupt output (Irq). (D10)
HI-IF-07 The host interface shall provide the error injection ports of the buffer memory (ErrInj_BitFlip, ErrInj_Valid, semantics of olo_ft_ram_sp_scrub). (D14)
HI-IF-08 The host interface shall take the asynchronous reset input of the core (RstIn) and provide the synchronous high-active reset of all blocks (Rst). none
HI-IF-09 The host interface shall provide a second memory port, that of the BC (BcMem_*), with the stream, the responses and the latency of HI-IF-02. (D8, D20)
HI-IF-10 The host interface shall drive the configuration and command inputs of o1553_bc from its registers and take its state outputs and events. (D20)
HI-IF-11 The host interface shall provide a third memory port, that of the BM (BmMem_*), with the stream, the responses and the latency of HI-IF-02. (D8, D30)
HI-IF-12 The host interface shall drive the configuration and command inputs of o1553_bm from its registers and take its state outputs and events. (D27, D30)

2.2 Host port

ID Requirement Clauses
HI-HP-01 Every access shall be answered. A read of a register address without a register shall return 0, a write to it shall have no effect; both with the response OKAY. (D7)
HI-HP-02 A read of the memory window shall return the memory word in bits 15 to 0 and 0 in bits 31 to 16, with the response OKAY, also when a single error was corrected (the corrected word). A read whose memory word has a double error shall not be answered by the memory window: the read time-out of the host port answers it with SLVERR (HI-HP-05). (D7, D14)
HI-HP-03 A write to the memory window with both byte enables of bits 15 to 0 set shall write bits 15 to 0 into the memory word; bits 31 to 16 shall be ignored. A write with one of these byte enables cleared shall not change the memory. (D7)
HI-HP-04 Every host write to the memory window shall reach the memory, and every host access to the memory window shall be answered within 64 clock cycles, whatever the requests of the protocol engine. (D8)
HI-HP-05 The read time-out of the host port (ReadTimeoutClks_g of olo_axi_lite_slave) shall be 128 clock cycles, above the bound of 64 cycles of HI-HP-04, so that it ends only a read with a double error: that read is answered with SLVERR 128 cycles after it reached the host port, which takes no other access meanwhile; the protocol engine has the memory to itself meanwhile. The double error is also counted and flagged (HI-ECC-01, HI-ECC-02). (D14)

2.3 Buffer memory

ID Requirement Clauses
HI-MEM-01 The buffer memory shall hold 8192 words of 16 bits with single error correction and double error detection, in an olo_ft_ram_sp_scrub. Its scrubber shall correct single errors in the cycles without an access, while the scrubber is enabled (CONTROL.SCRUB_EN), and with the pass period ScrubPeriod_g. (D8, D14)
HI-MEM-02 The memory shall serve one access per clock cycle, in this priority: host access, RT, initialisation. A host access shall take the memory in the cycle after it reaches the host access. A request of the RT shall be accepted in the cycle in which it is presented or in the next cycle (at most one wait cycle, MemWait of o1553_rt). (D8)
HI-MEM-03 A read shall return its data MemLatency = RamRdLatency_g + EccPipeline_g + 1 clock cycles after its acceptance, for every requester. (D8)
HI-MEM-04 After the reset the host interface shall write every word of the buffer memory: the illegal command tables with the defaults of section 6, every other word with 0. It shall then set Mem_InitDone and CORE_STATUS.INIT_DONE. The content is defined from then on; host accesses before are served, a host write before may be overwritten. MIL 30.5.1 (D11, I8)
HI-MEM-05 The host interface shall carry the owner of every read (host, RT or BC) to its response and deliver the response only to that owner, also when the owner presents no further request or another port is granted in the cycle of the response. (D20)
HI-MEM-06 The memory port of the BC shall have the priority below the RT and above the initialisation. A request of the RT shall still be accepted within one wait cycle (HI-MEM-02) whatever the BC requests; a request of the BC shall be accepted in the cycle in which it is presented or in the next cycle while the RT makes no request. A request that the BC withdraws before it is accepted shall make no access. (D8, D20)
HI-MEM-07 The memory port of the BM shall have the priority below the BC and above the initialisation, and the response of every read of the BM shall go to the BM only, as HI-MEM-05 states. A request of the RT shall still be accepted within one wait cycle (HI-MEM-02) whatever the BM requests; a request of the BM shall be accepted in the first cycle in which neither the host access, the RT nor the BC takes the memory. A request that the BM withdraws before it is accepted shall make no access. (D8, D30)

2.4 Register file

ID Requirement Clauses
HI-RF-01 The registers shall be generated from one register description (hdl/o1553_host/regs/o1553_regs.yml, tools/regmap.py): the VHDL package of addresses, fields and reset values, the register map of the documentation and the C header; python tools/regmap.py --check shall fail when a generated file differs from the description. none
HI-RF-02 The configuration fields shall drive the configuration inputs of o1553_rt and o1553_codec with the reset values of the RT architecture (section 3.1): RT enable, broadcast enable, illegal command detection, records of errors, response time, the status conditions of the host, vector word, host BIT bits, the ECSS service enables, the bus enables and the loopback monitor of the codec. MIL 4.3.3.5.3.5, 4.3.3.5.3.8, 4.3.3.5.3.9, 30.5.3; ECSS 6.2.1.2.3b, 8.7.1a to e (D12)
HI-RF-03 The response time field shall reset to 6.0 us in clock cycles (ClkFreq_g x 6.0 us). (D6)
HI-RF-04 A write of '1' to a command field shall give a one-cycle pulse on its output: address validation, clear of BIT bits, set of health word bits, clear of the error counters. ECSS 8.7.2a to d (D17)
HI-RF-05 The status fields shall show the state of the blocks: RT address and its validity, status word, last command word, terminal flag inhibit, message in progress, BIT word, health word, frame number, transmit buffer in use, transmitter state of both buses, initialisation done, scrub passes, time tag. MIL 30.5.1; ECSS 8.7.1a to e (D9)
HI-RF-06 The BC configuration fields (BC_CONTROL, BC_FRAMES, BC_FRAME_TIME, BC_TICK_TIMEOUT, BC_TS_DELAY, BC_LATCH_TIME, BC_TIMEOUT, BC_GAP, BC_TABLES, BC_RT_BUS, BC_FRAME_RSVD) shall drive the configuration inputs of o1553_bc with the reset values of the BC architecture (section 3.1); BC_TIMEOUT and BC_GAP shall reset to 18.0 us and 4.0 us in clock cycles. CONTROL.RT_EN and CONTROL.LOG_ERRORS shall also drive Cfg_RtEn and Cfg_LogErrors of the BC. ECSS 6.2.2a (D22, D25, D26)
HI-RF-07 A write of '1' to a field of BC_COMMAND shall give a one-cycle pulse on its command input of o1553_bc: start, stop, tick, and the fail-safe release of bus A or B. (D20, D22, D26)
HI-RF-08 BC_STATUS and BC_FRAME_COUNT shall show the state outputs of o1553_bc: active, state, frame number, frame count. CORE_STATUS.BC_INCLUDED and CORE_STATUS.OPEN_PROFILE shall show the generics IncludeBc_g and AllowOpenProfile_g. (D20, D25)
HI-RF-09 The BM configuration fields (BM_CONTROL, BM_TIMEOUT, BM_RING_BASE, BM_RING_SIZE, BM_FILTER_BASE, BM_READ_INDEX, BM_IRQ_LEVEL) shall drive the configuration inputs of o1553_bm with the reset values of the architecture (section 3.3); BM_TIMEOUT shall reset to 18.0 us in clock cycles. (D27, D29, D30)
HI-RF-10 A write of '1' to BM_COMMAND.LOST_CLR shall give a one-cycle pulse on Cmd_BmLostClr of o1553_bm. (D29)
HI-RF-11 BM_STATUS, BM_WRITE_INDEX and BM_LOST shall show the state outputs of o1553_bm: active, sequence number, write index, lost count. CORE_STATUS.BM_INCLUDED shall show the generic IncludeBm_g. (D27, D29)

2.5 Event log and interrupts

ID Requirement Clauses
HI-EV-01 The write index of the event log (Log_WrIdx, LOG_WR_IDX) shall reset to 0 and advance by one, modulo 256, at every Log_Push. The host shall keep its read index in LOG_RD_IDX. (D10)
HI-EV-02 A Log_Push when 255 records are unread (write index + 1 = read index, modulo 256) shall set the interrupt flag LOG_OVF: the next record overwrites the oldest unread one. (D10)
HI-EV-03 The interrupt flags shall be set by their events, kept until the host writes '1' to them, and be set again by an event in the cycle of the clear: RECORD (a Log_Push with Log_Irq), LOG_OVF, TIME_SYNC, FRAME_SYNC, RESET_REQ and SELF_TEST (the indications of the RT), BIT (a bit of the BIT word bits 7 to 0 changes from '0' to '1'), ECC_SEC and ECC_DED (section 2.6), SCRUB_OVR (a scrub pass that overran its period). MIL 30.4.4; ECSS 7.1.1a, 7.1.2a, 7.2.1a, 8.7.3a to h (D5, D10, D14, D17, D19)
HI-EV-04 Irq shall be '1' while an interrupt flag is set whose enable (IRQ_ENABLE) is set. (D10)
HI-EV-05 The data word of the last frame synchronisation (Rt_SyncData at Rt_FrameSync) shall be kept in SYNC_DATA. ECSS 8.3.1.2a, 8.3.2.2a
HI-EV-06 The interrupt flags of the BC shall be set by its events (BC-EV-03) as HI-EV-03 states, with their enables in IRQ_ENABLE: BC_FRAME, BC_BUSY, BC_NOT_SENT, BC_LATE, BC_TICK_MISSING, BC_TICK_EARLY, BC_LIST_END, BC_STOPPED, BC_START_REFUSED, BC_ROLE_ERR. ECSS 7.2.1a (D20, D22)
HI-EV-07 The interrupt flags of the BM shall be set by its events (BM-EV-01) as HI-EV-03 states, with their enables in IRQ_ENABLE: BM_RECORD, BM_OVERFLOW, BM_LEVEL. (D30)

2.6 EDAC monitor

ID Requirement Clauses
HI-ECC-01 The host interface shall count the single and the double errors of the protocol reads, of the host reads and of the scrubber in saturating 16-bit counters (olo_ft_ecc_monitor). Reading the counter register of a source shall clear it; the command COMMAND.ECC_CLR shall clear all. (D14)
HI-ECC-02 Every double error shall set ECC_DED and give a one-cycle pulse on Ecc_DedEvent (BIT word bit 4 of the RT); every single error shall set ECC_SEC. MIL 4.3.3.5.3.11 (D14)
HI-ECC-03 The reads of the BC shall count as protocol reads (ECC_PROTOCOL) and set ECC_SEC, ECC_DED and Ecc_DedEvent as those of the RT. (D14, D20)
HI-ECC-04 The reads of the BM shall count as protocol reads (ECC_PROTOCOL) and set ECC_SEC, ECC_DED and Ecc_DedEvent as those of the RT. (D14, D30)

2.7 Reset and time base

ID Requirement Clauses
HI-TB-01 The reset input shall be synchronised by olo_base_reset_gen with SyncTmr_g = true; the reset output shall last at least until the reset input has ended and its synchroniser has passed it. none
HI-TB-02 A tick every microsecond, derived from Clk (olo_base_strobe_gen), shall advance the time tag (Time_Tag, TIME_TAG), a 32-bit counter that is 0 after the reset and wraps. (D18)

2.8 Fault tolerance and configuration

ID Requirement Clauses
HI-FT-01 Every state machine shall return to its idle state from an illegal state, and the reset shall bring every register to its reset value. (D15, D16)
HI-CF-01 ClkFreq_g shall be that of the codec and of the RT; the host interface shall stop the elaboration for a ClkFreq_g that the codec does not accept. (D1)
HI-CF-02 RamRdLatency_g and EccPipeline_g shall be passed to the buffer memory; their MemLatency shall be the MemLatency_g of the RT (range 1 to 8). (D8)
HI-CF-03 ScrubPeriod_g shall be 0.0 (free-running scrubber) or at least 1 ms. none
HI-CF-04 IncludeBc_g and AllowOpenProfile_g shall change nothing but the two fields of HI-RF-08: the BC registers exist in every configuration, and without the BC (IncludeBc_g = false) the core leaves their outputs unused and holds the BC state and event inputs at '0'. (D20, D25)
HI-CF-05 IncludeBm_g shall change nothing but the field CORE_STATUS.BM_INCLUDED: the BM registers exist in every configuration, and without the BM (IncludeBm_g = false) the core leaves their outputs unused and holds the BM state and event inputs and the memory requests of the BM at '0'. (D27)

3. Partner behaviour

3.1 Host

Property Behaviour Handling
Access shape AXI4-Lite: single 32-bit transfers, reads and writes in any order, also back to back; the read and the write channel of a master may be active at the same time olo_axi_lite_slave serves one access at a time; every access is answered (HI-HP-01)
Byte enables Software writes whole 32-bit words; a master may issue narrower writes A memory write needs both byte enables of bits 15 to 0 (HI-HP-03); registers take the byte enables per byte
Memory window Reads and writes of the buffers, tables, descriptors and records in any order, at any time, also while the RT runs messages One cycle of the memory per access (HI-MEM-02), sequences of D9 for the buffers
Interrupt Level-sensitive, cleared by writing the flags HI-EV-03, HI-EV-04

3.2 Remote terminal

Property Behaviour Handling
Memory requests Up to 2 reads in consecutive cycles (lookup), 1 read or write per data word, 3 accesses per publication, 8 writes per record, every request held until accepted; one wait cycle per request in the response time budget (MemWait = 1) Accepted in the cycle of the request or in the next (HI-MEM-02)
Record events Log_Push one cycle after the last record word was accepted, at most one per message HI-EV-01
Indications One-cycle pulses, Rt_SyncData valid with Rt_FrameSync HI-EV-03, HI-EV-05
State outputs Levels Read in the status registers

3.3 Codec

Property Behaviour Handling
Loopback errors One-cycle pulses Mon_Error per bus Into the BIT word of the RT (RT-2) and through it to the interrupt flag BIT
Bus state Levels Stat_TxEn, Stat_Shutdown, Stat_FailSafe BUS_STATUS

3.4 Bus controller

Property Behaviour Handling
Memory requests Reads and writes in consecutive cycles, up to 15 reads in flight (the latch walk reads ahead, o1553_bc architecture section 8.2); a request is held until it is accepted, except that the BC withdraws it in the cycle in which it becomes inactive (BC-RO-02); waits are allowed at every request Port of the BC below the RT in the arbiter, granted per cycle (HI-MEM-06); responses only to the BC (HI-MEM-05)
Responses after the end of the role Reads in flight when the BC becomes inactive return to its port and are dropped there (BC-RO-02) HI-MEM-05
Record events Log_Push one cycle after the last record word was accepted, at most one per message, never in the cycle of a push of the RT (D20) HI-EV-01, through the core
Commands, state and events Commands taken as one-cycle pulses; state outputs are levels, events one-cycle pulses HI-RF-07, HI-RF-08, HI-EV-03

3.5 Bus monitor

Property Behaviour Handling
Memory requests Before a message record up to 4 reads of the filter table, then the writes of the record (up to 44, a word or activity record 6) in consecutive cycles; a request is held until it is accepted, except that the BM withdraws it in the cycle in which it becomes inactive (BM-EN-03); waits are allowed at every request Port of the BM below the BC in the arbiter, granted per cycle (HI-MEM-07); responses only to the BM (HI-MEM-05)
Responses after the end of the activity Reads in flight when the BM becomes inactive return to its port and are dropped there (BM-EN-03) HI-MEM-07
Command, state and events Cmd_BmLostClr taken as a one-cycle pulse; state outputs are levels, events one-cycle pulses HI-RF-10, HI-RF-11, HI-EV-07

4. Error conditions

Condition Detection Response
Double error in a host read Double error flag of the memory No answer of the memory window; SLVERR by the read time-out after 128 cycles (HI-HP-05), counted, ECC_DED, Ecc_DedEvent
Double error in a protocol read Double error flag of the memory Passed to the RT (RT-FT-01, RT-FT-02, RT-FT-05, RT-FT-06), counted, ECC_DED, Ecc_DedEvent
Double error found by the scrubber Scrub_EccDed Counted, ECC_DED, Ecc_DedEvent; the word is not written back
Single error Single error flag of the memory or Scrub_EccSec Corrected data used, counted, ECC_SEC; the scrubber writes the word back
Event log overflow Push with 255 unread records LOG_OVF (HI-EV-02)
Memory write with incomplete byte enables WSTRB bits 1 or 0 cleared Ignored, OKAY (HI-HP-03)
Access to a register address without a register Address decode Read 0, write ignored, OKAY (HI-HP-01)
Scrub pass overrun Scrub_Overrun SCRUB_OVR
Response of a read of the BC that returns after the BC became inactive Owner of the read (HI-MEM-05) Delivered to the port of the BC only, which drops it (BC-RO-02)
Double error in a read of the BM (filter table) Double error flag of the memory Passed to the BM, which takes the bit as '1' (BM-FI-04), counted as a protocol read, ECC_DED, Ecc_DedEvent (HI-ECC-04)
Response of a read of the BM that returns after the BM became inactive Owner of the read (HI-MEM-05) Delivered to the port of the BM only, which drops it (BM-EN-03)

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)
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
ScrubPeriod_g real 0.0 0.0 or at least 1.0e-3 Scrub pass period in seconds, 0.0 = free-running
IncludeBc_g boolean false The core includes the BC: shown in CORE_STATUS.BC_INCLUDED (HI-CF-04)
AllowOpenProfile_g boolean false The open profile of the BC can be selected: shown in CORE_STATUS.OPEN_PROFILE (HI-CF-04)
IncludeBm_g boolean false The core includes the BM: shown in CORE_STATUS.BM_INCLUDED (HI-CF-05)

MemLatency = RamRdLatency_g + EccPipeline_g + 1 lies in 2 to 7 and is given by o1553_host_pkg.memLatency for the MemLatency_g of the RT, the BC and the BM.

6. Default illegal command tables

The initialisation (HI-MEM-04) writes the tables of the memory map of o1553_rt (architecture section 4.3) with these defaults (I8); a set bit w makes word count (or mode code) w legal:

Entry Own w = 0 to 15 Own w = 16 to 31 Broadcast w = 0 to 15 Broadcast w = 16 to 31
Receive, subaddress 1 to 30 except 8 0xFFFF 0xFFFF 0xFFFF 0xFFFF
Transmit, subaddress 1 to 30 except 8 0xFFFF 0xFFFF 0x0000 0x0000
Receive and transmit, subaddress 8 (ECSS 6.4d) 0x0000 0x0000 0x0000 0x0000
Mode codes, T/R = '1' (subaddress 31) 0x01FF (0 to 8) 0x000D (16, 18, 19) 0x01FA (1, 3 to 8) 0x0000
Mode codes, T/R = '0' (subaddress 31) 0x0000 0x0032 (17, 20, 21) 0x0000 0x0032 (17, 20, 21)
Subaddress 0 (its mode codes use subaddress 31) 0x0000 0x0000 0x0000 0x0000

The mode code entries follow MIL Table I: each defined mode code with its T/R bit, broadcast where the table allows it; reserved mode codes and the other T/R bit illegal. Broadcast transmit commands are illegal by the fixed rules of the RT (RT-IL-02) whatever the table says.