Config (OSPI_QSPI) Register - Config (OSPI_QSPI) Register - UG1679

Kintex UltraScale+ Gen 2 and Spartan UltraScale+ FPGA Register Reference (UG1679)

Document_ID
UG1679
Release_Date
2026-08-12
Revision
1.2

Config (OSPI_QSPI) Register Description

Register NameConfig
Offset Address0x0000000000
Absolute Address 0x0004090000 ()
Width32
TypemixedMixed types. See bit-field details.
Reset Value0x80780001
DescriptionController Configuration register

Alternate register name: config_reg

Config (OSPI_QSPI) Register Bit-Field Summary

Field NameBitsTypeReset ValueDescription
idle31roRead-only0x1Serial interface and low level SPI pipeline is IDLE: This is a STATUS read-only bit. Note this is a retimed signal, so there will be some inherent delay on the generation of this status signal.
dual_byte_opcode_en30rwNormal read/write0x0Dual byte Opcode Mode enable bit. This bit is to be set in case the target flash device supports dual byte opcode. It is applicable for Octal I/O Mode or Protocol only so should be set back to low if the device is configured to work in another SPI mode. If, the supplementing bytes are taken from opcode extension register (lower) and from opcode extension register (upper).
Reserved28:26roRead-only0x0Reserved
pipeline_phy25rwNormal read/write0x0Pipeline PHY Mode enable: This bit is relevant only for configuration with PHY Module. It should be asserted to 1 between consecutive PHY pipeline reads transfers and de-asserted to 0 otherwise.
enable_dtr_protocol24rwNormal read/write0x0Enable DTR Protocol: This bit should be set if device is configured to work in DTR protocol.
enable_ahb_decoder23rwNormal read/write0x0Enable AHB Decoder: Value=0: Active slave is selected based on Peripheral Chip Select Lines (bits [13:10]). Value=1 Active slave is selected based on actual AHB address (the partition for each device is calculated with respect to bits [28:21] of Device Size Configuration Register)
mstr_baud_div22:19rwNormal read/write0xFMaster Mode Baud Rate Divisor: SPI baud rate = (master reference clock) baud_rate_divisor. Where BD is:
4b0000 = /2
4b0001 = /4
4b0010 = /6 4b0011 = /8
4b0100 = /10
4b0101 = /12
..
4b1111 = /32 While the PHY Mode is enabled, clock from DLL is granted and consequently forwarded into external FLASH Device. Its frequency is equal to OSPI_REF_CLK i.e., value of /1 is used in PHY mode. Set this register up before enabling the Octal-SPI controller.
enb_dma_if15rwNormal read/write0x0Enable DMA Peripheral Interface: Set to 1 to enable the DMA handshaking logic. When enabled the controller will trigger DMA transfer requests via the DMA peripheral interface. Set to 0 to disable
periph_cs_lines13:10rwNormal read/write0x0Chip select line assertion:
If [periph_sel_dec] = 0 (no external mux), then:
xx10: FCS_b is asserted Low
xx01: FCS1_b is asserted Low
xx11: both are deasserted High
Note: in this case only one CS is asserted at a time.
If [periph_sel_dec] = 1 (external mux), then:
xxx0: FCS_b is asserted Low
xx01: FCS1_b is asserted Low
Note: in this case more than one CS can be asserted at a time.
Note: Bits [13:12] are ignored.
periph_sel_dec 9rwNormal read/write0x0Chip select decoder enable:
0: use FCS_b[0, 1] directly for 1 or 2 chip selects
1: allow external 2-to-4 decoder to support 3 devices (00 is not used)
Note: This controls the functionality of the for FCS_b[0, 1] output signals.
reset_cfg 6rwNormal read/write0x0RESET pin configuration: 0 = RESET feature on DQ3 pin of the device 1 = RESET feature on dedicated pin of the device (controlling of 5th bit influences on reset_out output)
reset_pin 5rwNormal read/write0x0Set to drive the RESET pin of the FLASH device and reset for de-activation of the RESET pin feature
phy_mode_enable 3rwNormal read/write0x0PHY mode enable: When enabled, the controller is informed that PHY Module is to be used for handling SPI transfers. This bit is relevant only for configuration with PHY Module.
sel_clk_phase 2rwNormal read/write0x0Select Clock Phase: Selects whether the clock is in an active or inactive phase outside the SPI word. 0: the SPI clock is active outside the word 1: the SPI clock is inactive outside the word
sel_clk_pol 1rwNormal read/write0x0Clock polarity outside SPI word: 0: the SPI clock is quiescent low 1: the SPI clock is quiescent high
enb_spi 0rwNormal read/write0x1Octal-SPI Enable: 0: disable the Octal-SPI, once current transfer of the data word (FF_W) is complete. 1: enable the Octal-SPI, when spi_enable = 0, all output enables are inactive and all pins are set to input mode. (This field applies to SPI, OSPI, QSPI)