v {xschem version=3.0.0 file_version=1.2 }
G {}
K {}
V {}
S {}
E {}
B 2 900 -620 1700 -330 {flags=graph
y1=-0.214318
y2=1.44454
ypos1=0
ypos2=2
divy=5
subdivy=1
unity=1
x1=2e-12
x2=9e-06
divx=5
subdivx=1
node="sig_in
vref
vcc"
color="8 9 11"
dataset=0
unitx=u
}
B 2 900 -330 1700 -130 {flags=graph
y1=0
y2=1.2
ypos1=0.0499032
ypos2=0.633885
divy=5
subdivy=1
unity=1
x1=2e-12
x2=9e-06
divx=5
subdivx=1
node="CODE,code[5],code[4],code[3],code[2],code[1],code[0]
ck
rst
x1.comp"
color="7 4 10 4"
dataset=0
unitx=u
digital=1}
B 2 900 -970 1700 -630 {flags=graph
y1=14.1924
y2=54.9924
ypos1=0
ypos2=2


unity=1
x1=2e-12
x2=9e-06
divx=5
subdivx=1
node="\\"0x12; 18\\"
\\"0x2E; 46\\"
\\"0x33; 51\\"
\\"sig_in 1.2 / 63 *\\""
color="14 14 14 7"
dataset=0
unitx=u
divy=10
subdivy=1}
B 2 620 -100 757 -40 {flags=image
alpha=0.6
[encoded data, 50943 characters]}
P 8 7 620 -700 820 -700 820 -710 860 -700 820 -690 820 -700 620 -700 {}
T {Value of this signal
is equal to adc conversion
CODE[5:0]} 602.5 -792.5 0 0 0.4 0.4 {layer=8}
C {title.sym} 160 -30 0 0 {name=l1 author="Stefan Schippers"}
C {lab_pin.sym} 270 -670 0 0 {name=p33 lab=VREF}
C {vsource.sym} 270 -640 0 0 {name=v2 value="'VCC/2'"}
C {lab_pin.sym} 270 -610 0 0 {name=p34 lab=0}
C {code_shown.sym} 10 -440 0 0 {name=CONTROL 
tclcommand="xschem edit_vi_prop"
place=end
value="
** download the models from:
** https://ptm.asu.edu/modelcard/65nm_bulk.txt
.include models_65nm.txt
.model switch sw vt='VCC/2' vh=0.2 ron=1000 roff=1G
.param VCC=1.2
.option method=GEAR
.measure tran avg1 AVG v(x1.qn) from=1u to=3u 
.measure tran avg2 AVG v(x1.qn) from=4u to=6u
.measure tran avg3 AVG v(x1.qn) from=7u to=9u
.control
  * save all
  tran 0.2n 9u uic
  write delta_sigma.raw
.endc
"}
C {vsource.sym} 270 -540 0 1 {name=v3 
value="pwl
+ 0.001u 0.34 3u 0.34 
+ 3.001u 0.88 6u 0.88
+ 6.001u 0.97 9u 0.97"}
C {lab_pin.sym} 270 -510 0 0 {name=p1 lab=0}
C {lab_pin.sym} 270 -570 0 0 {name=p2 lab=SIG_IN}
C {vsource.sym} 520 -550 0 0 {name=v1 
value="pulse 0 VCC 100n 100p 100p 9.9n 20n" 
xvalue="sin 0.2 1.8 1u 0"
}
C {lab_pin.sym} 520 -520 0 0 {name=p6 lab=0}
C {lab_pin.sym} 520 -580 0 0 {name=p7 lab=CK}
C {vsource.sym} 390 -640 0 0 {name=v5 value=VCC}
C {lab_pin.sym} 390 -610 0 0 {name=p17 lab=0}
C {lab_pin.sym} 390 -570 0 0 {name=p18 lab=VSS}
C {vsource.sym} 390 -540 0 0 {name=v6 value=0}
C {lab_pin.sym} 390 -510 0 0 {name=p19 lab=0}
C {lab_pin.sym} 520 -680 0 0 {name=p55 lab=RST}
C {vsource.sym} 520 -650 0 0 {name=v7 value="pwl 0 VCC 
+ 1u VCC 1.001u 0 3u 0 3.001u VCC
+ 4u VCC 4.001u 0 6u 0 6.001u VCC
+ 7u VCC 7.001u 0 9u 0 9.001u VCC"

}
C {lab_pin.sym} 520 -620 0 0 {name=p56 lab=0}
C {vdd.sym} 390 -670 0 0 {name=l2 lab=VCC}
C {adc.sym} 620 -190 0 0 {name=x1}
C {lab_pin.sym} 700 -220 0 1 {name=p38 lab=CODE[5:0]}
C {lab_pin.sym} 540 -220 0 0 {name=p39 lab=SIG_IN}
C {lab_pin.sym} 540 -200 0 0 {name=p40 lab=VREF}
C {lab_pin.sym} 540 -180 0 0 {name=p41 lab=CK}
C {lab_pin.sym} 540 -160 0 0 {name=p42 lab=RST}
C {spice_probe.sym} 270 -670 0 0 {name=p3 attrs=""}
C {spice_probe.sym} 390 -670 0 0 {name=p4 attrs=""}
C {spice_probe.sym} 270 -570 0 0 {name=p5 attrs=""}
C {spice_probe.sym} 520 -580 0 0 {name=p8 attrs=""}
C {spice_probe.sym} 520 -680 0 0 {name=p9 attrs=""}
C {spice_probe.sym} 700 -220 0 0 {name=p10 attrs=""}
C {launcher.sym} 1270 -90 0 0 {name=h5 
descr="Select arrow and 
Ctrl-Left-Click to load/unload waveforms" 
tclcommand="
xschem raw_read $netlist_dir/[file tail [file rootname [xschem get current_name]]].raw
"
}
C {launcher.sym} 870 -90 0 0 {name=h1 
descr="Netlist + Simulate
Ctrl-Left-Click" 
tclcommand="xschem netlist; xschem simulate"
}
