Skip to content

odma_registers: Register Map

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

Byte addresses of 32-bit registers on the AXI4-Lite port (10-bit address); unused addresses and bits read as zero. The registers below 0x100 are those of the AXI DMA product guide PG021 in Direct Register Mode, with the names of the product guide; the window from 0x100 holds the extension registers of OpenDMA. EXT_ID reads 0x4F444D41.

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 MM2S_DMACR MM2S channel control (PG021 Table 6)
0x004 MM2S_DMASR MM2S channel status (PG021 Table 7)
0x008 MM2S_CURDESC MM2S current descriptor pointer, bits 31 to 0 (PG021 Table 8); Scatter/Gather Mode only
0x00C MM2S_CURDESC_MSB MM2S current descriptor pointer, bits 63 to 32 (PG021 Table 9); Scatter/Gather Mode only
0x010 MM2S_TAILDESC MM2S tail descriptor pointer, bits 31 to 0 (PG021 Table 10); Scatter/Gather Mode only
0x014 MM2S_TAILDESC_MSB MM2S tail descriptor pointer, bits 63 to 32 (PG021 Table 11); Scatter/Gather Mode only
0x018 MM2S_SA MM2S buffer address, bits 31 to 0 (PG021 Table 12); Direct Register Mode only
0x01C MM2S_SA_MSB MM2S buffer address, bits 63 to 32 (PG021 Table 13); Direct Register Mode only
0x028 MM2S_LENGTH MM2S transfer length (PG021 Table 14); Direct Register Mode only
0x030 S2MM_DMACR S2MM channel control (PG021 Table 16)
0x034 S2MM_DMASR S2MM channel status (PG021 Table 17)
0x038 S2MM_CURDESC S2MM current descriptor pointer, bits 31 to 0 (PG021 Table 18); Scatter/Gather Mode only
0x03C S2MM_CURDESC_MSB S2MM current descriptor pointer, bits 63 to 32 (PG021 Table 19); Scatter/Gather Mode only
0x040 S2MM_TAILDESC S2MM tail descriptor pointer, bits 31 to 0 (PG021 Table 20); Scatter/Gather Mode only
0x044 S2MM_TAILDESC_MSB S2MM tail descriptor pointer, bits 63 to 32 (PG021 Table 21); Scatter/Gather Mode only
0x048 S2MM_DA S2MM buffer address, bits 31 to 0 (PG021 Table 22); Direct Register Mode only
0x04C S2MM_DA_MSB S2MM buffer address, bits 63 to 32 (PG021 Table 23); Direct Register Mode only
0x058 S2MM_LENGTH S2MM buffer length (PG021 Table 24); Direct Register Mode only
0x100 EXT_ID Identification of OpenDMA
0x104 EXT_VERSION Version of the core
0x108 EXT_CONFIG Configuration of the core
0x10C EXT_MM2S_CONFIG Configuration of the MM2S channel
0x110 EXT_S2MM_CONFIG Configuration of the S2MM channel
0x120 ECC_INFO ECC counters of the FT buffers
0x124 ECC_CTRL ECC counter control
0x128 ECC_STATUS ECC event flags
0x12C ECC_ENABLE ECC interrupt enables
0x130 ECC_INJECT Error injection into an FT buffer
0x140 + 0x4 n ECC_COUNT ECC counters of buffer n

ECC counters of buffer n = 0 to 15, for 16 instances.

FT buffers

Index of a buffer in ECC_COUNT, ECC_INJECT.Buffer and the ECC ports; indices without a buffer count nothing.

Index Buffer
0 MM2S read data buffer (olo_ft_axi_master_full)
1 S2MM data buffer (olo_ft_fifo_sync)
2 S2MM chunk buffer (olo_ft_fifo_sync)
3 S2MM write data buffer (olo_ft_axi_master_full)
4 MM2S transfer buffer (olo_ft_fifo_sync)
5 MM2S response buffer (olo_ft_fifo_sync)
6 MM2S descriptor buffer of the Scatter/Gather engine (olo_ft_fifo_sync)
7 S2MM descriptor buffer of the Scatter/Gather engine (olo_ft_fifo_sync)
8 Read data buffer of the descriptor port (olo_ft_axi_master_simple)
9 Write data buffer of the descriptor port (olo_ft_axi_master_simple)

Fields

MM2S_DMACR

Address 0x000: MM2S channel control (PG021 Table 6).

Bits Field Access Reset Description
31:24 IRQDelay RW 0 Interrupt delay timeout in units of 125 clock cycles (Scatter/Gather Mode); 0 disables the timer
23:16 IRQThreshold RW 1 Interrupt coalescing threshold: completed packets per IOC_Irq (Scatter/Gather Mode); a write of 0 leaves the field unchanged, any other write reloads the counter
14 Err_IrqEn RW 0 Err_Irq drives the interrupt output of the channel
13 Dly_IrqEn RW 0 Dly_Irq drives the interrupt output of the channel (Scatter/Gather Mode)
12 IOC_IrqEn RW 0 IOC_Irq drives the interrupt output of the channel
4 CyclicBD RW 0 Cyclic descriptor mode (Scatter/Gather Mode): the engine ignores the tail pointer and the completed bit of the descriptors; no function in Direct Register Mode
3 Keyhole RW 0 Non-incrementing bursts (keyhole) for the transfers of the channel, taken at the start of a transfer or descriptor fetch: S2MM in both modes, MM2S in Scatter/Gather Mode: FIXED bursts of at most 16 beats at the buffer address with the bits below the memory width cleared
2 Reset RW 0 Write 1: soft reset of the whole core (both channels); reads 1 until the reset is complete
1 Reserved RO 1 Reads 1
0 RS RW 0 Run (1) or stop (0) the channel; a start is refused while an error flag of the channel is set

MM2S_DMASR

Address 0x004: MM2S channel status (PG021 Table 7).

Bits Field Access Reset Description
31:24 IRQDelaySts RO 0 Delay timer in units of 125 clock cycles (Scatter/Gather Mode); 0 in Direct Register Mode
23:16 IRQThresholdSts RO 1 Packets until the next IOC_Irq (Scatter/Gather Mode); the value of DMACR.IRQThreshold in Direct Register Mode
14 Err_Irq W1C 0 An error flag of the channel was set
13 Dly_Irq W1C 0 The delay timer expired (Scatter/Gather Mode); 0 in Direct Register Mode
12 IOC_Irq W1C 0 A transfer completed (Direct Register Mode); the threshold number of packets completed (Scatter/Gather Mode)
10 SGDecErr RO 0 Decode error response (DECERR) of a descriptor fetch or status write (Scatter/Gather Mode); 0 in Direct Register Mode
9 SGSlvErr RO 0 Slave error response (SLVERR, and EXOKAY) of a descriptor fetch or status write (Scatter/Gather Mode); 0 in Direct Register Mode
8 SGIntErr RO 0 Stale descriptor: completed bit set outside cyclic mode (Scatter/Gather Mode); 0 in Direct Register Mode
6 DMADecErr RO 0 Decode error response (DECERR) of the memory or a buffer beyond the top of the address space
5 DMASlvErr RO 0 Slave error response (SLVERR, and EXOKAY) of the memory
4 DMAIntErr RO 0 Internal error: S2MM packet longer than the buffer (Direct Register Mode), S2MM write error, descriptor with buffer length 0 (Scatter/Gather Mode); MM2S: 0 in Direct Register Mode
3 SGIncld RO IncludeSg_g Scatter/Gather Mode included
1 Idle RO 0 Direct Register Mode: the last transfer is complete and no new one has started; Scatter/Gather Mode: the engine has reached the tail and completed its descriptors; 0 while halted and before the first transfer
0 Halted RO 1 The channel is stopped (after a reset, a halt or an error)

MM2S_CURDESC

Address 0x008: MM2S current descriptor pointer, bits 31 to 0 (PG021 Table 8); Scatter/Gather Mode only.

Bits Field Access Reset Description
31:6 Pointer RW 0 Descriptor address bits 31 to 6: written while the channel is halted, read-only while it runs; reads the descriptor the engine works on; bits at or above AddrWidth_g read 0
5:0 Reserved RO 0 Reads 0

MM2S_CURDESC_MSB

Address 0x00C: MM2S current descriptor pointer, bits 63 to 32 (PG021 Table 9); Scatter/Gather Mode only.

Bits Field Access Reset Description
31:0 Pointer RW 0 Descriptor address bits 63 to 32, as CURDESC; bits at or above AddrWidth_g - 32 read 0

MM2S_TAILDESC

Address 0x010: MM2S tail descriptor pointer, bits 31 to 0 (PG021 Table 10); Scatter/Gather Mode only.

Bits Field Access Reset Description
31:6 Pointer RW 0 Tail descriptor address bits 31 to 6; with 32 address bits a write while the channel runs moves the tail and starts the engine; bits at or above AddrWidth_g read 0
5:0 Reserved RO 0 Reads 0

MM2S_TAILDESC_MSB

Address 0x014: MM2S tail descriptor pointer, bits 63 to 32 (PG021 Table 11); Scatter/Gather Mode only.

Bits Field Access Reset Description
31:0 Pointer RW 0 Tail descriptor address bits 63 to 32; above 32 address bits a write while the channel runs moves the tail and starts the engine; bits at or above AddrWidth_g - 32 read 0

MM2S_SA

Address 0x018: MM2S buffer address, bits 31 to 0 (PG021 Table 12); Direct Register Mode only.

Bits Field Access Reset Description
31:0 Address RW 0 Address of the first byte of the buffer, any byte offset; bits at or above AddrWidth_g read 0

MM2S_SA_MSB

Address 0x01C: MM2S buffer address, bits 63 to 32 (PG021 Table 13); Direct Register Mode only.

Bits Field Access Reset Description
31:0 Address RW 0 Address bits 63 to 32; bits at or above AddrWidth_g - 32 read 0

MM2S_LENGTH

Address 0x028: MM2S transfer length (PG021 Table 14); Direct Register Mode only.

Bits Field Access Reset Description
LengthWidth_g-1:0 Length RW 0 Bytes of the transfer; a non-zero write while the channel runs and no transfer is in progress starts the transfer, other writes have no effect on the operation

S2MM_DMACR

Address 0x030: S2MM channel control (PG021 Table 16).

Bits Field Access Reset Description
31:24 IRQDelay RW 0 Interrupt delay timeout in units of 125 clock cycles (Scatter/Gather Mode); 0 disables the timer
23:16 IRQThreshold RW 1 Interrupt coalescing threshold: completed packets per IOC_Irq (Scatter/Gather Mode); a write of 0 leaves the field unchanged, any other write reloads the counter
14 Err_IrqEn RW 0 Err_Irq drives the interrupt output of the channel
13 Dly_IrqEn RW 0 Dly_Irq drives the interrupt output of the channel (Scatter/Gather Mode)
12 IOC_IrqEn RW 0 IOC_Irq drives the interrupt output of the channel
4 CyclicBD RW 0 Cyclic descriptor mode (Scatter/Gather Mode): the engine ignores the tail pointer and the completed bit of the descriptors; no function in Direct Register Mode
3 Keyhole RW 0 Non-incrementing bursts (keyhole) for the transfers of the channel, taken at the start of a transfer or descriptor fetch: S2MM in both modes, MM2S in Scatter/Gather Mode: FIXED bursts of at most 16 beats at the buffer address with the bits below the memory width cleared
2 Reset RW 0 Write 1: soft reset of the whole core (both channels); reads 1 until the reset is complete
1 Reserved RO 1 Reads 1
0 RS RW 0 Run (1) or stop (0) the channel; a start is refused while an error flag of the channel is set

S2MM_DMASR

Address 0x034: S2MM channel status (PG021 Table 17).

Bits Field Access Reset Description
31:24 IRQDelaySts RO 0 Delay timer in units of 125 clock cycles (Scatter/Gather Mode); 0 in Direct Register Mode
23:16 IRQThresholdSts RO 1 Packets until the next IOC_Irq (Scatter/Gather Mode); the value of DMACR.IRQThreshold in Direct Register Mode
14 Err_Irq W1C 0 An error flag of the channel was set
13 Dly_Irq W1C 0 The delay timer expired (Scatter/Gather Mode); 0 in Direct Register Mode
12 IOC_Irq W1C 0 A transfer completed (Direct Register Mode); the threshold number of packets completed (Scatter/Gather Mode)
10 SGDecErr RO 0 Decode error response (DECERR) of a descriptor fetch or status write (Scatter/Gather Mode); 0 in Direct Register Mode
9 SGSlvErr RO 0 Slave error response (SLVERR, and EXOKAY) of a descriptor fetch or status write (Scatter/Gather Mode); 0 in Direct Register Mode
8 SGIntErr RO 0 Stale descriptor: completed bit set outside cyclic mode (Scatter/Gather Mode); 0 in Direct Register Mode
6 DMADecErr RO 0 Decode error response (DECERR) of the memory or a buffer beyond the top of the address space
5 DMASlvErr RO 0 Slave error response (SLVERR, and EXOKAY) of the memory
4 DMAIntErr RO 0 Internal error: S2MM packet longer than the buffer (Direct Register Mode), S2MM write error, descriptor with buffer length 0 (Scatter/Gather Mode); MM2S: 0 in Direct Register Mode
3 SGIncld RO IncludeSg_g Scatter/Gather Mode included
1 Idle RO 0 Direct Register Mode: the last transfer is complete and no new one has started; Scatter/Gather Mode: the engine has reached the tail and completed its descriptors; 0 while halted and before the first transfer
0 Halted RO 1 The channel is stopped (after a reset, a halt or an error)

S2MM_CURDESC

Address 0x038: S2MM current descriptor pointer, bits 31 to 0 (PG021 Table 18); Scatter/Gather Mode only.

Bits Field Access Reset Description
31:6 Pointer RW 0 Descriptor address bits 31 to 6: written while the channel is halted, read-only while it runs; reads the descriptor the engine works on; bits at or above AddrWidth_g read 0
5:0 Reserved RO 0 Reads 0

S2MM_CURDESC_MSB

Address 0x03C: S2MM current descriptor pointer, bits 63 to 32 (PG021 Table 19); Scatter/Gather Mode only.

Bits Field Access Reset Description
31:0 Pointer RW 0 Descriptor address bits 63 to 32, as CURDESC; bits at or above AddrWidth_g - 32 read 0

S2MM_TAILDESC

Address 0x040: S2MM tail descriptor pointer, bits 31 to 0 (PG021 Table 20); Scatter/Gather Mode only.

Bits Field Access Reset Description
31:6 Pointer RW 0 Tail descriptor address bits 31 to 6; with 32 address bits a write while the channel runs moves the tail and starts the engine; bits at or above AddrWidth_g read 0
5:0 Reserved RO 0 Reads 0

S2MM_TAILDESC_MSB

Address 0x044: S2MM tail descriptor pointer, bits 63 to 32 (PG021 Table 21); Scatter/Gather Mode only.

Bits Field Access Reset Description
31:0 Pointer RW 0 Tail descriptor address bits 63 to 32; above 32 address bits a write while the channel runs moves the tail and starts the engine; bits at or above AddrWidth_g - 32 read 0

S2MM_DA

Address 0x048: S2MM buffer address, bits 31 to 0 (PG021 Table 22); Direct Register Mode only.

Bits Field Access Reset Description
31:0 Address RW 0 Address of the first byte of the buffer, any byte offset; bits at or above AddrWidth_g read 0

S2MM_DA_MSB

Address 0x04C: S2MM buffer address, bits 63 to 32 (PG021 Table 23); Direct Register Mode only.

Bits Field Access Reset Description
31:0 Address RW 0 Address bits 63 to 32; bits at or above AddrWidth_g - 32 read 0

S2MM_LENGTH

Address 0x058: S2MM buffer length (PG021 Table 24); Direct Register Mode only.

Bits Field Access Reset Description
LengthWidth_g-1:0 Length RW 0 Bytes of the buffer; a non-zero write while the channel runs and no transfer is in progress starts the transfer; reads the bytes received after a completed transfer

EXT_ID

Address 0x100: Identification of OpenDMA.

Bits Field Access Reset Description
31:0 Id RO 0x4F444D41 0x4F444D41 (ODMA in ASCII)

EXT_VERSION

Address 0x104: Version of the core.

Bits Field Access Reset Description
23:16 Major RO 0 Major version
15:8 Minor RO 1 Minor version
7:0 Patch RO 0 Patch level

EXT_CONFIG

Address 0x108: Configuration of the core.

Bits Field Access Reset Description
22:16 AddrWidth RO AddrWidth_g Address bits of the memory ports
12:8 LengthWidth RO LengthWidth_g Bits of the length registers
5 MicroDma RO MicroDma_g Micro DMA configuration
4 UseRxLength RO UseRxLength_g Receive length taken from the status stream
3 StsCntrlStrm RO StsCntrlStrm_g Control and status streams included
2 IncludeS2mm RO IncludeS2mm_g S2MM channel included
1 IncludeMm2s RO IncludeMm2s_g MM2S channel included
0 IncludeSg RO IncludeSg_g Scatter/Gather Mode included

EXT_MM2S_CONFIG

Address 0x10C: Configuration of the MM2S channel.

Bits Field Access Reset Description
31:12 BufferBeats RO BufferBeats_g Depth of the data buffer in stream beats
11:8 BurstBeats RO log2(BurstBeats_g) Log2 of the longest burst
7:4 StreamBytes RO log2(StreamWidth_g / 8) Log2 of the stream data width in bytes
3:0 MemBytes RO log2(MemWidth_g / 8) Log2 of the memory data width in bytes

EXT_S2MM_CONFIG

Address 0x110: Configuration of the S2MM channel.

Bits Field Access Reset Description
31:12 BufferBeats RO BufferBeats_g Depth of the data buffer in stream beats
11:8 BurstBeats RO log2(BurstBeats_g) Log2 of the longest burst
7:4 StreamBytes RO log2(StreamWidth_g / 8) Log2 of the stream data width in bytes
3:0 MemBytes RO log2(MemWidth_g / 8) Log2 of the memory data width in bytes

ECC_INFO

Address 0x120: ECC counters of the FT buffers.

Bits Field Access Reset Description
12:8 CounterWidth RO 0x10 Bits of each counter
7:0 Buffers RO 0x10 Number of buffer indices

ECC_CTRL

Address 0x124: ECC counter control.

Bits Field Access Reset Description
0 ClrAll W1 0 Clears all counters

ECC_STATUS

Address 0x128: ECC event flags.

Bits Field Access Reset Description
1 Ded W1C 0 A detected double error was counted
0 Sec W1C 0 A corrected single error was counted

ECC_ENABLE

Address 0x12C: ECC interrupt enables.

Bits Field Access Reset Description
1 Ded RW 0 ECC_STATUS.Ded drives Ecc_Irq
0 Sec RW 0 ECC_STATUS.Sec drives Ecc_Irq

ECC_INJECT

Address 0x130: Error injection into an FT buffer.

Bits Field Access Reset Description
10 Data WO 0 1: data bits (single: data bit 0, double: data bits 0 and 1, the word is corrupted), 0: parity bits (the data never changes)
9 Inject W1 0 Flips the bits of the next codeword written to the buffer
8 Double WO 0 1: double error (two bits), 0: single error (one bit)
3:0 Buffer WO 0 Index of the buffer (register map page

ECC_COUNT

Address 0x140 + 0x4 n: ECC counters of buffer n.

Bits Field Access Reset Description
31:16 Ded RC 0 Detected double errors (saturating)
15:0 Sec RC 0 Corrected single errors (saturating)