SYZYGY ADC IP Core

Overview

This free core drives the Opal Kelly SZG-ADC-LTC226X peripheral.

  • AXI4-Stream output. A 32-bit interface carrying one sample per channel.
  • Customizable sample rate. The sample rate is set by the clock driven into adc_sample_clk, up to 125 MSPS.
  • Automatic capture phase alignment. The LVDS data eye is centered at bring-up and can be set to run continuously. The phase alignment uses the Ultrascale+ IDELAY3 blocks and the eye characteristics can be read in status registers.
  • AXI4-Lite or discrete ports. Select between a control and status register interface and standalone operation from discrete ports.
  • SPI register access. In AXI4-Lite mode the converter’s full SPI register space is mapped into the address map.

Access the core at the OpalKelly design resources repository.

Core Information

Channels2
Resolution12-bit or 14-bit
Sample rateUp to 125 MSPS
Sample outputAXI4-Stream, 32-bit
ControlAXI4-Lite, or discrete wires
Device familyArtix UltraScale+

Note: The core supports the Vivado board flow. Selecting the SYZYGY port the peripheral is fitted to on the szg_adc_interface board interface generates the pin constraints for the peripheral connections.

Core Customization

ParameterDefaultRangeDescription
CTRL_INTERFACE00, 1Control and status interface: 0 = AXI4-Lite, 1 = discrete ports.
ADC_VARIANT10, 1Peripheral variant: 0 = LTC2264-12, 1 = LTC2268-14.
FIFO_DEPTH102416–131072Depth of the buffer carrying samples between the capture and stream clock domains.
ALIGN_MODE00, 1Alignment mode: 0 = one-shot, 1 = continual.

Interfaces and Signals

Bus Interfaces

InterfaceTypeDomainNotes
adc_data_streamAXI4-Stream masteraclk32-bit continuous sample stream.
s_axi_csrAXI4-Lite slaveaclkPresent when CTRL_INTERFACE = 0.
control_and_statusdiscrete portsaclkPresent when CTRL_INTERFACE = 1.
szg_adc_interfacecustommixedMake external to connect to SZG-ADC-LTC226X.

Clocks and Resets

PortDirDescription
aclkinSystem clock.
aresetninActive-low system reset for the whole core.
adc_sample_clkinEncode clock source. Frequency determines sample rate.

Peripheral Connections

PortDirDescription
adc_data_1p, adc_data_1n [1:0]inChannel 1 serial data lanes.
adc_data_2p, adc_data_2n [1:0]inChannel 2 serial data lanes.
adc_dco_p, adc_dco_ninData clock from the converter. Clocks the capture path.
adc_fr_p, adc_fr_ninFrame clock from the converter.
adc_encode_p, adc_encode_noutEncode clock to the converter.
adc_sclkoutSPI clock.
adc_sdioutSPI data to the converter.
adc_sdoinSPI data from the converter.
adc_cs_noutSPI chip select, active-low.

Discrete Control and Status (CTRL_INTERFACE = 1)

PortDirDescription
ctrl_realigninPulse high for one cycle to re-run bring-up: the capture path is reset and re-aligned and the sample FIFO is flushed.
ctrl_stream_eninLevel. Gates the stream output. High out of reset.
ctrl_clear_flagsinOne-cycle strobe. Clears the sticky flags.
adc_readyoutBring-up complete.
capture_clk_aliveoutThe converter’s data clock is toggling.
align_doneoutEye centering finished.
align_failoutEye centering found no usable window.
fifo_overflowoutSticky overflow.
frame_erroroutSticky frame error.
align_phase [15:0]outDelay tap the eye sweep selected.
eye_width [15:0]outWidth of the eye it found, in delay taps.

Register Map

Offsets are bytes from the s_axi_csr base. Any other offset in the block answers DECERR.Address Map

OffsetNameAccessDescription
0x00CTRLRWAction bits and the stream enable.
0x04STATUSROReady, alignment, fault, and SPI state.
0x08ALIGNROEye-center and width.
0x40 – 0x5CLTC226x registersRWDirect map of the converter register space.

CTRL (0x00)

BitFieldDescription
[0]realignWrite-1-pulse. Capture path is reset and re-aligned and the sample FIFO is flushed.
[2]stream_enableGates the stream output. Set out of reset.
[8]clear_flagsWrite-1-pulse. Clears error flags.
[9]spi_reconfigWrite-1-pulse. Re-applies every converter register written since reset.

STATUS (0x04)

BitFieldDescription
[0]adc_readyCapture is running and eye centering has completed.
[1]capture_clk_aliveThe converter’s data clock is toggling.
[2]align_doneEye centering finished.
[3]align_failEye centering found no usable window.
[4]fifo_overflowSticky. The sample FIFO was full and samples were dropped.
[5]adc_spi_readyThe SPI engine is ready for register access.
[6]spi_busyThe SPI engine or sequencer is active, work is queued, or a register read is outstanding.
[7]frame_errorSticky. The frame pattern stopped matching after alignment parked.

ALIGN (0x08)

BitsFieldDescription
[15:0]align_phaseCurrent eye center tap.
[31:16]eye_widthCurrent width of the eye in taps.

LTC226x Register Map (0x40 – 0x5C)

Refer to the LTC2264/LTC2268 datasheet for the register contents.

Application Information

Sample Format

Each beat carries one sample per channel, MSB-aligned in its half-word, in signed two’s complement. Both channels sample on the same clock cycle.

BitsMeaning
m_axis_tdata[31:16]Channel 1 sample
m_axis_tdata[15:0]Channel 2 sample

Note: Sample data out of the converter is in the adc_sample_clk domain and the stream is in the AXI aclk domain. If aclk is slower than adc_sample_clk, the core may overflow. Samples that arrive with the FIFO full are dropped and STATUS[4] latches.

Converter Configuration

The core applies no converter configuration at reset; the peripheral runs on its power-on defaults. Registers written through the address map are re-applied by an spi reconfigure call and discarded by a reset.

Release Notes

SYZYGY ADC IP 1.0

  • Initial Release