SPI Transmit FIFO Occupancy Register - 3.2 English

PG153 AXI Quad SPI Product Guide

Document ID
PG153
Release Date
2022-04-26
Version
3.2 English

The SPI Transmit FIFO Occupancy Register (TX_FIFO_OCY) is present only if the AXI Quad SPI core is configured with FIFOs (FIFO Depth = 16 or 256). If it is present and if the transmit FIFO is not empty, the register contains a four-bit, right-justified value that is one less than the number of elements in the FIFO (occupancy minus one).

This register is read-only. When written, or read when the FIFO is empty, the register contents are not affected. The only reliable way to determine that the transmit FIFO is empty/full is by reading the Tx_Empty/Tx_Full status bit in the SPI Status Register or the DTR empty bit in the interrupt status register. The transmit FIFO occupancy register is shown in This Figure, while the specifics of the data format are described in Table: SPI Transmit FIFO Occupancy Register Description (Core Base Address + 0x74).

Figure 2-7:      SPI Transmit FIFO Occupancy Register (Core Base Address + 0x74)

X-Ref Target - Figure 2-7

pg153_spi_transmit_fifo_occupancy_register_core_base_address_0x74_x14426.jpg
Table 2-10:      SPI Transmit FIFO Occupancy Register Description (Core Base Address + 0x74)

Bits

Name

Core Access

Reset Value (hex)

Description

31 – log(FIFO Depth)

Reserved

N/A

N/A

Reserved

(log(FIFO Depth)–1):0

Occupancy Value

Read

0

The binary value plus 1 yields the occupancy.