* SPICE netlist
V4 N002 0 PULSE(0 {vdd_val} 1u 1n 1n 10n {ts})
V6 REF 0 {vref_val}
XU3 REF VDD ADCINP MP_01 0 ADCINN VSAMPLED N002 AD4003 EN_Hi_Z=1 ;pnba REF)Vdd)IN+))GND)IN-)Vout)CNV
R1 ADCINP N001 {Rval1}
R2 ADCINN N004 {Rval2}
C1 ADCINP 0 {Cval1}
C2 ADCINN 0 {Cval2}
V1 VINP 0 SINE({voff} {vmag} {fin} 0 0 0)
V7 VCC 0 {vcc_val}
V8 VEE 0 {vee_val}
V9 VDD 0 {vdd_val}
R4 N004 N005 {Rf_val}
R6 N005 N001 {Rg_val}
V2 N003 0 {voff}
XU1 VINP N001 VCC VEE N001 VCC ADA4807 ;pnba 100)101)102)103)104)106
XU2 N003 N005 VCC VEE N004 VCC ADA4807 ;pnba 100)101)102)103)104)106
.param M=3
.param N=4096
.param vref_val=5
.param vdd_val=1.8
.param vcc_val=15
.param vee_val=-15
.param voff=vref_val/{2}
.param fs=2e6
.param ts=1/fs
.param fin= fs*M/N
.param vmag=.93*vref_val/2
.param tmax=1/(fs)
.param END_SIM=M*(1/fin)
.save v(vsampled)
.option plotwinsize=0 numdgt=15
.four {fin} 5 -1 v(vsampled)
.param Rval1=200
.param Cval1=180p
.param Rval2=Rval1
.param Cval2=Cval1
.tran 0 {END_SIM+1/fin} {1/fin} {tmax}
.param Rf_val=500
.param Rg_val=500

* LTspice schematic (.asc)
Version 4
SHEET 1 3072 992
WIRE 1040 -496 912 -496
WIRE 1136 -496 1040 -496
WIRE 0 -432 -192 -432
WIRE 912 -432 912 -496
WIRE -96 -304 -96 -336
WIRE -192 -288 -192 -432
WIRE -112 -288 -192 -288
WIRE 912 -288 912 -352
WIRE 0 -272 0 -432
WIRE 0 -272 -48 -272
WIRE 64 -272 0 -272
WIRE 208 -272 64 -272
WIRE 368 -272 288 -272
WIRE 528 -272 368 -272
WIRE -208 -256 -448 -256
WIRE -112 -256 -208 -256
WIRE 1136 -256 1136 -496
WIRE 368 -224 368 -272
WIRE -96 -208 -96 -240
WIRE -64 -208 -64 -240
WIRE 1392 -208 1392 -368
WIRE 1392 -208 1264 -208
WIRE 528 -160 528 -272
WIRE 672 -160 528 -160
WIRE 864 -160 672 -160
WIRE 864 -128 864 -160
WIRE 912 -128 864 -128
WIRE 64 -112 64 -272
WIRE 64 -112 -336 -112
WIRE 368 -112 368 -160
WIRE 368 -112 288 -112
WIRE 1536 -112 1264 -112
WIRE 912 -96 864 -96
WIRE 368 -64 368 -112
WIRE 672 -64 528 -64
WIRE 864 -64 864 -96
WIRE 864 -64 672 -64
WIRE 1392 -16 1264 -16
WIRE -448 0 -448 -256
WIRE -96 16 -96 -16
WIRE -64 16 -64 -16
WIRE -288 32 -304 32
WIRE -112 32 -208 32
WIRE 0 48 -48 48
WIRE 208 48 0 48
WIRE 368 48 368 0
WIRE 368 48 288 48
WIRE 528 48 528 -64
WIRE 528 48 368 48
WIRE -112 64 -192 64
WIRE 1136 64 1136 32
WIRE -96 112 -96 80
WIRE -448 128 -448 80
WIRE -336 208 -336 -112
WIRE -304 208 -336 208
WIRE -192 208 -192 64
WIRE -192 208 -224 208
WIRE -128 208 -192 208
WIRE 0 208 0 48
WIRE 0 208 -48 208
WIRE 1392 304 1392 -16
WIRE -1536 320 -1536 224
WIRE -1280 320 -1280 224
WIRE -1008 320 -1008 224
WIRE 1392 480 1392 384
WIRE -1536 496 -1536 400
WIRE -1280 496 -1280 400
WIRE -1008 496 -1008 400
FLAG 1136 64 0
FLAG 1392 -368 VDD
FLAG 672 -160 ADCINP
FLAG 672 -64 ADCINN
FLAG 1392 480 0
FLAG 1040 -496 REF
FLAG 288 -112 0
FLAG -1280 496 0
FLAG -1536 224 VCC
FLAG -1280 224 VEE
FLAG -1008 224 VDD
FLAG -1008 496 0
FLAG -1536 496 0
FLAG -448 128 0
FLAG -208 -256 VINP
FLAG -304 32 0
FLAG 1536 -112 VSAMPLED
IOPIN 1024 64 Out
FLAG -96 -336 VCC
FLAG -96 -208 VEE
FLAG -64 -208 VCC
FLAG -96 112 VCC
FLAG -96 -16 VEE
FLAG -64 -16 VCC
FLAG 912 -288 0
SYMBOL voltage 1392 288 R0
SYMATTR Value PULSE(0 {vdd_val} 1u 1n 1n 10n {ts})
SYMATTR InstName V4
SYMBOL voltage 912 -448 R0
SYMATTR InstName V6
SYMATTR Value {vref_val}
SYMBOL ADC\\AD4003 1168 -112 R0
SYMATTR InstName U3
SYMBOL res 304 -288 R90
SYMATTR InstName R1
SYMATTR Value {Rval1}
SYMBOL res 304 32 R90
SYMATTR InstName R2
SYMATTR Value {Rval2}
SYMBOL cap 352 -224 R0
SYMATTR InstName C1
SYMATTR Value {Cval1}
SYMBOL cap 384 0 R180
SYMATTR InstName C2
SYMATTR Value {Cval2}
SYMBOL voltage -448 -16 R0
SYMATTR InstName V1
SYMATTR Value SINE({voff} {vmag} {fin} 0 0 0)
SYMBOL voltage -1536 304 R0
SYMATTR InstName V7
SYMATTR Value {vcc_val}
SYMBOL voltage -1280 304 R0
SYMATTR InstName V8
SYMATTR Value {vee_val}
SYMBOL voltage -1008 304 R0
SYMATTR InstName V9
SYMATTR Value {vdd_val}
SYMBOL res -32 192 R90
SYMATTR InstName R4
SYMATTR Value {Rf_val}
SYMBOL res -208 192 R90
SYMATTR InstName R6
SYMATTR Value {Rg_val}
SYMBOL voltage -192 32 R90
SYMATTR InstName V2
SYMATTR Value {voff}
SYMBOL Opamps\\ADA4807-2 -80 -272 R0
SYMATTR InstName U1
SYMBOL Opamps\\ADA4807-2 -80 48 M180
SYMATTR InstName U2