Skip to content

spp_mib: Register Map

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

Byte addresses of 32-bit registers on the AXI4-Lite port (11-bit address); unused addresses and bits read as zero. The ID register reads 0x53505001.

Access Meaning
RO Read only
RW Read and write
W1 Write one: command; reads as zero
W1C Sticky flag; write one to clear
WO Write only; reads as zero
RC Read only; any write to the register clears it

Registers

Address Register Description
0x000 ID Identification of the core and version of the register map
0x004 GENERICS Generics of the core (product characteristics)
0x008 SERVICES Service type of every port (SPP Table 5-1)
0x00C TX_BUFFER Send buffer of every send port
0x010 RX_BUFFER Receive buffer
0x020 CONFIG Managed parameters
0x024 MAX_LENGTH Maximum Packet Length (SPP Table 5-1, CPTP Annex A); written values are limited to 7 to 65542
0x030 TX_TABLE_APID APID of the send APID table access; a write reads its entry into TX_TABLE_ENTRY
0x034 TX_TABLE_ENTRY Entry of TX_TABLE_APID; a write writes the entry, a read waits for a pending access
0x038 RX_TABLE_APID APID of the receive APID table access; a write reads its entry into RX_TABLE_ENTRY
0x03C RX_TABLE_ENTRY Entry of RX_TABLE_APID; a write writes the entry, a read waits for a pending access
0x040 TABLE_STATUS Status of the APID tables
0x050 LAST_ERROR Last rejected SDU or discarded packet
0x054 EVENTS Event flags
0x058 IRQ_EN Interrupt enable of the event flags
0x05C IRQ_STATUS Interrupt output
0x060 ECC_STATUS EDAC status of the buffers and tables
0x064 ECC_SELECT Channel shown in ECC_COUNT
0x068 ECC_COUNT SEC and DED counters of the selected channel
0x06C ECC_INJECT Error injection into the next word written to a buffer or table (tests)
0x070 SCRUB Scrubbers of the APID tables
0x080 TX_PACKETS Space Packets sent
0x084 RX_PACKETS SDUs delivered to the receive ports
0x088 RX_LOSS Indications with the loss indicator set (SPP 3.3.2.3, 3.4.2.4)
0x0A0 ERR_TX1 SDUs rejected by the sending end (1)
0x0A4 ERR_TX2 SDUs rejected by the sending end (2)
0x0A8 ERR_TX3 SDUs rejected by the sending end (3)
0x0AC ERR_TX4 SDUs rejected by the sending end (4)
0x0B0 ERR_RX1 Packets discarded by the receiving end (1)
0x0B4 ERR_RX2 Packets discarded by the receiving end (2)
0x0B8 ERR_RX3 Packets discarded by the receiving end (3)
0x0BC ERR_RX4 Packets discarded by the receiving end (4)
0x0C0 ERR_RX5 Packets discarded by the receiving end (5)
0x0C4 ERR_RX6 Packets discarded by the receiving end (6)
0x400 + 0x20 n DEST_CTRL Target Logical Address, User Application value and length of the Target SpaceWire Address
0x404 + 0x20 n DEST_ADDR0 Target SpaceWire Address bytes 0 to 3 (byte 0 first transmitted)
0x408 + 0x20 n DEST_ADDR1 Target SpaceWire Address bytes 4 to 7
0x40C + 0x20 n DEST_ADDR2 Target SpaceWire Address bytes 8 to 11
0x410 + 0x20 n DEST_ADDR3 Target SpaceWire Address bytes 12 to 15

Destinations of the encapsulation (CPTP 5.3.1, 5.3.2, 5.3.5); NUM_DEST instances, for 16 instances.

Fields

ID

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

Bits Field Access Reset Description
31:0 ID RO 0x53505001 0x535050 (SPP) and register map version 1

GENERICS

Address 0x004: Generics of the core (product characteristics).

Bits Field Access Reset Description
25 ENCAPSULATION RO Encapsulation_g CPTP layer implemented (ECSS-E-ST-50-53C)
24:20 DATA_BYTES RO DataWidth_g / 8 Bytes per beat of the streams
19:15 SPW_ADDR_BYTES RO SpwAddrBytes_g Maximum Target SpaceWire Address in bytes
14:10 NUM_DEST RO NumDest_g Destinations
9:5 NUM_RX RO NumRx_g Receive ports
4:0 NUM_TX RO NumTx_g Send ports

SERVICES

Address 0x008: Service type of every port (SPP Table 5-1).

Bits Field Access Reset Description
31:16 RX_OCTET RO RxOctetString_g Bit p: receive port p uses the Octet String Service ('1') or the Packet Service ('0')
15:0 TX_OCTET RO TxOctetString_g Bit p: send port p uses the Octet String Service ('1') or the Packet Service ('0')

TX_BUFFER

Address 0x00C: Send buffer of every send port.

Bits Field Access Reset Description
31:0 BYTES RO TxBufferBytes_g Bytes

RX_BUFFER

Address 0x010: Receive buffer.

Bits Field Access Reset Description
31:0 BYTES RO RxBufferBytes_g Bytes

CONFIG

Address 0x020: Managed parameters.

Bits Field Access Reset Description
15:8 TLA RW Tla_g Own Target Logical Address of the filter
7:4 RX_STRIP RW 0 Leading bytes removed in front of the CPTP header of a received packet (CPTP 5.3.1)
2 TLA_CHECK RW 0 Discard received CPTP packets whose Target Logical Address is neither TLA nor 0xFE
1 IDLE_DELIVER RW 0 Deliver received Idle Packets like other packets; '0' discards them
0 ROUND_ROBIN RW RoundRobin_g Packet Multiplexing Scheme: '0' fixed priority (port 0 first), '1' round robin (SPP 4.2.3.2)

MAX_LENGTH

Address 0x024: Maximum Packet Length (SPP Table 5-1, CPTP Annex A); written values are limited to 7 to 65542.

Bits Field Access Reset Description
16:0 LENGTH RW MaxLength_g Maximum Space Packet length in bytes

TX_TABLE_APID

Address 0x030: APID of the send APID table access; a write reads its entry into TX_TABLE_ENTRY.

Bits Field Access Reset Description
10:0 APID RW 0 APID

TX_TABLE_ENTRY

Address 0x034: Entry of TX_TABLE_APID; a write writes the entry, a read waits for a pending access.

Bits Field Access Reset Description
31 DED RO Double error detected in the entry read
18 ENABLE RW 0 Managed data path enabled (SPP 4.2.3.3)
17:14 DEST RW 0 Destination index
13:0 COUNT RW 0 Packet Sequence Count of the next Octet String (SPP 4.1.3.4.3)

RX_TABLE_APID

Address 0x038: APID of the receive APID table access; a write reads its entry into RX_TABLE_ENTRY.

Bits Field Access Reset Description
10:0 APID RW 0 APID

RX_TABLE_ENTRY

Address 0x03C: Entry of RX_TABLE_APID; a write writes the entry, a read waits for a pending access.

Bits Field Access Reset Description
31 DED RO Double error detected in the entry read
20 ENABLE RW 0 Managed data path enabled (SPP 4.3.3.2)
19:16 PORT RW 0 Receive port
15 CHECK RW 0 Continuity check enabled (SPP 3.3.2.3, 3.4.2.4)
14 VALID RW 0 LAST is valid
13:0 LAST RW 0 Last Packet Sequence Count received

TABLE_STATUS

Address 0x040: Status of the APID tables.

Bits Field Access Reset Description
3 RX_OVERRUN W1C 0 A write to RX_TABLE_APID or RX_TABLE_ENTRY while the previous access was pending was ignored
2 TX_OVERRUN W1C 0 A write to TX_TABLE_APID or TX_TABLE_ENTRY while the previous access was pending was ignored
1 RX_BUSY RO Receive APID table initialised or accessed
0 TX_BUSY RO Send APID table initialised or accessed

LAST_ERROR

Address 0x050: Last rejected SDU or discarded packet.

Bits Field Access Reset Description
26:16 APID RO APID of the SDU or packet; 0 when unknown
11:8 PORT RO Port of the SDU or packet; 0 when unknown
4:0 CODE RO Reason (error code)

EVENTS

Address 0x054: Event flags.

Bits Field Access Reset Description
6 ECC_DED W1C 0 Double error detected in a buffer or table
5 ECC_SEC W1C 0 Single error corrected in a buffer or table
4 RX_LOSS W1C 0 Indication with the loss indicator set (SPP 3.3.2.3, 3.4.2.4)
3 RX_DELIVERED W1C 0 SDU delivered
2 TX_SENT W1C 0 Space Packet sent
1 RX_DISCARD W1C 0 Packet discarded by the receiving end (CPTP 5.5.4.3b, 5.5.4.4b)
0 TX_REJECT W1C 0 SDU rejected by the sending end (CPTP 5.5.2c)

IRQ_EN

Address 0x058: Interrupt enable of the event flags.

Bits Field Access Reset Description
6:0 ENABLE RW 0 Bit n enables EVENTS bit n

IRQ_STATUS

Address 0x05C: Interrupt output.

Bits Field Access Reset Description
0 IRQ RO Irq: OR of the enabled event flags

ECC_STATUS

Address 0x060: EDAC status of the buffers and tables.

Bits Field Access Reset Description
7:0 DED RC 0 Bit n: double error detected in channel n (0 send data buffers, 1 send descriptor buffers, 2 send APID table, 3 its scrubber, 4 receive data buffer, 5 receive descriptor buffer, 6 receive APID table, 7 its scrubber); any write clears all counters and flags

ECC_SELECT

Address 0x064: Channel shown in ECC_COUNT.

Bits Field Access Reset Description
2:0 CHANNEL RW 0 Channel 0 to 7

ECC_COUNT

Address 0x068: SEC and DED counters of the selected channel.

Bits Field Access Reset Description
31:16 DED RC 0 Double errors detected
15:0 SEC RC 0 Single errors corrected; any write clears the selected channel

ECC_INJECT

Address 0x06C: Error injection into the next word written to a buffer or table (tests).

Bits Field Access Reset Description
9 DOUBLE W1 0 Inject a double error
8 SINGLE W1 0 Inject a single error
7 RX WO 0 '0' sending end, '1' receiving end
5:0 CHANNEL WO 0 Sending end: 2 p data buffer of port p, 2 p + 1 its descriptor buffer, 2 NUM_TX table; receiving end: 0 data buffer, 1 descriptor buffer, 2 table

SCRUB

Address 0x070: Scrubbers of the APID tables.

Bits Field Access Reset Description
0 ENABLE RW 1 Both scrubbers enabled

TX_PACKETS

Address 0x080: Space Packets sent.

Bits Field Access Reset Description
31:0 COUNT RC 0 Packets

RX_PACKETS

Address 0x084: SDUs delivered to the receive ports.

Bits Field Access Reset Description
31:0 COUNT RC 0 SDUs

RX_LOSS

Address 0x088: Indications with the loss indicator set (SPP 3.3.2.3, 3.4.2.4).

Bits Field Access Reset Description
31:0 COUNT RC 0 Indications

ERR_TX1

Address 0x0A0: SDUs rejected by the sending end (1).

Bits Field Access Reset Description
31:16 SHORT RC 0 Space Packet shorter than 7 bytes or Octet String without any byte (0x02)
15:0 OVERSIZE RC 0 Longer than the maximum packet length or the buffer (0x01)

ERR_TX2

Address 0x0A4: SDUs rejected by the sending end (2).

Bits Field Access Reset Description
31:16 LENGTH RC 0 Length not the Packet Data Length plus 7 (0x04)
15:0 VERSION RC 0 Packet Version Number not '000' (0x03)

ERR_TX3

Address 0x0A8: SDUs rejected by the sending end (3).

Bits Field Access Reset Description
31:16 NAME RC 0 Packet Name for a telemetry packet (0x06)
15:0 IDLE RC 0 Idle Packet with SHF or SHI (0x05)

ERR_TX4

Address 0x0AC: SDUs rejected by the sending end (4).

Bits Field Access Reset Description
31:16 BUFFER RC 0 Double error in the descriptor or the table entry (0x08)
15:0 NO_PATH RC 0 APID without enabled managed data path (0x07)

ERR_RX1

Address 0x0B0: Packets discarded by the receiving end (1).

Bits Field Access Reset Description
31:16 PROTOCOL_ID RC 0 Protocol Identifier other than 2 (0x11)
15:0 EEP RC 0 Terminated by an EEP (0x10, CPTP status 0x01)

ERR_RX2

Address 0x0B4: Packets discarded by the receiving end (2).

Bits Field Access Reset Description
31:16 ADDRESS RC 0 Target Logical Address not accepted (0x13)
15:0 RESERVED RC 0 Reserved field not zero (0x12, CPTP status 0x02)

ERR_RX3

Address 0x0B8: Packets discarded by the receiving end (3).

Bits Field Access Reset Description
31:16 VERSION RC 0 Packet Version Number not '000' (0x15)
15:0 SHORT RC 0 Shorter than the CPTP header or than 7 bytes (0x14)

ERR_RX4

Address 0x0BC: Packets discarded by the receiving end (4).

Bits Field Access Reset Description
31:16 OVERSIZE RC 0 Longer than the maximum packet length or the buffer (0x17)
15:0 LENGTH RC 0 Length not the Packet Data Length plus 7 (0x16)

ERR_RX5

Address 0x0C0: Packets discarded by the receiving end (5).

Bits Field Access Reset Description
31:16 NO_PATH RC 0 APID without enabled managed data path or with an invalid port (0x19)
15:0 IDLE RC 0 Idle Packet (0x18)

ERR_RX6

Address 0x0C4: Packets discarded by the receiving end (6).

Bits Field Access Reset Description
31:16 BUFFER RC 0 Double error in the descriptor or the table entry (0x1B)
15:0 FLAGS RC 0 Sequence Flags other than '11' for an Octet String port (0x1A)

DEST_CTRL

Address 0x400 + 0x20 n: Target Logical Address, User Application value and length of the Target SpaceWire Address.

Bits Field Access Reset Description
20:16 ADDR_LEN RW 0 Bytes of the Target SpaceWire Address, 0 to SPW_ADDR_BYTES
15:8 UA RW 0 User Application value
7:0 TLA RW 0xFE Target Logical Address

DEST_ADDR0

Address 0x404 + 0x20 n: Target SpaceWire Address bytes 0 to 3 (byte 0 first transmitted).

Bits Field Access Reset Description
31:0 ADDR RW 0 Byte 0 in bits 7:0

DEST_ADDR1

Address 0x408 + 0x20 n: Target SpaceWire Address bytes 4 to 7.

Bits Field Access Reset Description
31:0 ADDR RW 0 Byte 4 in bits 7:0

DEST_ADDR2

Address 0x40C + 0x20 n: Target SpaceWire Address bytes 8 to 11.

Bits Field Access Reset Description
31:0 ADDR RW 0 Byte 8 in bits 7:0

DEST_ADDR3

Address 0x410 + 0x20 n: Target SpaceWire Address bytes 12 to 15.

Bits Field Access Reset Description
31:0 ADDR RW 0 Byte 12 in bits 7:0