User manual

Table Of Contents
Zynq-7000 AP SoC Technical Reference Manual www.xilinx.com 753
UG585 (v1.11) September 27, 2016
Chapter 30: XADC Interface
The XADC serial clock drives the DCLK that is described in the LogiCORE User Guide.
30.3.2 Command and Data Packets
The PS-XADC interface buffers the 32-bit reads and writes to minimize the effects of the slow serial
transfer process on PS system throughput. The PS-XADC interface buffers up to 15 commands. Each
command is serialized and communicated to the XADC. For every command that is written to the
PS-XADC interface, a data word is received in the Read Data FIFO. The Read Data FIFO can store 15
data words. Up to 15 commands at a time to be written and up to 15 read data words can be in
FIFOs. After a read command has been written, the corresponding read data is available after the
next command is serialized to the XADC, see Figure 30-3. Therefore, if the last command in CMD FIFO
is a read command, one additional NOP command is always needed to push out the last read data.
The XADC commands are listed in the LogiCORE user guide and in UG480,
7 Series FPGAs and
Zynq-7000 All Programmable SoC XADC Dual 12-Bit 1 MSPS Analog-to-Digital Converter User Guide.
All control commands, read requests, write requests, and NOPs shift data into the Read Data FIFO
that can be read using the devcfg.XADCIF_RDFIFO register. The software controlling the PS-XADC
interface should account for this and should read and discard data not generated by a read
command. XADC read data is 32-bits but only the 16 LSBs of the 32-bit word contain ADC data.
PS-XADC Event Timing
•Command register write
Serialized to XADC (control and data)
Programmable idle gap width, devcfg.XADCIF_CFG [IGAP]
The status of the command and Read Data FIFOs can be monitored using the devcfg.XADCIF_MSTS
Interface Miscellaneous S
tatus register. Software can also setup interrupts using the
devcfg.XADCIF_INT_STS Interrupt Status register.
X-Ref Target - Figure 30-3
Figure 30-3: XADC PS-XADC Interface Event Timing Diagram
UG585_c30_11_022513
n
Write Sequence to the Command FIFO
n + 1
PS_TDO Signal
(commands)
PS_TDI Signal
(results)
Command is processed
by the XADC.
n - 1
n + 2
n n +1
Dummy
Data or Previous
Command Result
Dummy
Data
Second
Command
First
Command
Result from
First
Command
Result from
Second
Command
Command is processed
by the XADC.
Reads from
Data Read FIFO
Idle Gap
Time
32-bit
32 bits
32-bit