Skip to content

o1553_host: Register Map

Generated by tools/regmap.py from hdl/o1553_host/regs/o1553_regs.yml, do not edit. The same description generates the VHDL package o1553_regs_pkg and the C header sw/o1553_regs.h.

Byte addresses of 32-bit registers on the AXI4-Lite port (16-bit address). Addresses 0x0000 to 0x7FFF hold the registers; addresses and bits without a register or field read as zero, writes to them are ignored. Addresses 0x8000 to 0xFFFF are the memory window: word w of the buffer memory at 0x8000 + 4 x w, in bits 15 to 0. The ID register reads 0x15530003.

Access Meaning
RO Read only; writes ignored
RW Read and write, with byte enables
W1 Command: writing one gives a one-cycle pulse; reads as zero
W1C Writing one clears the bit (a flag of the host interface, or through a one-cycle pulse a bit kept by the RT)
W1S Writing one sets the bit kept by the RT (one-cycle pulse); reads the state
RC Read only; the read clears the counters

Registers

Address Register Description
0x0000 ID Identification of the core and version of the register map
0x0004 CONTROL Configuration of the RT, the codec and the buffer memory
0x0008 COMMAND Commands
0x000C RESP_TIME Response time of the RT in clock cycles at the ports
0x0010 TERM_COND Status word conditions of the host
0x0014 VECTOR Vector word of mode code 16
0x0018 BIT BIT word of the RT
0x001C HEALTH RT health word
0x0020 RT_ADDRESS Validated address of the RT
0x0024 RT_STATUS State of the RT
0x0028 RT_LAST_CMD Last command word of the RT
0x002C RT_FRAME Frame number of the last frame synchronisation
0x0030 TX_IN_USE Transmit buffer in use (D9)
0x0034 BUS_STATUS Transmitter state of both buses
0x0038 CORE_STATUS State of the core
0x003C TIME_TAG Time tag
0x0040 LOG_WR_IDX Write index of the event log
0x0044 LOG_RD_IDX Read index of the event log, kept by the host
0x0048 IRQ_FLAGS Interrupt flags
0x004C IRQ_ENABLE Interrupt enables, one per flag of IRQ_FLAGS
0x0050 SYNC_DATA Data word of the last frame synchronisation
0x0054 ECC_PROTOCOL Errors of the protocol reads
0x0058 ECC_HOST Errors of the host reads
0x005C ECC_SCRUB Errors found by the scrubber
0x0060 SCRUB_PASSES Completed scrub passes
0x0064 BC_CONTROL Configuration of the BC, taken at its start (o1553_bc architecture section 3.1)
0x0068 BC_FRAMES Frames per time synchronization cycle or per second, taken at the start
0x006C BC_FRAME_TIME Frame duration, taken at the start
0x0070 BC_TICK_TIMEOUT Time after a tick by which the next one is missing, taken at the start
0x0074 BC_TS_DELAY Tick to time synchronization message, taken at the start
0x0078 BC_LATCH_TIME Latch window before each frame, taken at the start
0x007C BC_TIMEOUT No-response time-out of the BC in clock cycles at the ports, taken at the start
0x0080 BC_GAP Intermessage gap of the BC in clock cycles at the ports, taken at the start
0x0084 BC_TABLES Bus profile of the BC in the buffer memory, taken at the start
0x0088 BC_RT_BUS Bus per RT address for the messages that select it
0x008C BC_FRAME_RSVD Upper byte of the data word of the frame synchronization message
0x0090 BC_COMMAND Commands of the BC
0x0094 BC_STATUS State of the BC
0x0098 BC_FRAME_COUNT Frames since the start of the BC
0x009C BM_CONTROL Configuration of the BM; all fields but EN are taken when the BM becomes active
0x00A0 BM_COMMAND Commands of the BM
0x00A4 BM_TIMEOUT Response window of the BM in clock cycles
0x00A8 BM_RING_BASE First memory word of the ring of the BM
0x00AC BM_RING_SIZE Size of the ring of the BM in words
0x00B0 BM_FILTER_BASE Filter table of the BM, a multiple of 256 words
0x00B4 BM_READ_INDEX Read index of the host, in ring words from the base
0x00B8 BM_IRQ_LEVEL Fill level of the event BM_LEVEL, in ring words
0x00BC BM_STATUS State of the BM
0x00C0 BM_WRITE_INDEX Write index of the BM, in ring words from the base
0x00C4 BM_LOST Records lost by the BM

Fields

ID

Address 0x0000: Identification of the core and version of the register map.

Bits Field Access Reset Description
31:16 IDENT RO 0x1553 Identification of Open1553
15:0 VERSION RO 3 Version of the register map: 0.3

CONTROL

Address 0x0004: Configuration of the RT, the codec and the buffer memory.

Bits Field Access Reset Description
19 HEALTH_EN RW 1 RT health word in subaddress 1 (Cfg_HealthEn)
18 FRAME_EN RW 1 Frame number in subaddress 1 transmit word 1 (Cfg_FrameEn)
17 TIME_EN RW 1 Time message on subaddress 29 (Cfg_TimeEn)
16 WRAP_EN RW 1 Data wrap-around on subaddress 30 (Cfg_WrapEn)
9:8 BUS_EN RW 3 Bus B (9) and bus A (8) enabled (Cfg_BusEn)
5 SCRUB_EN RW 1 Scrubber of the buffer memory enabled
4 MON_EN RW 1 Loopback monitor of the codec (Cfg_MonEn)
3 LOG_ERRORS RW 1 Records of messages that end with an error (Cfg_LogErrors)
2 ILLEGAL_EN RW 1 Illegal command tables used (Cfg_IllegalEn)
1 BCST_EN RW 1 Broadcast commands accepted (Cfg_BcstEn)
0 RT_EN RW 1 RT enabled (Cfg_RtEn)

COMMAND

Address 0x0008: Commands.

Bits Field Access Reset Description
1 ECC_CLR W1 0 Clear all error counters
0 ADDR_CHECK W1 0 Validate the address straps again (Cfg_AddrCheck)

RESP_TIME

Address 0x000C: Response time of the RT in clock cycles at the ports.

Bits Field Access Reset Description
15:0 RESP_TIME RW 6.0 us in cycles Response time (Cfg_RespTime), bounded by the RT to rtRespMin to 12.0 us

TERM_COND

Address 0x0010: Status word conditions of the host.

Bits Field Access Reset Description
3 TERM_FLAG RW 0 Terminal flag condition of the host (Cfg_TermFlag)
2 SUBSYS_FLAG RW 0 Subsystem flag (Cfg_SubsysFlag)
1 BUSY RW 0 Busy (Cfg_Busy)
0 SERVICE_REQ RW 0 Service request (Cfg_ServiceReq)

VECTOR

Address 0x0014: Vector word of mode code 16.

Bits Field Access Reset Description
15:0 VECTOR RW 0 Vector word (Cfg_Vector)

BIT

Address 0x0018: BIT word of the RT.

Bits Field Access Reset Description
15:8 HOST RW 0 BIT bits of the host (Cfg_BitHost)
7:0 FAULTS W1C Latched fault indications of the RT (RT architecture section 3.4); write one to clear (Cfg_BitClr)

HEALTH

Address 0x001C: RT health word.

Bits Field Access Reset Description
15:0 HEALTH W1S Health word of the RT; write one to set a bit (Cfg_HealthSet)

RT_ADDRESS

Address 0x0020: Validated address of the RT.

Bits Field Access Reset Description
10 ADDR_31 RO Address 31 on the straps
9 PARITY_ERR RO Parity error of the straps
8 VALID RO Address valid
4:0 ADDR RO Validated address

RT_STATUS

Address 0x0024: State of the RT.

Bits Field Access Reset Description
17 MSG_ACTIVE RO A message is in progress
16 TF_INHIBIT RO Terminal flag inhibited (mode code 6)
15:0 STATUS_WORD RO Current status word

RT_LAST_CMD

Address 0x0028: Last command word of the RT.

Bits Field Access Reset Description
15:0 LAST_CMD RO Last command word

RT_FRAME

Address 0x002C: Frame number of the last frame synchronisation.

Bits Field Access Reset Description
7:0 FRAME RO Frame number

TX_IN_USE

Address 0x0030: Transmit buffer in use (D9).

Bits Field Access Reset Description
7 IN_USE RO A transmit buffer is in use
6 PENDING RO Buffer not yet known (control word not yet read)
5 BUF RO Buffer in use (valid when PENDING is 0)
4:0 SA RO Subaddress in use

BUS_STATUS

Address 0x0034: Transmitter state of both buses.

Bits Field Access Reset Description
5:4 FAIL_SAFE RO Fail-safe state (bit 5 bus B)
3:2 SHUTDOWN RO Transmitter shut down by mode code (bit 3 bus B)
1:0 TX_EN RO Transmitter enabled (bit 1 bus B)

CORE_STATUS

Address 0x0038: State of the core.

Bits Field Access Reset Description
3 BM_INCLUDED RO The core includes the BM (IncludeBm_g)
2 OPEN_PROFILE RO The open profile of the BC can be selected (AllowOpenProfile_g)
1 BC_INCLUDED RO The core includes the BC (IncludeBc_g)
0 INIT_DONE RO Buffer memory initialised

TIME_TAG

Address 0x003C: Time tag.

Bits Field Access Reset Description
31:0 TIME_TAG RO Microseconds since the reset

LOG_WR_IDX

Address 0x0040: Write index of the event log.

Bits Field Access Reset Description
7:0 WR_IDX RO Index of the next record

LOG_RD_IDX

Address 0x0044: Read index of the event log, kept by the host.

Bits Field Access Reset Description
7:0 RD_IDX RW 0 Index of the next record the host reads

IRQ_FLAGS

Address 0x0048: Interrupt flags.

Bits Field Access Reset Description
22 BM_LEVEL W1C 0 BM: the unread words of the ring reached BM_IRQ_LEVEL (Ev_BmLevel)
21 BM_OVERFLOW W1C 0 BM: a record was lost (Ev_BmOverflow)
20 BM_RECORD W1C 0 BM: a record with its interrupt bit was written (Ev_BmRecord)
19 BC_ROLE_ERR W1C 0 BC: the role copies were not complementary (Ev_BcRoleErr)
18 BC_START_REFUSED W1C 0 BC: a start was refused (Ev_BcStartRefused)
17 BC_STOPPED W1C 0 BC: stopped, also after control passed (Ev_BcStopped)
16 BC_LIST_END W1C 0 BC: a list without a last flag ended after 256 slots (Ev_BcListEnd)
15 BC_TICK_EARLY W1C 0 BC: the tick came early (Ev_BcTickEarly)
14 BC_TICK_MISSING W1C 0 BC: the tick is missing (Ev_BcTickMissing)
13 BC_LATE W1C 0 BC: a frame, time synchronization message or timed slot started late (Ev_BcLate)
12 BC_NOT_SENT W1C 0 BC: a message was not sent (Ev_BcNotSent)
11 BC_BUSY W1C 0 BC: a status word with the busy bit (Ev_BcBusy)
10 BC_FRAME W1C 0 BC: frame start (Ev_BcFrame)
9 SCRUB_OVR W1C 0 A scrub pass overran its period
8 ECC_DED W1C 0 A double error was detected
7 ECC_SEC W1C 0 A single error was corrected
6 BIT W1C 0 A bit of BIT.FAULTS was set
5 SELF_TEST W1C 0 Mode code 3 (initiate self test)
4 RESET_REQ W1C 0 Mode code 8 (reset remote terminal)
3 FRAME_SYNC W1C 0 Mode code 17 (synchronize with data word)
2 TIME_SYNC W1C 0 Mode code 1 (synchronize)
1 LOG_OVF W1C 0 A record was written while 255 records were unread
0 RECORD W1C 0 A record that requests an interrupt was written

IRQ_ENABLE

Address 0x004C: Interrupt enables, one per flag of IRQ_FLAGS.

Bits Field Access Reset Description
22:0 ENABLE RW 0 Enable of the flag with the same bit

SYNC_DATA

Address 0x0050: Data word of the last frame synchronisation.

Bits Field Access Reset Description
15:0 SYNC_DATA RO Data word of the last mode code 17

ECC_PROTOCOL

Address 0x0054: Errors of the protocol reads.

Bits Field Access Reset Description
31:16 DED RC Double errors
15:0 SEC RC Single errors

ECC_HOST

Address 0x0058: Errors of the host reads.

Bits Field Access Reset Description
31:16 DED RC Double errors
15:0 SEC RC Single errors

ECC_SCRUB

Address 0x005C: Errors found by the scrubber.

Bits Field Access Reset Description
31:16 DED RC Double errors
15:0 SEC RC Single errors

SCRUB_PASSES

Address 0x0060: Completed scrub passes.

Bits Field Access Reset Description
15:0 PASSES RO Completed passes

BC_CONTROL

Address 0x0064: Configuration of the BC, taken at its start (o1553_bc architecture section 3.1).

Bits Field Access Reset Description
3 TICK_SRC RW 0 Tick from Bc_TimeTick (0) or BC_COMMAND.TICK (1) (Cfg_BcTickSrc)
2 TIME_SYNC RW 0 Frames with time synchronization (Cfg_BcTimeSync)
1:0 PROFILE RW 0 Profile (Cfg_BcProfile): 00 ECSS, 01 MIL, 10 open (only with AllowOpenProfile_g), 11 ECSS

BC_FRAMES

Address 0x0068: Frames per time synchronization cycle or per second, taken at the start.

Bits Field Access Reset Description
8:0 N RW 8 Frames (Cfg_BcFrames), bounded to 1 (2 with time synchronization) to 256

BC_FRAME_TIME

Address 0x006C: Frame duration, taken at the start.

Bits Field Access Reset Description
19:0 D RW 0x1E848 Frame duration in us (Cfg_BcFrameTime), bounded to at least 2000

BC_TICK_TIMEOUT

Address 0x0070: Time after a tick by which the next one is missing, taken at the start.

Bits Field Access Reset Description
23:0 TIMEOUT RW 0xF6950 Tick time-out in us (Cfg_BcTickTimeout), bounded to at least the frame duration

BC_TS_DELAY

Address 0x0074: Tick to time synchronization message, taken at the start.

Bits Field Access Reset Description
15:0 DELAY RW 0x3E8 Delay in us (Cfg_BcTsDelay)

BC_LATCH_TIME

Address 0x0078: Latch window before each frame, taken at the start.

Bits Field Access Reset Description
9:0 LATCH_TIME RW 0xC8 Latch window in us (Cfg_BcLatchTime), bounded to 20 to 1000

BC_TIMEOUT

Address 0x007C: No-response time-out of the BC in clock cycles at the ports, taken at the start.

Bits Field Access Reset Description
15:0 TIMEOUT RW 18.0 us in cycles Time-out (Cfg_BcTimeout), bounded to at least 14.0 us

BC_GAP

Address 0x0080: Intermessage gap of the BC in clock cycles at the ports, taken at the start.

Bits Field Access Reset Description
15:0 GAP RW 4.0 us in cycles Gap (Cfg_BcGap), bounded to at least 4.0 us

BC_TABLES

Address 0x0084: Bus profile of the BC in the buffer memory, taken at the start.

Bits Field Access Reset Description
23:16 STATUS_TABLE RW 0x18 Bits 12 to 5 of the word address of the status table (Cfg_BcStatusTable)
12:0 FRAME_TABLE RW 0x200 Word address of the frame table (Cfg_BcFrameTable)

BC_RT_BUS

Address 0x0088: Bus per RT address for the messages that select it.

Bits Field Access Reset Description
31:0 BUS RW 0 Bus B (1) or A (0) per RT address; bit 31 for the synchronization messages and the broadcast messages whose control word selects this register (Cfg_BcRtBus)

BC_FRAME_RSVD

Address 0x008C: Upper byte of the data word of the frame synchronization message.

Bits Field Access Reset Description
7:0 RSVD RW 0 Bits 15 to 8 of the data word (Cfg_BcFrameRsvd)

BC_COMMAND

Address 0x0090: Commands of the BC.

Bits Field Access Reset Description
5:4 FS_CLR W1 0 Release the fail-safe state of bus B (5) or A (4) (Cmd_BcFsClr)
2 TICK W1 0 Tick from the host (Cmd_BcTick)
1 STOP W1 0 Stop after the message in progress (Cmd_BcStop)
0 START W1 0 Start the BC (Cmd_BcStart)

BC_STATUS

Address 0x0094: State of the BC.

Bits Field Access Reset Description
15:8 FRAME_NUM RO Number of the current frame (Stat_BcFrameNum)
2:1 STATE RO 00 inactive, 01 waiting for the first frame, 10 running, 11 stopping (Stat_BcState)
0 ACTIVE RO The BC is active (Stat_BcActive)

BC_FRAME_COUNT

Address 0x0098: Frames since the start of the BC.

Bits Field Access Reset Description
15:0 COUNT RO Frame count, modulo 65536 (Stat_BcFrameCount)

BM_CONTROL

Address 0x009C: Configuration of the BM; all fields but EN are taken when the BM becomes active.

Bits Field Access Reset Description
3 ACTIVITY RW 1 Records of line activity without a word (Cfg_BmActivity)
2 OUTSIDE RW 1 Records of words outside a message (Cfg_BmOutside)
1 FILTER RW 0 Filter table used (Cfg_BmFilter)
0 EN RW 0 BM enabled (Cfg_BmEn)

BM_COMMAND

Address 0x00A0: Commands of the BM.

Bits Field Access Reset Description
0 LOST_CLR W1 0 Clear BM_LOST (Cmd_BmLostClr)

BM_TIMEOUT

Address 0x00A4: Response window of the BM in clock cycles.

Bits Field Access Reset Description
15:0 TIMEOUT RW 18.0 us in cycles Time-out (Cfg_BmTimeout), bounded to at least 14.0 us

BM_RING_BASE

Address 0x00A8: First memory word of the ring of the BM.

Bits Field Access Reset Description
12:0 BASE RW 0x300 Word address (Cfg_BmRingBase)

BM_RING_SIZE

Address 0x00AC: Size of the ring of the BM in words.

Bits Field Access Reset Description
13:0 SIZE RW 0x500 Ring size (Cfg_BmRingSize), bounded to 64 to 8192

BM_FILTER_BASE

Address 0x00B0: Filter table of the BM, a multiple of 256 words.

Bits Field Access Reset Description
12:8 BASE RW 2 Bits 12 to 8 of the word address (Cfg_BmFilterBase); the register reads as the word address

BM_READ_INDEX

Address 0x00B4: Read index of the host, in ring words from the base.

Bits Field Access Reset Description
12:0 RD_IDX RW 0 Read index (Cfg_BmRdIdx)

BM_IRQ_LEVEL

Address 0x00B8: Fill level of the event BM_LEVEL, in ring words.

Bits Field Access Reset Description
12:0 LEVEL RW 0x280 Level (Cfg_BmIrqLevel)

BM_STATUS

Address 0x00BC: State of the BM.

Bits Field Access Reset Description
31:16 SEQ RO Sequence number of the next record (Stat_BmSeq)
0 ACTIVE RO The BM is active (Stat_BmActive)

BM_WRITE_INDEX

Address 0x00C0: Write index of the BM, in ring words from the base.

Bits Field Access Reset Description
12:0 WR_IDX RO Write index (Stat_BmWrIdx)

BM_LOST

Address 0x00C4: Records lost by the BM.

Bits Field Access Reset Description
15:0 LOST RO Lost count, saturating (Stat_BmLost)