THD is changed as "extra credit", if you don't have enough time to test and run FFT.
Download AIC_project_2021.zip as examples for help testing your design. (One more schematics "ac_input" is added for your reference.) These are example and demonstration only. You need to change the parameters when necessary.
You are free to test your design by using other reasonable methods. Debugging, simulation methodology and validation are parts of the circuit design!
Razavi, Sec. 12.3 (1st ed.) or Sec. 13.3 (2nd ed.).
Papers for Pipeline and Two-Step ADC: [Sumanen, JSSC 07/2001].
Only waveforms are shown here for your reference. You have to write derivation and design detail.
You are free to test your design by using HSPICE .sp command to run .tran simulations for settling and THD.
Use the test bench to test your settling and THD. Use Cadence Analog Design Environment (ADE) to convert schematics into netlist.
HSPICE marcomodel of ideal switch to run .tran simulations:
.param VDD=1.8 VSS=0
.subckt switch_hspice clk in out
g1 in out VCR PWL(1) clk 0 0,100e9 400e-3,100e6 600e-3,10e6 1200e-3,100 1400e-3,20 1800e-3,100m
.ends switch_hspice
Differential AC input source to test your frequency response
Check the GEE5101 ac_input schematics to generate the "differential" input AC source. Or, use the following netlist for your reference:
e8 vinp vcmi VCVS vinac 0 1
e9 vcmi vinn VCVS vinac 0 1
vac_in vinac 0 DC=0 AC 500e-3
v2 vcmi 0 DC=900e-3
Noise simulations
HSPICE offers a command to add transient noise, but it takes very long simulation time. You are free to learn and use this.
Use .noise to simulate opamp's thermal noise power spectrum [V^2/Hz]. Integrated the total integrated noise [V^2}.
Additional Help to simulate thermal noise by using PSS/PNOISE if you are interested. (This is for your reference only.)
Note: We are not provided Spectre model.