High-Fidelity and High-Efficiency Digital Class-D Audio Power Amplifier

. This study presents a high-ﬁdelity and high-eﬃciency digital class-D audio power ampliﬁer (CDA), which consists of digital and analog modules. To realize a compatible digital input, a fully digital audio digital-to-analog converter (DAC) is implemented on MATLAB and Xilinx System Generator, which consists of a 16x interpolation ﬁlter, a fourth-order four-bit quantized delta-sigma ( ΔΣ ) modulator, and a uniform-sampling pulse width modulator. The CDA utilizes the closed-loop negative feedback and loop-ﬁltering technologies to minimize distortion. The audio DAC, which is based on a ﬁeld-programmable gate array, consumes 0.128W and uses 7100 LUTs, which achieves 11.2% of the resource utilization rate. The analog module is fabricated in a 0.18 µ m BCD technology. The postlayout simulation results show that the CDA delivers an output power of 1 W with 93.3% eﬃciency to a 4 Ω speaker and achieves 0.0138% of the total harmonic distortion (THD) with a transient noise for a 1 kHz input sinusoidal test tone and 3.6V supply. The output power reaches up to 2.73 W for 1% THD (with transient noise). The proposed ampliﬁer occupies an active area of 1mm 2 .


Introduction
Following the rapid development in artificial intelligence Internet of ings, smart speaker and TWS headset based on class-D audio power amplifiers (CDAs) have become the most popular portable audio products. Simultaneously, with the continuous development in digital-storage technology, audio signals have mainly become digital audio signals. e traditional CDAs usually introduce a digital-to-analog converter (DAC) to convert the digital audio signals into analog audio signals and then perform power amplification.
is solution not only increases the complexity of the system and is not conducive to transplantation but also requires a high-precision DAC. In addition, intrinsic quantization noise is introduced to reduce the system performance. Figure 1 shows the new CDA structure proposed in the 1990s for compatibility with a digital audio interface [1], which has gradually become a research hotspot in recent years.
e modulation techniques of CDAs can be divided into uniform-sampling pulse width modulation (UPWM) [2][3][4], pulse-density modulation (PDM) [5][6][7], click modulation [8,9], and zero-position coding with separated baseband [10,11]. e CDAs comprise several main topologies. e open-loop architecture requires a precise carrier signal to achieve low distortion [12]. e closed-loop architecture does not require a similar precise carrier because the CDA loop gain suppresses the carrier distortion [13]. Moreover, some CDAs generally comprise a single-bit quantizer, but ensuring stability over all modulation indexes requires high controller power [14,15]. Multibit quantizers can improve the stability of delta-sigma (ΔΣ) modulators although they nevertheless entail high quiescent power and considerable complexity [16]. To overcome these drawbacks, we propose a CDA with a closed-loop negative feedback and loop-filtering technologies to improve the total harmonic distortion (THD) and suppress the noise introduced by the power supply. Furthermore, the ΔΣ modulator is implemented using digital circuits. is paper is organized as follows. Section 2 describes the design of the proposed architecture. e digital module is presented in Section 3. Section 4 shows the implementation of the analog module. e postlayout simulation results are provided in Section 5. Finally, the paper is concluded in section 6. Figure 2 shows the block diagram of the proposed class-D architecture, which mainly consists of a digital module (called audio DAC) and an analog module. e audio DAC comprises an interpolation filter, a ΔΣ modulator, and a UPWM. e analog module includes the closed-loop negative feedback, loop filter, and output-power stage. e input digital audio signal is modulated by the ΔΣ modulator to achieve the expected signal-to-noise ratio (SNR). e output bitstream and sampled and held carrier signals are used to realize UPWM in the digital domain. e output UPWM signal drives the analog circuit. e interpolation filter, ΔΣ modulator, and UPWM are realized using a digital module for compatibility with a digital audio input. Oversampling and noise-shaping technologies of the ΔΣ modulator are used to ensure the system SNR. e loop filter, output-power stage, and closed-loop negative feedback are realized by the analog module. e closed-loop negative feedback technology is used to effectively suppress the power-supply noise and system nonlinearity and to ensure high fidelity of the output audio signal. e maximum swing of the audio output voltage can be doubled using the bridge-tied load configuration, which consequently quadruples the output power [17].

Interpolation Filter.
To realize sufficient SNR, the interpolation filter oversamples the input digital audio signal by interpolation and evenly distributes the quantization noise in the whole frequency domain of the signal. It prepares for noise shaping in the later stage of the ΔΣ modulator [18]. e conventional interpolation filter generally adopts half-band and comb filters [19]. Although the comb filter structure is relatively simple, its filtering ability is limited.
us, some compensation technologies should be employed to improve it. Figure 3 shows the block diagram of a 16x interpolation filter for the proposed CDA. ree half-band filters and an inverse sinc filter are cascaded to complete the 16x interpolation of the input digital audio signal.
In a high-performance audio DAC, the passband ripple usually ranges from 0.001 to 0.0001 dB. erefore, in the interpolation process, the maximum allowable passband ripple of the interpolation filter must be 0.001 dB, and the stopband attenuation should exceed 100 dB. Considering the quantization effect of a finite word length, the distortion of the interpolation filter must be less than 1 dB [20]. Figure 4 shows the output spectrum of the 16x interpolation filter with V in � 1.4V pp at input signal frequency f in � 1 kHz. e SNR reaches up to 99.92 dB.

ΔΣ Modulator.
e conventional ΔΣ modulator generally comprises a single-bit quantizer to simplify the design. However, if the power transistor is directly driven by the output bitstream signal of the single-bit quantizer, the frequency of the modulated switching signal [21] will be too high and will vary with the input signal, resulting in the reduction in the power efficiency. erefore, the quantizer in the CDAs is usually considered to be multibit quantizers. However, the quantizer bits should not be very high because the system clock will be too fast to increase the system power consumption, and implementing the system becomes difficult. e SNR of the ΔΣ modulator is calculated as SNR ≈ 6.02N + 10 log 3 2 where n is the number of quantizer bits, OSR is the oversampling rate of the input signal, and L is the order of the ΔΣ modulator.
Equation (1) shows that the maximum SNR of the ΔΣ modulator increases with the order of the ΔΣ modulator, the oversampling rate of the input signal, and the number of bits of the quantizer [22]. However, a higher number of quantizer bits or a higher modulator order is required for a low oversampling rate. A higher oversampling rate can greatly reduce the requirements of the modulator and quantizer. In addition to the increase in the system frequency and power consumption, the output pulse signal frequency also exponentially increases. erefore, in this study, the oversampling rate is set to 16, the order of modulator is set to 4, and the number of bits of the quantizer is set to 4.
High-order ΔΣ modulators usually have two structures: single-loop and multistage noise-shaping (MASH) structures [23,24]. Although the ΔΣ modulator realized by MASH can achieve high precision, it also needs to achieve addition for the output of hardware resources. Hence, a ΔΣ modulator that adopts a CIFF single-loop high-order structure is shown in Figure 5. In this architecture, only the first-stage integrator receives the feedback signal from the output, which reduces the requirements for the subsequent integrators as well as the hardware resources consumed by the ΔΣ modulator.
In this design, DSM uses Xilinx System Generator tool to complete the design. e software platform uses Xilinx Vivado and MATLAB. e hardware platform uses Artix-7  MIA701 development board. e development board integrates a wealth of hardware resources to meet the digital design requirements of audio digital-to-analog converters. e ΔΣ modulator is implemented in an all-digital manner. erefore, the influence of nonideal factors does not need to be considered, such as the operational amplifier in the analog ΔΣ modulator. e output spectrum of the ΔΣ modulator filter with V in � 1.4V pp at input signal frequency f in � 1 kHz is shown in Figure 6. e SNR reaches up to 112 dB.

UPWM.
e common modulation techniques of CDAs are the UPWM and PDM. Compared with the PDM, UPWM offers the advantages of simple circuit, lower switching frequency, and higher system efficiency.
e UPWM modulator is a direct modulator that converts the digital signal into a switching signal. According to the different carrier signals, UPWM can be divided into the following: leading-edge UPWM, trailing-edge UPWM, symmetric double-edge UPWM (SDEUPWM), and asymmetric double-edge UPWM. e SDEUPWM has a lower harmonic distortion and higher SNR than the others [25]. In the proposed CDA, the SDEUPWM principle is shown in Figure 7. e output signal of the ΔΣ modulator is compared with the carrier signal to generate a UPWM wave.

Loop Filter.
e loop filter can reduce the harmonic distortion of the feedback loop using the noise-shaping technology.
e frequency-response curve of the Butterworth filter is relatively flat in the passband without fluctuations and gradually decreases to zero in the stopband. Hence, a Butterworth loop filter is designed in this study. e transfer function of the Butterworth loop filter is given by where H loop (s) � s n− 1 + · · · + a n−1 w n−2 c /a 1 s + w n−1 c /a 1 s n , G PWM (s) � a 1 w c .
(4) Figure 8 shows the output spectrum with different orders with V in � 1.4V pp at input signal frequency f in � 1 kHz and carrier signal frequency f car � 768 kHz. In the audio band, the noise-suppression effect of the Butterworth loop filter increases with the order, but the increasing trend gradually slows down. By considering the effect of the loop filter on the in-band noise suppression and the complexity of the circuit design, the order is considered as a second order.
In this study, the loop filter of the proposed CDA adopts a second-order integrator architecture, as shown in Figure 9. It consists of two cascaded Miller integrators. Figure 10 shows that the OTA is a two-stage amplifier with a Miller compensation. Because the flicker noise of PMOS is lower than that of NMOS, the differential input pair of the amplifier adopts a P-type MOS transistor, which can reduce the influence of the circuit noise. To reduce the noise and maintain the linearity of the integrator, the DC gain of the two-stage amplifier must be greater than 80 dB, and the −3 dB bandwidth must be greater than 100 Hz. e transfer function of the two-stage operational amplifier is expressed as where V id is the input differential signal, A DC is the openloop gain of the amplifier, and p z , p 1 , p 2 , and p 3 are the zero point, main pole, second pole, and third pole, respectively. erefore, the DC gain of the two-stage amplifier reaches up to 86 dB, the −3 dB bandwidth is 200 Hz, the unity-gain bandwidth is 12 MHz, and the phase margin is approximately 80°.

Rail-to-Rail Differential Comparator.
e comparator compares the output of the first-and second-stage integrators to generate a PWM waveform to drive the power transistor. Figure 11 shows the circuit of the rail-to-rail differential comparator, which consists of a preamplifier and a single-stage open-loop comparator.
To ensure that the comparator has sufficient accuracy, the preamplifier employs a folded cascade structure to achieve a high DC gain. Moreover, to achieve a wide swing input range, the input stage of the operational amplifier employs a rail-to-rail input structure using NMOS and PMOS in parallel to reduce the distortion. Figure 11 shows that M5-M9 are current-mirror structures, which provide the bias current required for normal operation of the circuit. e load is composed of M10-M15, R1, and R2. In addition, R1 and R2 form a common-mode feedback circuit. e single-stage open-loop comparator consists of a single-stage OTA and two-stage buffers. M16-M19 are composed of a simple OTA to realize the function of converting the differential output to a single output. e two-stage buffer plays an isolation role and improves the driving ability of the circuit.

Output-Power Stage.
e power transistor of CDAs can be considered as equivalent to a switch. In reality, the power transistor is not an ideal switch when it turns on, and the influence of the on-resistance should be considered. When current flows through the on-resistance, it generates heat loss, which is called conduction loss. On the other hand, when the PWM signal drives the power transistor to turn it on or off, the gate capacitance is charged and discharged, resulting in a switching loss. Figure 12 shows the equivalent diagram of the power transistor [26]. G, S, D, and B represent the gate, source, drain, and substrate of the power transistor, respectively. R on is the equivalent on-resistance. e parasitic capacitance mainly includes gate-drain capacitance C GD , gate-source capacitance C GS , and the junction capacitances (C SB , C DB , and C GB ). e on-resistance of the power transistor can be expressed as where L and W are the gate length and gate width of the power transistor, respectively, μ is the carrier mobility, and Figure 9: Circuit diagram of the second-order integrator.

Journal of Electrical and Computer Engineering
C ox is the unit gate capacitance. erefore, conduction loss P con of the power transistor can be expressed as where I rms is the effective value of the current that flows through the power transistor. P con is proportional to L and inversely proportional to W.
Total gate capacitance C G of the power transistor can be expressed as where x d is the transverse diffusion length. us, switching loss P sw can be expressed as where f sw and V DD are the frequency and amplitude of the PWM signal, respectively. P sw is proportional to W and L.
To achieve an optimal trade-off between the conduction and switching losses, the dimensions of the PMOS power transistor are W � 1200 µm and L � 0.18 µm, and those of the NMOS power transistor are W � 400 µm and L � 0.18 µm. Moreover, Figure 13 shows the gate-driving circuit. It consists of a nonoverlap configuration and an inverter-chain driving circuit to reduce the short-circuit current and parasitic gate capacitance of the power transistor [27].

Closed-Loop Negative Feedback.
ere are two major types of architecture for closed-loop negative feedback. e first one is the single-loop and the second is the multiloop. A major drawback of the multiloop architecture is that precise matching of the analog and digital signal processing paths is required to avoid large errors caused by integrator gain coefficient variations [28]. To reduce the noise and nonlinearity of the system, the proposed CDA adopts a secondorder single-feedback loop structure [29,30]. Figure 14 shows the closed-loop negative feedback structure of the proposed CDA; R FB denotes the feedback resistor. Figure 14(b) shows that the loop gain of the closed-loop system is calculated as e transfer function of the closed-loop system is given by where . (13) e THD and PSRR of the closed-loop system are expressed as PSRR � 20 log Owing to the closed-loop negative feedback technology, equation (13) indicates that the noise function of the closedloop system exhibits high-pass characteristics. e noiseshaping technology can be realized by reasonably setting the loop gain of the system. Equation (14) indicates that the THD of the closed-loop system also decreases with the increase in the loop gain, which greatly improves the system performance. Equation (15) illustrates that the PSRR of the closed-loop system also becomes more negative as the loop gain increases, and the ability to suppress the power-supply noise becomes stronger. Because of the voltage negative feedback effect, the output impedance of the closed-loop system is reduced and is independent of the load. During the stabilization of the output impedance, it reduces the voltage division by the output impedance; thus, more power can be  Figure 11: Rail-to-rail differential comparator. Figure 12: Equivalent diagram of the power transistor. obtained from the load, and the system efficiency is improved.

Simulation Results
e proposed CDA consists of digital and analog modules. e digital module is implemented on the field-programmable gate array (FPGA). Figure 15 shows the resource utilization and power-consumption distribution of the audio DAC. It consumes 0.128 W and uses 7100 LUTs, thus achieving 11.2% of the resource utilization rate. e analog module of the proposed CDA is designed and fabricated in the 0.18 µm BCD technology. e main circuit uses a 3.6 V power supply, and the output-power stage uses a 5 V power supply. Figure 16 shows the layout photograph of the proposed CDA. e active chip area is approximately 1 mm 2 . Figure 17 shows the efficiency performance of the proposed CDA at a load of 4 Ω and an audio input frequency of 1 kHz. When the output power is lower, the efficiency is dominated by the system load. With the increase in the output power, the efficiency also gradually increases and tends to become flat. Figure 18 shows the THD performance of the proposed CDA at a load of 4 Ω and an audio input frequency of 1 kHz with a transient noise. e optimal THD (with transient noise) is less than 0.01%. Table 1 lists the summary of the CDA performance and its comparison with the state-of-the-art CDAs. Compared with the digital [31] and analog [32] CDAs, the proposed CDA presents a significant advantage of higher output power for 1%THD + N. It achieves lower THD + N compared with the analog [17,33] and digital [34] CDAs. Furthermore, it achieves higher efficiency than the others. In summary, the proposed CDA demonstrates good performance.     Figure 15: Resource utilization and power-consumption distribution in the field-programmable gate array (FPGA).

Conclusion
A high-fidelity and high-efficiency CDA has been proposed, which consists of digital and analog modules. To achieve compatible digital input, the audio DAC is implemented using digital circuits. e CDA employs the closed-loop negative feedback and loop-filtering technologies to reduce distortion. e analog module is fabricated in a 0.18 µm BCD technology.
e simulation results show that it achieves 0.0138% THD (with transient noise) and 93.3% efficiency for a 1 kHz input sinusoidal test tone and 4 Ω load. e output power reaches up to 2.73 W for 1% THD (with transient noise).

Data Availability
e data used to support the findings of this study are available from the corresponding author upon request.

Conflicts of Interest
e authors declare that there are no conflicts of interest regarding the publication of this paper.  Journal of Electrical and Computer Engineering 9