Skip to the content
4 layers91.4 × 81.3 mmDac, the printed circuit board in 3D

A 1-bit ΔΣ stereo audio DAC implemented on a Xilinx 7-series FPGA (Digilent Cmod S7), driven from an I²S input.

Size
91.4 × 81.3 mm
Copper layers
4
Thickness
1.6 mm
Parts
50
Nets
55
Pads
167
Tracks, vias
208, 267
Pours
1
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
12 Apr 2026
Updated
18 Oct 2026

Overview

Dac is an open-source printed circuit board by prydin, from the prydin/toy-dac repository on GitHub. It is a 4-layer board of 91.4 × 81.3 mm with 50 parts on 55 nets, routed with 208 tracks and 267 vias.

It is built around the NE5532 and SB140. Its parts include 17 resistors, 16 capacitors, 4 ICs, 4 diodes and 4 connectors. It belongs with the audio and music boards of this library.

Main components

2

README

README.md

toy-dac

The current toy-dac hardware: the carrier board connected to a Digilent Cmod S7

toy-dac started as a challenge: make a DAC that could at least produce sound. It has grown well beyond that proof of concept into a working DAC that reproduces music very nicely. The name is a nod to those humble beginnings, not a measure of what the project can do today.

toy-dac signal-chain block diagram

A 1-bit ΔΣ stereo audio DAC implemented on a Xilinx 7-series FPGA (Digilent Cmod S7), driven from an I²S input.

The signal chain is entirely made-from-scratch RTL:

  • I²S receiver with double-flopped synchronizers and AXI-Stream output
  • External audio-family clocks — selects 22.5792 MHz or 24.576 MHz clocks for the 44.1 kHz and 48 kHz families
  • Clock-domain crossing control — isolates housekeeping and sample processing in separate clock domains, synchronizing family changes and coordinating mute, pipeline reset, and clock settling
  • Automatic input rate detection (32 / 44.1 / 48 kHz)
  • Fractional-phase polyphase ASRC — 256 phases × 64 taps × 18-bit coefficients with 16-bit alpha lerp, single time-shared MAC, PI servo on the input ring-buffer fill — resampling onto an output grid at Fsout = sclk / 64 (8× the nominal input rate)
  • 2nd-order CIFB ΔΣ modulator (per channel) with TPDF dither, driving a single-bit differential output pin pair on each channel
  • A small reconstruction filter and analog output stage on the carrier PCB

Internal test sources (silent, DC, 1 kHz DDS sine) and a bypass mode (raw I²S → modulator) are included for bring-up and characterisation.

The current build is surpassing 90 dB SNR. The remaining distortion is mainly the second and third harmonics (H2 and H3), which we believe are related to the DAC's switching output. Extensive listening tests have found it almost on par with commercial DACs, though there is still work to do on the finer details.

Status

First viable version. toy-dac has grown from a proof of concept into a working DAC capable of reproducing music very nicely. It has been exercised on hardware and through extensive listening tests, but is still evolving: the analog board is a hand-routed prototype, the design has not had formal verification, and there is more work to do on measured performance and subjective refinement. Module ports, parameter names, and pinouts may change without notice; treat it as an evolving project rather than drop-in IP.

Repository layout

text
fpga/toy-dac/   Vivado project (RTL under src/rtl, constraints under
                toy-dac.srcs/constrs_1, simulation under toy-dac.srcs/sim_1)
kicad/dac/      KiCad schematic + PCB for the analog carrier board
scripts/        Coefficient generation, simulation helpers, sanity checks
docs/           Block diagrams (top-level + ASRC internals)

Building

Open fpga/toy-dac/toy-dac.xpr in Vivado 2024.2, run synthesis + implementation + bitstream generation, and program the Cmod S7. The target part and pin assignments live in fpga/toy-dac/toy-dac.srcs/constrs_1/new/root.xdc.

Parts

50
QtyValueFootprintReferences
647pCustom:C_Rect_L7.2mm_W3.0mm_P5.00mm_FKS2_FKP2_MKS2_MKP2_HandSolderC1, C3, C4, C8, C13, C14
5100nCustom:C_Rect_L7.2mm_W3.0mm_P5.00mm_FKS2_FKP2_MKS2_MKP2_HandSolderC9, C10, C11, C12, C16
4100pCustom:C_Rect_L7.2mm_W3.0mm_P5.00mm_FKS2_FKP2_MKS2_MKP2_HandSolderC2, C5, C6, C7
410kCustom:R_Axial_DIN0204_L3.6mm_D1.6mm_P7.62mm_Horizontal_HandSolderR1, R2, R13, R14
44.7kCustom:R_Axial_DIN0204_L3.6mm_D1.6mm_P7.62mm_Horizontal_HandSolderR5, R6, R7, R12
46.8kCustom:R_Axial_DIN0204_L3.6mm_D1.6mm_P7.62mm_Horizontal_HandSolderR3, R4, R8, R11
4MountingHoleMountingHole:MountingHole_3.2mm_M3H1, H2, H3, H4
3100Custom:R_Axial_DIN0204_L3.6mm_D1.6mm_P7.62mm_Horizontal_HandSolderR15, R16, R17
31N4004Diode_THT:D_DO-41_SOD81_P10.16mm_HorizontalD2, D3, D4
2220Custom:R_Axial_DIN0204_L3.6mm_D1.6mm_P7.62mm_Horizontal_HandSolderR9, R10
2NE5532Package_DIP:DIP-8_W7.62mmU2, U3
110uCapacitor_THT:CP_Radial_D8.0mm_P5.00mmC15
1CMOD S7CustomFootprints:CMOD S7U1
1Conn_01x03_PinConnector_JST:JST_PH_B3B-PH-K_1x03_P2.00mm_VerticalJ2
1Conn_01x08_PinConnector_PinHeader_2.54mm:PinHeader_1x08_P2.54mm_VerticalJ3
1I2S_INConnector_JST:JST_PH_B4B-PH-K_1x04_P2.00mm_VerticalJ4
1LM317_TO-220Package_TO_SOT_THT:TO-220-3_VerticalU4
1OUTPUTCustom:Basic RCAJ1
1SB140Diode_THT:D_DO-41_SOD81_P10.16mm_HorizontalD1
1SW_DIP_x08Button_Switch_THT:SW_DIP_SPSTx08_Slide_6.7x21.88mm_W7.62mm_P2.54mm_LowProfileSW1

More from prydin/toy-dac

2
  • 4 layers81 × 81.3 mmDac ng, the printed circuit board in 3D

    Dac ng

    prydin/toy-dac

    A 1-bit ΔΣ stereo audio DAC implemented on a Xilinx 7-series FPGA (Digilent Cmod S7), driven from an I²S input.

    86 parts4
  • 2 layers24.1 × 21 mmClock, the printed circuit board in 3D

    Clock

    prydin/toy-dac

    A 1-bit ΔΣ stereo audio DAC implemented on a Xilinx 7-series FPGA (Digilent Cmod S7), driven from an I²S input.

    7 parts4

Similar boards

  • 2 layers49 × 175 mmDMH Output PCB Main, the printed circuit board in 3D

    DMH Output PCB Main

    DeMarco/DMH-Output

    Kosmo format output module

    96 parts2CC0-1.0
  • 2 layers95.9 × 112.6 mmLab supply, the printed circuit board in 3D

    Lab supply

    prydin/lab-supply

    Linear 0-30V, 2A lab supply

    90 parts8
  • 2 layers146 × 134.6 mmRaven68k rev2, the printed circuit board in 3D

    Raven68k rev2

    jkuituni/Raven68k

    A repository for all the hardware and software development related files for a 68000 based single board computer

    78 parts5
  • 2 layers100 × 120 mmPartyLine80, the printed circuit board in 3D

    PartyLine80

    etherkit/PartyLine80

    A cheap and cheerful 80 meter QRP CW radio made from all discrete components

    194 parts4
  • 2 layers88.5 × 74.5 mmParam eq, the printed circuit board in 3D

    Param eq

    prydin/param-eq

    Parametric Equalizer

    45 parts3
  • 2 layers100 × 70 mmDMH VCLFO SingleUnit, the printed circuit board in 3D

    DMH VCLFO SingleUnit

    DeMarco/DMH-VCLFO

    Kosmo format Voltage Controlled tripple LFO module

    131 parts2
  • 2 layers221 × 179 mmSun6502, the printed circuit board in 3D

    Sun6502

    Aktr0s/Sun6502

    My 6502 Hobby Computer

    53 parts1

Questions

How big is the Dac PCB?

It measures 91.4 × 81.3 mm and has 4 copper layers, 1.6 mm thick.

What parts does the Dac use?

50 parts, built around the NE5532 and SB140. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Dac KiCad files?

From the prydin/toy-dac repository on GitHub, at the commit this page was made from: the board is kicad/dac/dac.kicad_pcb and its schematic kicad/dac-ng/clock/clock.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Dac design in my own project?

Its repository states no licence, so its author keeps all rights: ask prydin before reusing the design.