Tag: Delta-Sigma Modulation

  • Direct Stream Digital (DSD) & 1-Bit Delta-Sigma Modulation: Ultrasonic Noise Shaping, SACD, DoP, and DXD

    While multi-bit Linear Pulse Code Modulation (LPCM) represents audio by sampling at moderate rates ($44.1\text{ kHz}$ to $192\text{ kHz}$) using wide 16-bit or 24-bit binary words, Direct Stream Digital (DSD) inverts this paradigm completely. Co-developed by Sony and Philips in 1999 as the underlying storage architecture for the Super Audio CD (SACD) and long-term archival of legacy analog master tapes, DSD encodes continuous analog waveforms using a 1-bit word length (a single binary digit, 0 or 1, representing $-1$ or $+1$) clocked at an extreme ultrasonic sampling rate starting at $2.8224\text{ MHz}$ ($64$ times the $44.1\text{ kHz}$ CD sampling rate).

    How can a 1-bit quantizer—which possesses an intrinsic raw Signal-to-Quantization-Noise Ratio of barely $7.78\text{ dB}$ ($6.02 \times 1 + 1.76\text{ dB}$)—deliver a pristine, audiophile dynamic range exceeding $120\text{ dB}$ across the $20\text{ Hz}$ to $20\text{ kHz}$ audible band? The answer lies in the brilliant control-loop mathematics of High-Order Delta-Sigma ($\Delta\Sigma$) Modulation and aggressive ultrasonic noise shaping. This comprehensive engineering reference explores Pulse Density Modulation (PDM), 5th-to-7th-order loop filter stability, DSD64 through DSD1024 specifications, DoP (DSD over PCM) transport framing, ultrasonic amplifier intermodulation hazards, and Digital eXtreme Definition (DXD) studio production workflows.

    1. Pulse Density Modulation (PDM) and 1-Bit Representation

    In a 1-bit DSD stream (formally known in electrical engineering as Pulse Density Modulation, PDM), there are no multi-bit numbers representing instantaneous voltage levels. Instead, the instantaneous analog voltage amplitude at any moment in time is represented by the local spatial density of 1 pulses versus 0 pulses inside a tiny sliding time window:

    • Maximum Positive Peak ($+V_{max}$): Represented by a dense, continuous train of ones (11111111...).
    • Maximum Negative Trough ($-V_{max}$): Represented by a dense, continuous train of zeros (00000000...).
    • Zero-Crossing Silence ($0.0\text{ V}$): Represented by an alternating 50% duty-cycle pattern (10101010... or randomized dithered equivalents) whose average DC value over a low-pass filter window integrates strictly to zero.

    In theory, converting a 1-bit PDM stream back into a continuous analog waveform requires nothing more than passing the high-speed 1-bit switch output through a simple analog RC/LC low-pass filter that averages the pulse density over time, removing the megahertz switching carrier and leaving the pure baseband audio wave behind.

    2. Inside the 1-Bit Delta-Sigma Modulator: Oversampling & Noise Shaping

    If you simply sample an audio signal at $2.8224\text{ MHz}$ ($64\times$ oversampling) with a basic 1-bit comparator, the $64\times$ oversampling spreads the 1-bit quantization noise power across a $1.4112\text{ MHz}$ Nyquist bandwidth instead of $22.05\text{ kHz}$. Since every doubling of the sampling rate reduces the in-band ($0\text{–}20\text{ kHz}$) noise floor by $3.01\text{ dB}$ ($0.5\text{ bits}$), $64\times$ oversampling ($2^6$) alone only improves the $7.78\text{ dB}$ SNR by $6 \times 3.01 = 18.06\text{ dB}$, yielding a dismal $25.8\text{ dB}$ SNR—nowhere near high-fidelity audio.

    To transform $25.8\text{ dB}$ into $120\text{ dB}$, the 1-bit quantizer is embedded inside a negative feedback control loop containing a cascade of $L$ discrete-time integrators—forming an $L$-th Order Delta-Sigma ($\Delta\Sigma$) Modulator.

    Z-Domain Transfer Functions of a Delta-Sigma Modulator
    Lab Calibrated
    Let X(z) = Input Signal, E(z) = Quantization Error, H(z) = Loop Integrator Filter:
    
    Modulator Output Y(z) = STF(z) * X(z) + NTF(z) * E(z)
    
    1. Signal Transfer Function (STF):
       STF(z) = H(z) / (1 + H(z))   --> Approaches 1.0 (Unity Gain Low-Pass) in the 0–20 kHz audio band
    
    2. Noise Transfer Function (NTF):
       NTF(z) = 1 / (1 + H(z))      --> Approaches (1 - z^-1)^L (High-Pass Filter) in the 0–20 kHz band
    
    3. Theoretical In-Band Dynamic Range for L-th Order Modulator at Oversampling Ratio (OSR):
       SNR_max (dB) = 6.02 * N + 1.76 - 5.17 * L + 10 * (2*L + 1) * log10(OSR)

    Examine how the loop filter $H(z)$ acts differently on the music signal versus the quantization noise: at low audible frequencies ($20\text{ Hz – }20\text{ kHz}$), the integrator gain $H(z)$ is enormous ($\rightarrow \infty$). Consequently, the Signal Transfer Function $\frac{H(z)}{1 + H(z)}$ equals $1.0$ (passing the music untouched), while the Noise Transfer Function $\frac{1}{1 + H(z)}$ approaches $0.0$ (aggressively suppressing quantization noise in the audible band and shoving that conserved noise energy upward into the ultrasonic spectrum between $50\text{ kHz}$ and $1.4\text{ MHz}$)!

    The Lee Criterion and 5th/7th-Order Loop Stability Limits

    In a 1st-order or 2nd-order Delta-Sigma modulator, the feedback loop is unconditionally stable, but the noise shaping slope is too shallow to reach $120\text{ dB}$ SNR at $2.8224\text{ MHz}$. Consequently, commercial DSD encoders (such as the Sony Sonoma or Philips Grimm ADCs) employ 5th-order to 7th-order loop filters with resonator zeroes placed inside the audible band to dig a deep $120\text{ dB}$ noise trench from $20\text{ Hz}$ to $20\text{ kHz}$.

    However, high-order ($L \ge 3$) 1-bit feedback loops are only conditionally stable. Governed by Lee’s Rule of Stability, if the peak input signal modulation index exceeds roughly $50\%$ of the 1-bit quantizer’s full-scale rails ($\approx -6\text{ dB}$ relative to an all-ones bitstream), the internal integrators saturate and the loop breaks into violent, unrecoverable oscillation. Therefore, the Scarlet Book SACD standard defines $0\text{ dB SACD}$ as a $50\%$ modulation density index, reserving the upper $3.1\text{ dB}$ of modulation headroom strictly to prevent modulator overload.

    3. DSD Rate Hierarchy: DSD64, DSD128, DSD256, DSD512, and DSD1024

    While the original 1999 SACD optical disc specification locked the DSD clock to $64 \times 44.1\text{ kHz} = 2.8224\text{ MHz}$ (now termed DSD64), modern solid-state storage and high-speed USB/I2S DAC interfaces have enabled vastly higher 1-bit oversampling multiples. Doubling the DSD clock rate pushes the ultrasonic noise-shaping mound an entire octave higher in frequency, relaxing analog low-pass reconstruction filter requirements and virtually eliminating ultrasonic noise intrusion near $20\text{ kHz}$:

    DSD Format Tier Oversampling Multiple Clock Frequency (44.1k Base / 48k Base) Audible Band SNR (20 Hz – 20 kHz) Ultrasonic Noise Onset Frequency Uncompressed Stereo Bitrate
    DSD64 (Standard SACD) 64x 2.8224 MHz / 3.072 MHz 120 dB (A-weighted) Rises rapidly above 22 kHz (peaks @ -20 dBFS at 100 kHz) 5.64 Mbps
    DSD128 (Double-Rate) 128x 5.6448 MHz / 6.144 MHz 124 dB Flat to 40 kHz; noise mound pushed above 50 kHz 11.29 Mbps
    DSD256 (Quad-Rate) 256x 11.2896 MHz / 12.288 MHz 128 dB Flat to 80 kHz; noise mound pushed above 100 kHz 22.58 Mbps
    DSD512 (Octa-Rate) 512x 22.5792 MHz / 24.576 MHz 132 dB Flat to 150 kHz; ultra-gentle analog RC filtering 45.16 Mbps
    DSD1024 1024x 45.1584 MHz / 49.152 MHz 135+ dB Flat past 300 kHz; requires ultra-low-jitter I2S/USB 90.32 Mbps

    4. The Ultrasonic Noise Mound and Analog Reconstruction Filters

    A critical engineering nuance of DSD64 is what happens immediately above $20\text{ kHz}$. Because a 5th-order modulator pushes all the quantization noise out of the audible band, the noise floor rises at a steep $30\text{ dB/octave}$ slope starting at $21\text{ kHz}$. By $80\text{ kHz}$ to $100\text{ kHz}$, the integrated ultrasonic quantization noise reaches $-20\text{ dBFS}$ to $-15\text{ dBFS}$!

    Why SACD/DSD Players Require Selectable 50 kHz Analog Low-Pass Filters
    If a raw DSD64 output containing -15 dBFS of 100 kHz ultrasonic noise is fed directly into a wideband audiophile power amplifier with limited slew-rate linearity, the ultrasonic noise can cause Slew-Induced Intermodulation Distortion (SID) that folds down into the audible band, or worse, overheat delicate ribbon/beryllium tweeters. Therefore, the Scarlet Book SACD standard mandates a 3rd-to-5th-order analog Bessel or Butterworth low-pass filter cornered at 50 kHz to strip out ultrasonic modulator noise before amplification.

    5. Why Pure 1-Bit DSD Cannot Be Mixed or Equalized Directly: The DXD Solution

    Here lies the central mathematical paradox of 1-bit DSD production: you cannot perform basic digital signal processing (such as a $+0.5\text{ dB}$ volume change, mixing two tracks together, or applying a Parametric EQ filter) directly on a 1-bit stream without immediately destroying its 1-bit structure!

    Consider why: multiplying a 1-bit stream (-1 or +1) by a volume coefficient of 0.85 (a 16-bit number) immediately produces a 17-bit multi-bit output word. Similarly, an Infinite Impulse Response (IIR) biquad equalizer filter requires recursive multiplication and accumulation across 32-bit or 64-bit internal registers. To output a 1-bit DSD stream again after a single EQ band, you would have to pass that 64-bit intermediate signal through a brand-new 5th-order 1-bit Delta-Sigma modulator—stacking a second layer of ultrasonic noise shaping on top of the first!

    DXD (Digital eXtreme Definition): 352.8 kHz / 24-Bit PCM

    When Merging Technologies developed the Pyramix workstation for Sony and Philips to edit and master SACD recordings in the early 2000s, they needed a way to crossfade, equalize, and mix DSD tracks without cascading multiple 1-bit modulators. Their solution was DXD (Digital eXtreme Definition)—which is simply 24-bit (or 32-bit float) Linear PCM running at $352.8\text{ kHz}$ ($8 \times 44.1\text{ kHz}$, or exactly $\frac{1}{8}$th of the DSD64 clock rate).

    When a DSD64 recording is imported into a DXD mastering session, a gentle decimation filter converts the 1-bit $2.8224\text{ MHz}$ stream into 32-bit floating-point samples at $352.8\text{ kHz}$ (whose $176.4\text{ kHz}$ Nyquist limit preserves all the ultrasonic transient speed of DSD while stripping the upper megahertz noise). Engineers perform all mixing, EQ, and dynamics processing in distortion-free 32-bit/64-bit floating-point DXD, and then pass the finished master through a single final Delta-Sigma modulator to render the release DSD64/DSD256 master.

    6. DSD Transport Protocols & File Containers: DSF, DFF, and DoP (DSD over PCM)

    In consumer and studio playback systems, DSD audio is stored and transmitted using specific container formats and framing protocols:

    • DSDIFF (.dff): The original studio interchange file format created by Philips for SACD authoring. While compact, .dff lacks standardized support for embedded ID3v2 metadata tags and album artwork.
    • Sony DSF (.dsf): The modern universal standard for DSD files. It wraps raw 1-bit PDM audio blocks inside a standard container that includes full ID3v2 tag metadata and album art support.
    • WavPack DSD (.wv): Losslessly compresses .dsf and .dff files by $35\%$ to $55\%$ using specialized 1-bit entropy prediction with $100\%$ bit-for-bit reconstruction upon playback.
    • DoP (DSD over PCM Open Standard): Early operating systems (macOS CoreAudio, Windows, Linux ALSA) and S/PDIF/AES3 digital cables only knew how to transport 24-bit PCM samples, not raw 1-bit DSD streams. Created by dCS, Playback Designs, and Merging Technologies, DoP packs 16 consecutive 1-bit DSD samples into the lower 16 bits of a standard 24-bit / $176.4\text{ kHz}$ PCM word ($16 \times 176.4\text{ kHz} = 2.8224\text{ MHz}$), and places a special alternating hexadecimal marker byte (0x05 / 0xFA) in the upper 8 bits. A DoP-compatible DAC detects the 0x05/0xFA marker, strips it away, and routes the untouched 16 bits directly into its native 1-bit DSD hardware path—with zero conversion to PCM!

    7. Architectural Convergence: Modern Multi-Bit Delta-Sigma Converters

    Ironically, the historic debate between “Multi-Bit PCM” and “1-Bit DSD” has largely converged inside modern silicon converter chips (such as ESS Sabre, AKM Velvet Sound, and Cirrus Logic MasterHIFI). Pure 1-bit DACs suffer from high sensitivity to clock jitter and non-linear inter-symbol interference (ISI), while pure 24-bit R-2R ladder DACs cannot maintain $0.00001\%$ resistor matching accuracy across 24 bits.

    Consequently, virtually all modern flagship studio ADCs and DACs are Multi-Bit Delta-Sigma Converters: whether you feed them a 24-bit / $96\text{ kHz}$ PCM file or a 1-bit DSD256 file, their internal architecture converts the signal into a 5-bit or 6-bit ($32$ to $64$ level) Delta-Sigma modulator running at $11.2\text{ MHz}$ to $45\text{ MHz}$, paired with Dynamic Element Matching (DEM) that scrambles tiny resistor mismatches into benign white noise. Only boutique discrete 1-bit DACs (such as Chord Electronics’ FPGA Pulse Array, Playback Designs, or T+A’s dedicated True 1-Bit converter) maintain completely separate discrete 1-bit vs PCM conversion paths.

    8. Frequently Asked Questions (FAQ)

    Q: Is a 1-bit DSD stream mathematically free of quantization error or dither?

    No—even a 1-bit comparator has a massive quantization error E(z), and if left undithered, a 1-bit Delta-Sigma modulator suffers from idle tones (periodic limit-cycle oscillations in the ultrasonic and audible bands) and noise floor modulation. Professional DSD encoders inject carefully calibrated triangular or high-pass dither directly prior to the 1-bit quantizer inside the feedback loop to prevent limit cycles and ensure linear low-level resolution.

    Q: Does DoP (DSD over PCM) convert my DSD audio into PCM and degrade the sound?

    No! Despite its confusing name, DoP (DSD over PCM) does NOT perform any mathematical conversion from DSD to PCM. It simply uses the 24-bit PCM data frame as a ‘shipping container’ to carry 16 raw 1-bit DSD bits per frame across USB or AES/EBU interfaces that lack native 1-bit drivers. The DAC unpacks the exact same bit-perfect 1-bit DSD stream at the destination.

    Q: What happens if a DoP stream is accidentally sent to a non-DoP PCM DAC?

    Because the upper 8 bits of every 24-bit DoP frame alternate rapidly between hexadecimal 0x05 and 0xFA at 88.2 kHz, a standard PCM DAC that doesn’t recognize the DoP marker will interpret that alternating byte as a low-level, high-frequency square wave—producing a faint, steady hiss or high-pitched whine rather than music.

    Q: Why do many audiophiles prefer the sound of native DSD recordings?

    When an acoustic jazz or classical performance is recorded directly into a high-rate native DSD256 modulator (without intermediate PCM decimation) and played back through a true discrete 1-bit DAC, the signal avoids both steep brick-wall digital decimation/interpolation FIR filters in the 20 kHz – 24 kHz region and multi-bit converter transition glitches, yielding an exceptionally smooth, natural transient response.

    Q: How can I tell if an SACD or DSD download was sourced from an analog tape, native DSD, or a PCM master?

    By inspecting the file in a wideband spectral analyzer (such as iZotope RX or MusicScope) up to 100 kHz. A true native DSD64 recording exhibits continuous signal and a smooth rising noise-shaping slope starting around 22 kHz. If you see a razor-sharp horizontal brick-wall cutoff at 22.05 kHz or 24 kHz beneath the ultrasonic DSD noise mound, the file was upsampled from a 44.1 kHz or 48 kHz PCM master.

    Q: What is the difference between Scarlet Book SACD and Hybrid SACD discs?

    Defined by the Sony/Philips Scarlet Book standard, a Single-Layer SACD contains only a high-density DVD-style layer storing stereo and 5.1-channel DSD64 audio (compressed losslessly via DST—Direct Stream Transfer) and can only be read by dedicated SACD players. A Hybrid SACD bonds a semi-transparent high-density SACD layer over a standard reflective 780 nm Red Book CD layer, allowing the disc to play in ordinary CD players as well.

    Q: What is Direct Stream Transfer (DST) on an SACD disc?

    Uncompressed 6-channel (5.1 surround) plus 2-channel stereo DSD64 requires more storage bandwidth and capacity than a 4.7 GB optical disc can deliver over 74 minutes. DST is a mandatory lossless entropy and linear predictive framing algorithm defined in MPEG-4 ISO/IEC 14496-3 that compresses DSD64 bitstreams by roughly 50% with 100% bit-for-bit lossless restoration.

    Q: Why does DSD64 have a 44.1 kHz base rate while some DSD files use a 48 kHz base rate?

    Original SACD DSD64 was clocked at 64 * 44,100 Hz = 2.8224 MHz so that downsampling to 44.1 kHz Red Book CD required a simple integer division by 64. Modern studio interfaces often work in multiples of 48 kHz for video/DXD compatibility, creating a parallel family of DSD rates clocked at 64 * 48,000 Hz = 3.072 MHz (and 6.144 MHz, 12.288 MHz, 24.576 MHz).

    Q: Can software media players like Roon or HQPlayer improve DSD playback?

    Yes. Specialized audiophile DSP engines like HQPlayer allow the computer’s powerful multi-core CPU/GPU to perform 7th-order or 9th-order floating-point Delta-Sigma modulation and polyphase filtering up to DSD512 or DSD1024 in software—bypassing the simpler, power-constrained internal digital modulators built into standard DAC chips.

    Q: Why do some DACs produce a soft ‘click’ or ‘pop’ when switching between PCM and DSD tracks?

    In a true 1-bit DSD path, zero audio (silence) is represented by an alternating 10101010 bitstream at 50% duty cycle, whereas in PCM, silence is all zeros (00000000). When switching modes, the DAC’s output muting relays or modulator integrators must discharge any minuscule DC offset jump between the two architectures; high-end DACs use brief 50 ms optical MOSFET muting relays to silence this transition.

    Q: What is ‘Wide DSD’ or ‘8-Bit DSD’ used inside Sony Sonoma workstations?

    To allow basic level adjustments and crossfades without converting all the way down to 352.8 kHz DXD PCM, the Sonoma system processes audio internally at the full 2.8224 MHz DSD64 clock rate using an 8-bit word length (‘DSD-Wide’), retaining the exact temporal sampling structure of DSD64 before re-modulating to 1-bit.

    Q: Does converting DSD64 to 24-bit / 88.2 kHz or 96 kHz PCM lose audible musical information?

    When converted using a high-precision 64-bit floating-point linear-phase or minimum-phase decimation filter with a 30 kHz – 40 kHz low-pass cutoff, converting DSD64 to 24-bit / 88.2 kHz PCM retains 100% of the musical spectrum and dynamic range up to 35 kHz while stripping away the unusable ultrasonic modulator noise above 44.1 kHz.