SYZYGY DAC IP Core

Overview

This free Vivado IP core drives the Opal Kelly SZG-DAC-AD911X peripheral.

  • AXI4-Stream input. A 32-bit interface carrying one 12-bit sample per channel (I and Q).
  • Customizable data rate. The conversion rate is set by the clock driven into dac_sample_clk, up to 125 MSPS.
  • 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
Sample rateUp to 125 MSPS
Sample inputAXI4-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_dac_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.
DAC_SAMPLE_FORMAT00, 1Numeric format of the samples on dac_data_stream: 0 = unsigned offset binary, 1 = signed two’s complement.
FIFO_DEPTH3216–4096Depth of the buffer carrying samples between the stream and converter clock domains.
DAC_FSADJ_I320–63Full-scale output current code for channel I.
DAC_FSADJ_Q320–63Full-scale output current code for channel Q.
DAC_RESET_VALUE20480-4095Code driven on both channels after reset.

Interfaces and Signals

Bus Interfaces

InterfaceTypeDomainNotes
dac_data_streamAXI4-Stream slaveaclk32-bit continuous sample stream.
s_axi_csrAXI4-Lite slaveaclkPresent when CTRL_INTERFACE = 0.
control_and_statusdiscrete portsaclkPresent when CTRL_INTERFACE = 1.
szg_dac_interfacecustommixedMake external to connect to SZG-DAC-AD911X

Clocks and Resets

PortDirectionDescription
aclkinSystem clock.
aresetninActive-low system reset for the whole core.
dac_sample_clkinDDR output clock. Frequency determines conversion rate.

Peripheral Connections

PortDirectionDescription
dac_data[11:0]outDDR DAC sample data.
dac_clkoutForwarded sample clock.
dac_reset_pinmdoutReset / pin-mode. High during reset, low in operation.
dac_sclkoutSPI clock.
dac_sdioinoutSPI bidirectional data.
dac_cs_noutSPI chip select, active-low.

All peripheral I/O buffers are instantiated with IOSTANDARD = LVCMOS18.

Discrete Control and Status (CTRL_INTERFACE = 1)

PortDirectionDescription
ctrl_soft_resetinPulse high for one cycle to restart the core.
ctrl_clear_flagsinOne-cycle strobe. Clears the sticky flags.
dac_readyoutBring-up complete.
fifo_underflowoutSticky underflow.

Note: In discrete mode, the converter register space and spi_reconfig are not available. The converter receives only the start-up configuration.

Register Map

Offsets are bytes from the s_axi_csr base. Unmapped offsets read as zero and ignore writes.Address Map

OffsetNameAccessDescription
0x00CTRLW1PWrite-1-pulse action bits. Reads back as 0.
0x04STATUSROReady, fault, and SPI state.
0x08——Reserved.
0x40-0xBCAD911x registersRWDirect map of the converter register space. Device register N is at 0x40 + 4N.

CTRL (0x00)

BitFieldDescription
[0]soft_resetResets the core. Sticky STATUS flags are not cleared.
[8]clear_flagsClears STATUS[1] and STATUS[7].
[9]spi_reconfigRe-applies the start-up converter configuration without resetting the datapath or the converter.

STATUS (0x04)

BitFieldDescription
[0]dac_readyThe initial bring-up sequence has completed; sticky until a reset.
[1]fifo_underflowSticky. The sample FIFO ran empty at least once.
[5]spi_readyAlias of [0].
[6]spi_busyThe SPI engine or sequencer is active, work is queued, or a register read is outstanding.
[7]spi_errorSticky; a device-register write was dropped because the 32-entry queue was full or the SPI transaction timed out.

AD911x Register Map (0x40 – 0xBC)

Refer to the AD911x datasheet for the register contents.

Application Information

Sample Format

Each beat carries one sample per channel, MSB aligned in its half-word. Both channels convert on the same clock cycle.

BitsMeaning
s_axis_tdata[31:16]Channel I sample
s_axis_tdata[15:0]Channel Q sample

Note: Sample data to the DAC core is in the AXI aclk domain and the DAC sample rate is in the dac_sample_clk domain. If aclk is slower than dac_sample_clk, the core may underflow.

Reset Configuration

Out of reset the core configures some DAC settings over SPI. The SPI clock rate runs at aclk / 202. Registers not listed keep their power-on defaults.

RegisterAddressValue
Data Control0x020x34, or 0xB4 when DAC_SAMPLE_FORMAT = 1
IRSET0x040x80 | DAC_FSADJ_I
IRCML0x050x80
QRSET0x070x80 | DAC_FSADJ_Q
QRCML0x080x80

Release Notes

SYZYGY DAC IP 1.0

  • Initial Release