tied guard rings
diff --git a/gds/dsa/spdt.GDS b/gds/dsa/spdt.GDS
index 2e318d1..cc7203f 100644
--- a/gds/dsa/spdt.GDS
+++ b/gds/dsa/spdt.GDS
Binary files differ
diff --git a/gds/dsa/spdt.spice b/gds/dsa/spdt.spice
new file mode 100644
index 0000000..a6acf42
--- /dev/null
+++ b/gds/dsa/spdt.spice
@@ -0,0 +1,52 @@
+** sch_path: /Volumes/WORK_DRIVE/caravel_automatic_gain_control/xschem/attenuator/spdt.sch
+**.subckt spdt in ctr gnd vdd out1 out2
+*.ipin in
+*.ipin ctr
+*.ipin gnd
+*.ipin vdd
+*.opin out1
+*.opin out2
+XINV1 vdd ctr gnd net1 inverter
+XTG1 vdd ctr in gnd net1 out1 transgate
+XTG2 vdd net1 in gnd ctr out2 transgate
+XINV1 vdd ctr gnd net1 inverter
+**.ends
+
+* expanding   symbol:
+*+  /Volumes/WORK_DRIVE/caravel_automatic_gain_control/xschem/attenuator/inverter.sym # of pins=4
+** sym_path: /Volumes/WORK_DRIVE/caravel_automatic_gain_control/xschem/attenuator/inverter.sym
+** sch_path: /Volumes/WORK_DRIVE/caravel_automatic_gain_control/xschem/attenuator/inverter.sch
+.subckt inverter  vdd in gnd out
+*.ipin in
+*.ipin gnd
+*.ipin vdd
+*.opin out
+XM1 out in gnd gnd sky130_fd_pr__nfet_01v8 L=0.15 W=4 nf=1 ad='int((nf+1)/2) * W/nf * 0.29' as='int((nf+2)/2) * W/nf * 0.29'
++ pd='2*int((nf+1)/2) * (W/nf + 0.29)' ps='2*int((nf+2)/2) * (W/nf + 0.29)' nrd='0.29 / W' nrs='0.29 / W'
++ sa=0 sb=0 sd=0 mult=1 m=1
+XM2 out in vdd vdd sky130_fd_pr__pfet_01v8 L=0.15 W=4 nf=1 ad='int((nf+1)/2) * W/nf * 0.29' as='int((nf+2)/2) * W/nf * 0.29'
++ pd='2*int((nf+1)/2) * (W/nf + 0.29)' ps='2*int((nf+2)/2) * (W/nf + 0.29)' nrd='0.29 / W' nrs='0.29 / W'
++ sa=0 sb=0 sd=0 mult=1 m=1
+.ends
+
+
+* expanding   symbol:
+*+  /Volumes/WORK_DRIVE/caravel_automatic_gain_control/xschem/attenuator/transgate.sym # of pins=6
+** sym_path: /Volumes/WORK_DRIVE/caravel_automatic_gain_control/xschem/attenuator/transgate.sym
+** sch_path: /Volumes/WORK_DRIVE/caravel_automatic_gain_control/xschem/attenuator/transgate.sch
+.subckt transgate  vdd ctr2 in gnd ctr1 out
+*.ipin in
+*.ipin ctr2
+*.ipin ctr1
+*.ipin vdd
+*.ipin gnd
+*.opin out
+XM1 in ctr1 out gnd sky130_fd_pr__nfet_01v8 L=0.15 W=4 nf=1 ad='int((nf+1)/2) * W/nf * 0.29' as='int((nf+2)/2) * W/nf * 0.29'
++ pd='2*int((nf+1)/2) * (W/nf + 0.29)' ps='2*int((nf+2)/2) * (W/nf + 0.29)' nrd='0.29 / W' nrs='0.29 / W'
++ sa=0 sb=0 sd=0 mult=1 m=1
+XM2 in ctr2 out vdd sky130_fd_pr__pfet_01v8 L=0.15 W=4 nf=1 ad='int((nf+1)/2) * W/nf * 0.29' as='int((nf+2)/2) * W/nf * 0.29'
++ pd='2*int((nf+1)/2) * (W/nf + 0.29)' ps='2*int((nf+2)/2) * (W/nf + 0.29)' nrd='0.29 / W' nrs='0.29 / W'
++ sa=0 sb=0 sd=0 mult=1 m=1
+.ends
+
+.end
diff --git a/xschem/._user_analog_project_wrapper.spice b/xschem/._user_analog_project_wrapper.spice
new file mode 100644
index 0000000..bea1a7f
--- /dev/null
+++ b/xschem/._user_analog_project_wrapper.spice
Binary files differ