* SPICE netlist
V2 P15V 0 15
V3 N15V 0 -15
V4 P5V 0 5
Vicm N003 0 {Voffset}
E1 IN+ N003 N001 0 0.5
E2 N003 IN- N001 0 0.5
Vin N001 0 SINE(0 {Ampl} 10k) AC 1
VA1 N007 0 {GAIN1}
VA2 N006 0 {GAIN2}
VA0 N008 0 {GAIN0}
E3 AFE_Out 0 N002 N004 1
R1 N005 0 60.343
E4 CoreADC_Noise 0 N005 0 {ADC_Noise}
B1 RTO_Noise 0 V=V(AFE_Out)+V(CoreADC_Noise)
B2 RTI_Noise 0 V=V(RTO_Noise)/{AFE_GAIN}
XU1 P5V N008 N007 N006 P5V P15V IN- 0 IN+ N15V N004 N002 0 P5V P5V ADAQ7768-1 ;pnba VDD_FDA)GAIN0)GAIN1)GAIN2)VDD2_PGA)VDD_PGA)IN-)VCM_PGA)IN+)VSS_PGA)ANALOG OUT -)ANALOG OUT +)GND)M0_FDA)M1_FDA
.param Voffset = table(ind, 0,5.6, 1,8.8, 2,10.4, 3,11.2, 4,11.6, 5,11.8, 6,11.9)
.TRAN 200u
.meas NOISE noise_integ INTEG V(onoise)
.param GAIN0 = table(ind, 0,0, 1,5, 2,0, 3,5, 4,0, 5,5 ,6,0)
.meas AC GAIN FIND mag(V(AFE_Out)) AT 100
.meas AC BW WHEN mag(V(AFE_Out)) = GAIN/sqrt(2)
.step param ind list 0 1 2 3 4 5 6
.param GAIN2 = table(ind, 0,5, 1,5, 2,5, 3,0, 4,0, 5,0, 6,0)
.param GAIN1 = table(ind, 0,5, 1,0, 2,0, 3,5, 4,5, 5,0, 6,0)
.param Ampl = table(ind, 0,12.603, 1,6.302, 2,3.151, 3,1.575, 4,0.788, 5,0.394, 6,0.197)
.param AFE_GAIN = table(ind, 0,0.325, 1,0.65, 2,1.3, 3,2.6, 4,5.2, 5,10.4 ,6,20.8)
.param MCLK=16.384Meg
.param MCLK_DIV=2
.param ADC_Noise=33*sqrt(16.384Meg/(2*MCLK/MCLK_DIV))
.param BW_3dB=ODR*BW_Factor
.param DEC_RATE=32
.param ODR=MCLK/(MCLK_DIV*DEC_RATE)
.param BW_Factor=0.433

* LTspice schematic (.asc)
Version 4
SHEET 1 2784 1456
WIRE -1328 -680 -1328 -728
WIRE -1216 -680 -1216 -728
WIRE -1104 -680 -1104 -728
WIRE -1328 -568 -1328 -600
WIRE -1216 -568 -1216 -600
WIRE -1216 -568 -1328 -568
WIRE -1104 -568 -1104 -600
WIRE -1104 -568 -1216 -568
WIRE -1216 -552 -1216 -568
WIRE -400 -520 -432 -520
WIRE -272 -520 -336 -520
WIRE -240 -520 -272 -520
WIRE -752 -472 -896 -472
WIRE -400 -472 -400 -520
WIRE -336 -472 -336 -520
WIRE -272 -472 -272 -520
WIRE -896 -408 -896 -472
WIRE -944 -392 -1120 -392
WIRE -944 -344 -992 -344
WIRE 656 -216 576 -216
WIRE 912 -216 848 -216
WIRE 1392 -216 1328 -216
WIRE -752 -184 -752 -472
WIRE -720 -184 -752 -184
WIRE -688 -184 -720 -184
WIRE 480 -184 416 -184
WIRE 576 -184 576 -216
WIRE 848 -184 848 -216
WIRE 1328 -184 1328 -216
WIRE 480 -168 480 -184
WIRE 528 -168 480 -168
WIRE -1120 -152 -1120 -392
WIRE -1120 -152 -1392 -152
WIRE -896 -152 -896 -328
WIRE -896 -152 -1040 -152
WIRE -1392 -120 -1392 -152
WIRE -1040 -120 -1040 -152
WIRE 528 -120 480 -120
WIRE -720 -104 -752 -104
WIRE -688 -104 -720 -104
WIRE 480 -104 480 -120
WIRE 480 -104 416 -104
WIRE 576 -72 576 -104
WIRE 848 -72 848 -104
WIRE 1328 -72 1328 -104
WIRE -1392 -8 -1392 -40
WIRE -1040 -8 -1040 -40
WIRE -896 56 -896 -152
WIRE -1120 72 -1120 -152
WIRE -944 72 -1120 72
WIRE 672 104 576 104
WIRE 768 104 720 104
WIRE -944 120 -992 120
WIRE 576 120 576 104
WIRE 720 136 720 104
WIRE 672 152 672 104
WIRE -896 184 -896 136
WIRE -752 184 -752 -104
WIRE -752 184 -896 184
WIRE 576 216 576 200
WIRE 672 216 672 200
WIRE 672 216 576 216
WIRE 720 216 672 216
WIRE -400 232 -400 184
WIRE -400 232 -432 232
WIRE -336 232 -336 184
WIRE -96 232 -96 184
WIRE -32 232 -32 184
WIRE -32 232 -96 232
WIRE 0 232 -32 232
WIRE 128 232 128 184
WIRE 576 232 576 216
WIRE -416 376 -528 376
WIRE -272 376 -272 184
WIRE -272 376 -336 376
WIRE -528 520 -528 376
WIRE -416 520 -528 520
WIRE -224 520 -224 184
WIRE -224 520 -336 520
WIRE -528 664 -528 520
WIRE -416 664 -528 664
WIRE -176 664 -176 184
WIRE -176 664 -336 664
WIRE -528 728 -528 664
FLAG -992 -344 0
FLAG -992 120 0
FLAG -1328 -728 P15V
FLAG -1216 -728 N15V
FLAG -1104 -728 P5V
FLAG -1216 -552 0
FLAG -432 -520 P15V
FLAG -240 -520 P5V
FLAG 0 232 P5V
FLAG -432 232 N15V
FLAG -336 232 0
FLAG 128 232 0
FLAG -1040 -8 0
FLAG -1392 -8 0
FLAG -528 728 0
FLAG 576 -72 0
FLAG 656 -216 AFE_Out
FLAG -720 -184 IN+
FLAG -720 -104 IN-
FLAG 576 232 0
FLAG 768 104 CoreADC_Noise
FLAG 848 -72 0
FLAG 912 -216 RTO_Noise
FLAG 1328 -72 0
FLAG 1392 -216 RTI_Noise
SYMBOL voltage -1328 -696 R0
SYMATTR InstName V2
SYMATTR Value 15
SYMBOL voltage -1216 -696 R0
SYMATTR InstName V3
SYMATTR Value -15
SYMBOL voltage -1104 -696 R0
SYMATTR InstName V4
SYMATTR Value 5
SYMBOL voltage -1040 -136 R0
SYMATTR InstName Vicm
SYMATTR Value {Voffset}
SYMBOL e -896 -424 R0
SYMATTR InstName E1
SYMATTR Value 0.5
SYMBOL e -896 40 R0
SYMATTR InstName E2
SYMATTR Value 0.5
SYMBOL voltage -1392 -136 R0
SYMATTR Value2 AC 1
SYMATTR InstName Vin
SYMATTR Value SINE(0 {Ampl} 10k)
SYMBOL voltage -320 520 R90
SYMATTR InstName VA1
SYMATTR Value {GAIN1}
SYMBOL voltage -320 376 R90
SYMATTR InstName VA2
SYMATTR Value {GAIN2}
SYMBOL voltage -320 664 R90
SYMATTR InstName VA0
SYMATTR Value {GAIN0}
SYMBOL e 576 -200 R0
SYMATTR InstName E3
SYMATTR Value 1
SYMBOL res 560 104 R0
SYMATTR InstName R1
SYMATTR Value 60.343
SYMBOL e 720 120 R0
SYMATTR InstName E4
SYMATTR Value {ADC_Noise}
SYMBOL bv 848 -200 R0
SYMATTR InstName B1
SYMATTR Value V=V(AFE_Out)+V(CoreADC_Noise)
SYMBOL bv 1328 -200 R0
SYMATTR Value V=V(RTO_Noise)/{AFE_GAIN}
SYMATTR InstName B2
SYMBOL ADAQ7768-1 -320 -168 R0
SYMATTR InstName U1