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
| Channels | 2 |
| Resolution | 12-bit |
| Sample rate | Up to 125 MSPS |
| Sample input | AXI4-Stream, 32-bit |
| Control | AXI4-Lite, or discrete wires |
| Device family | Artix 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
| Parameter | Default | Range | Description |
|---|---|---|---|
CTRL_INTERFACE | 0 | 0, 1 | Control and status interface: 0 = AXI4-Lite, 1 = discrete ports. |
DAC_SAMPLE_FORMAT | 0 | 0, 1 | Numeric format of the samples on dac_data_stream: 0 = unsigned offset binary, 1 = signed two’s complement. |
FIFO_DEPTH | 32 | 16–4096 | Depth of the buffer carrying samples between the stream and converter clock domains. |
DAC_FSADJ_I | 32 | 0–63 | Full-scale output current code for channel I. |
DAC_FSADJ_Q | 32 | 0–63 | Full-scale output current code for channel Q. |
| DAC_RESET_VALUE | 2048 | 0-4095 | Code driven on both channels after reset. |
Interfaces and Signals
Bus Interfaces
| Interface | Type | Domain | Notes |
|---|---|---|---|
dac_data_stream | AXI4-Stream slave | aclk | 32-bit continuous sample stream. |
s_axi_csr | AXI4-Lite slave | aclk | Present when CTRL_INTERFACE = 0. |
control_and_status | discrete ports | aclk | Present when CTRL_INTERFACE = 1. |
szg_dac_interface | custom | mixed | Make external to connect to SZG-DAC-AD911X |
Clocks and Resets
| Port | Direction | Description |
|---|---|---|
aclk | in | System clock. |
aresetn | in | Active-low system reset for the whole core. |
dac_sample_clk | in | DDR output clock. Frequency determines conversion rate. |
Peripheral Connections
| Port | Direction | Description |
|---|---|---|
dac_data[11:0] | out | DDR DAC sample data. |
dac_clk | out | Forwarded sample clock. |
dac_reset_pinmd | out | Reset / pin-mode. High during reset, low in operation. |
dac_sclk | out | SPI clock. |
dac_sdio | inout | SPI bidirectional data. |
dac_cs_n | out | SPI chip select, active-low. |
All peripheral I/O buffers are instantiated with IOSTANDARD = LVCMOS18.
Discrete Control and Status (CTRL_INTERFACE = 1)
| Port | Direction | Description |
|---|---|---|
ctrl_soft_reset | in | Pulse high for one cycle to restart the core. |
ctrl_clear_flags | in | One-cycle strobe. Clears the sticky flags. |
dac_ready | out | Bring-up complete. |
fifo_underflow | out | Sticky 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
| Offset | Name | Access | Description |
|---|---|---|---|
0x00 | CTRL | W1P | Write-1-pulse action bits. Reads back as 0. |
0x04 | STATUS | RO | Ready, fault, and SPI state. |
0x08 | — | — | Reserved. |
0x40-0xBC | AD911x registers | RW | Direct map of the converter register space. Device register N is at 0x40 + 4N. |
CTRL (0x00)
| Bit | Field | Description |
|---|---|---|
[0] | soft_reset | Resets the core. Sticky STATUS flags are not cleared. |
[8] | clear_flags | Clears STATUS[1] and STATUS[7]. |
[9] | spi_reconfig | Re-applies the start-up converter configuration without resetting the datapath or the converter. |
STATUS (0x04)
| Bit | Field | Description |
|---|---|---|
[0] | dac_ready | The initial bring-up sequence has completed; sticky until a reset. |
[1] | fifo_underflow | Sticky. The sample FIFO ran empty at least once. |
[5] | spi_ready | Alias of [0]. |
[6] | spi_busy | The SPI engine or sequencer is active, work is queued, or a register read is outstanding. |
[7] | spi_error | Sticky; 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.
| Bits | Meaning |
|---|---|
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.
| Register | Address | Value |
|---|---|---|
| Data Control | 0x02 | 0x34, or 0xB4 when DAC_SAMPLE_FORMAT = 1 |
| IRSET | 0x04 | 0x80 | DAC_FSADJ_I |
| IRCML | 0x05 | 0x80 |
| QRSET | 0x07 | 0x80 | DAC_FSADJ_Q |
| QRCML | 0x08 | 0x80 |
Release Notes
SYZYGY DAC IP 1.0
- Initial Release