Skip to content

Instantly share code, notes, and snippets.

@buttercutter
Last active January 29, 2021 16:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save buttercutter/1acf5cad5b59429df9f8c278a7d7c324 to your computer and use it in GitHub Desktop.
Save buttercutter/1acf5cad5b59429df9f8c278a7d7c324 to your computer and use it in GitHub Desktop.
A phase shifter circuit from the paper: A Full X-Band Phased-Array Transmit Receive Module Chip in 65-nm CMOS Technology
v {xschem version=2.9.9 file_version=1.2 }
G {}
K {}
V {}
S {}
E {}
N 60 -10 180 -10 { lab=Vs1}
N 180 -10 270 -10 { lab=Vs1}
N 60 310 270 310 { lab=#net1}
N -80 290 -80 310 { lab=#net2}
N -80 310 0 310 { lab=#net2}
N -80 -10 0 -10 { lab=#net3}
N -80 -10 -80 20 { lab=#net3}
N -120 150 -80 150 { lab=#net4}
N 250 280 270 280 { lab=#net5}
N 190 20 270 20 { lab=#net6}
N 180 280 250 280 { lab=#net5}
N 100 280 120 280 { lab=GND}
N 100 20 130 20 { lab=GND}
N -80 170 -80 210 { lab=#net4}
N -80 110 -80 170 { lab=#net4}
N 30 -10 30 60 { lab=#net7}
N 30 150 30 170 { lab=GND}
N 30 230 30 310 { lab=#net8}
N 30 60 30 80 { lab=#net7}
N -80 80 -80 110 { lab=#net4}
N 30 140 30 150 { lab=GND}
N -80 210 -80 230 { lab=#net4}
N 270 50 270 70 { lab=GND}
N 270 220 270 250 { lab=GND}
N 100 150 100 160 { lab=GND}
N 30 150 100 150 { lab=GND}
N -80 310 -80 380 { lab=#net2}
N 30 350 30 380 { lab=Vg4}
N 120 310 120 380 { lab=#net1}
N 30 -180 30 -150 { lab=#net9}
N -80 -90 -80 -10 { lab=#net3}
N 30 -90 30 -50 { lab=Vg1}
N 120 -90 120 -10 { lab=Vs1}
N 30 -290 160 -290 { lab=inv_x1_in}
N 30 -290 30 -260 { lab=inv_x1_in}
N -80 -290 30 -290 { lab=inv_x1_in}
N -80 -290 -80 -150 { lab=inv_x1_in}
N 120 -290 120 -150 { lab=inv_x1_in}
N 30 620 180 620 { lab=inv_x3_in}
N 30 580 30 620 { lab=inv_x3_in}
N 30 440 30 500 { lab=#net10}
N 120 440 120 620 { lab=inv_x3_in}
N -80 620 30 620 { lab=inv_x3_in}
N -80 440 -80 620 { lab=inv_x3_in}
N 310 280 370 280 { lab=Vg3}
N 310 20 370 20 { lab=Vg2}
N 270 310 310 310 { lab=#net1}
N 270 -10 310 -10 { lab=Vs1}
N 240 -130 240 -110 { lab=GND}
N 660 -200 660 -180 { lab=GND}
N 240 -290 310 -290 { lab=Vctrl}
N 430 280 500 280 { lab=Vctrl}
N 430 20 500 20 { lab=Vctrl_n}
N 260 620 330 620 { lab=Vctrl_n}
N 500 -10 600 -10 { lab=Vsw1}
N 500 310 600 310 { lab=Vsw2}
N 660 -10 710 -10 { lab=#net11}
N 660 310 840 310 { lab=#net12}
N 730 310 730 320 { lab=#net12}
N 730 430 730 450 { lab=GND}
N 770 -10 840 -10 { lab=#net13}
N 1140 -10 1200 -10 { lab=#net14}
N 900 -10 1080 -10 { lab=#net15}
N 1140 310 1200 310 { lab=#net16}
N 900 310 1080 310 { lab=#net17}
N 1310 -10 1310 30 { lab=Vd9}
N 1260 -10 1310 -10 { lab=Vd9}
N 1200 90 1270 90 { lab=#net18}
N 1070 90 1140 90 { lab=Vctrl1}
N 1310 90 1420 90 { lab=#net19}
N 1480 90 1510 90 { lab=GND}
N 1310 280 1310 310 { lab=Vd12}
N 1260 310 1310 310 { lab=Vd12}
N 1310 220 1420 220 { lab=#net20}
N 1480 220 1510 220 { lab=GND}
N 1310 120 1310 190 { lab=GND}
N 1260 150 1260 160 { lab=GND}
N 1260 150 1310 150 { lab=GND}
N 1200 220 1270 220 { lab=#net21}
N 1070 220 1140 220 { lab=Vctrl1_n}
N 1620 160 1660 160 { lab=#net22}
N 1310 -10 1700 -10 { lab=Vd9}
N 1490 160 1560 160 { lab=Vctrl4_n}
N 1700 160 1810 160 { lab=#net23}
N 1870 160 1900 160 { lab=GND}
N 1310 280 1700 280 { lab=Vd12}
N 1960 160 1990 160 { lab=GND}
N 2050 160 2160 160 { lab=#net24}
N 1700 280 2160 190 { lab=Vd12}
N 1700 190 2160 280 { lab=Vs12}
N 1930 -50 1930 40 { lab=#net25}
N 1930 100 1930 120 { lab=GND}
N 1700 -50 1900 -50 { lab=Vd9}
N 1700 20 1700 130 { lab=Vd9}
N 1960 -50 2160 -50 { lab=Vs9}
N 2160 -50 2160 130 { lab=Vs9}
N 1930 -120 1930 -90 { lab=#net26}
N 2200 160 2240 160 { lab=#net27}
N 1490 160 1560 160 { lab=Vctrl4_n}
N 2300 160 2370 160 { lab=Vctrl4}
N 2300 160 2370 160 { lab=Vctrl4}
N 1930 -250 1930 -180 { lab=Vctrl3}
N 1930 -250 1930 -180 { lab=Vctrl3}
N 2650 90 2720 90 { lab=Vctrl2}
N 2650 90 2720 90 { lab=Vctrl2}
N 2410 90 2510 90 { lab=#net28}
N 2510 150 2510 160 { lab=GND}
N 2550 90 2590 90 { lab=#net29}
N 2310 90 2350 90 { lab=GND}
N 2160 20 2190 20 { lab=Vs9}
N 2610 20 2640 20 { lab=#net30}
N 2510 20 2550 20 { lab=Vs9}
N 2510 20 2510 60 { lab=Vs9}
N 2190 20 2510 20 { lab=Vs9}
N 2510 120 2510 150 { lab=GND}
N 2560 160 2560 170 { lab=GND}
N 2510 160 2560 160 { lab=GND}
N 2650 230 2720 230 { lab=Vctrl2_n}
N 2650 230 2720 230 { lab=Vctrl2_n}
N 2410 230 2510 230 { lab=#net31}
N 2550 230 2590 230 { lab=#net32}
N 2310 230 2350 230 { lab=GND}
N 2510 160 2510 200 { lab=GND}
N 2160 280 2510 280 { lab=Vs12}
N 2510 260 2510 280 { lab=Vs12}
N 2610 280 2640 280 { lab=#net33}
N 2510 280 2550 280 { lab=Vs12}
N 1930 320 1930 350 { lab=GND}
N 1930 410 1930 520 { lab=#net34}
N 1930 560 1930 590 { lab=#net35}
N 1930 650 1930 720 { lab=Vctrl3_n}
N 1930 650 1930 720 { lab=Vctrl3_n}
N 1640 280 1640 520 { lab=Vd12}
N 1640 520 1900 520 { lab=Vd12}
N 2240 280 2240 520 { lab=Vs12}
N 1960 520 2240 520 { lab=Vs12}
N 760 -200 760 -180 { lab=GND}
N 1210 -120 1210 -100 { lab=GND}
N 1320 -190 1320 -170 { lab=GND}
N 1750 -120 1750 -100 { lab=GND}
N 2070 -170 2070 -150 { lab=GND}
N 2510 -100 2510 -80 { lab=GND}
N 2590 -170 2590 -150 { lab=GND}
N 3420 -110 3420 -90 { lab=GND}
N 1700 -50 1700 20 { lab=Vd9}
N 1310 30 1310 60 { lab=Vd9}
N 370 -10 500 -10 { lab=Vsw1}
N 370 310 500 310 { lab=Vsw2}
N 730 320 730 370 { lab=#net12}
N 1310 250 1310 280 { lab=Vd12}
N 3550 310 3630 310 { lab=#net36}
N 3550 -10 3630 -10 { lab=#net37}
N 3530 30 3560 30 { lab=GND}
N 3660 -10 3660 60 { lab=#net38}
N 3660 150 3660 170 { lab=GND}
N 3660 230 3660 310 { lab=#net39}
N 3660 60 3660 80 { lab=#net38}
N 3660 140 3660 150 { lab=GND}
N 3370 60 3370 80 { lab=GND}
N 3590 150 3590 160 { lab=GND}
N 3590 150 3660 150 { lab=GND}
N 3550 310 3550 380 { lab=#net36}
N 3660 350 3660 380 { lab=#net40}
N 3750 310 3750 380 { lab=#net41}
N 3660 -180 3660 -150 { lab=#net42}
N 3550 -90 3550 -10 { lab=#net37}
N 3660 -90 3660 -50 { lab=#net43}
N 3750 -90 3750 -10 { lab=#net44}
N 3660 -290 3790 -290 { lab=#net45}
N 3660 -290 3660 -260 { lab=#net45}
N 3550 -290 3660 -290 { lab=#net45}
N 3550 -290 3550 -150 { lab=#net45}
N 3750 -290 3750 -150 { lab=#net45}
N 3660 620 3810 620 { lab=#net46}
N 3660 580 3660 620 { lab=#net46}
N 3660 440 3660 500 { lab=#net47}
N 3750 440 3750 620 { lab=#net46}
N 3550 620 3660 620 { lab=#net46}
N 3550 440 3550 620 { lab=#net46}
N 3870 -290 3940 -290 { lab=Vctrl}
N 3170 30 3240 30 { lab=Vctrl_n}
N 3890 620 3960 620 { lab=Vctrl_n}
N 3750 -10 3750 20 { lab=#net44}
N 3370 30 3470 30 { lab=#net48}
N 3300 30 3330 30 { lab=#net49}
N 3270 -10 3370 -10 { lab=#net37}
N 3370 -10 3370 0 { lab=#net37}
N 3370 -10 3550 -10 { lab=#net37}
N 3690 -10 3750 -10 { lab=#net44}
N 2700 -10 2840 -10 { lab=Vsw4}
N 2700 -10 2700 20 { lab=Vsw4}
N 3750 150 3790 150 { lab=#net50}
N 3750 80 3750 150 { lab=#net50}
N 3750 150 3750 170 { lab=#net50}
N 3750 170 3750 220 { lab=#net50}
N 3750 280 3750 310 { lab=#net41}
N 3530 260 3560 260 { lab=GND}
N 3370 290 3370 310 { lab=#net36}
N 3170 260 3240 260 { lab=Vctrl}
N 3370 260 3470 260 { lab=#net51}
N 3300 260 3330 260 { lab=#net52}
N 3370 220 3370 230 { lab=GND}
N 3370 200 3370 220 { lab=GND}
N 3370 310 3550 310 { lab=#net36}
N 3290 310 3370 310 { lab=#net36}
N 3270 310 3290 310 { lab=#net36}
N 2700 310 2840 310 { lab=Vsw3}
N 2700 280 2700 310 { lab=Vsw3}
N 3960 250 3960 290 { lab=GND}
N 3960 150 3960 190 { lab=Vout}
N 3850 150 3960 150 { lab=Vout}
N -330 150 -330 240 { lab=Vin}
N -330 300 -330 320 { lab=GND}
N 240 -220 240 -190 { lab=Vctrl}
N 660 -290 660 -260 { lab=Vctrl_n}
N 760 -290 760 -260 { lab=Vctrl1}
N 1210 -210 1210 -180 { lab=Vctrl1_n}
N 1320 -280 1320 -250 { lab=Vctrl2}
N 1750 -210 1750 -180 { lab=Vctrl2_n}
N 2070 -260 2070 -230 { lab=Vctrl3}
N 2510 -190 2510 -160 { lab=Vctrl3_n}
N 2590 -260 2590 -230 { lab=Vctrl4}
N 3420 -200 3420 -170 { lab=Vctrl4_n}
N 3690 310 3750 310 { lab=#net41}
N -290 -80 -290 -60 { lab=GND}
N -290 -170 -290 -140 { lab=VCC}
N 980 90 980 110 { lab=GND}
N 980 -10 980 30 { lab=#net15}
N 980 180 980 210 { lab=GND}
N 980 270 980 310 { lab=#net17}
N 2720 410 2720 430 { lab=GND}
N 2720 310 2720 350 { lab=Vsw3}
N 2720 -140 2720 -110 { lab=GND}
N 2720 -50 2720 -10 { lab=Vsw4}
N 690 90 690 110 { lab=GND}
N 690 -10 690 30 { lab=#net11}
N 2900 -10 2950 -10 { lab=#net53}
N 2900 310 3080 310 { lab=#net54}
N 2970 310 2970 320 { lab=#net54}
N 2970 430 2970 450 { lab=GND}
N 3010 -10 3080 -10 { lab=#net55}
N 2970 320 2970 370 { lab=#net54}
N 3140 -10 3210 -10 { lab=#net56}
N 3140 310 3210 310 { lab=#net57}
N 3040 90 3040 110 { lab=GND}
N 3040 -10 3040 30 { lab=#net55}
N -230 150 -180 150 { lab=#net58}
N -330 150 -290 150 { lab=Vin}
C {sky130_fd_pr/nfet_01v8_lvt.sym} 30 -30 3 1 {name=M1
L=0.18
W=10
nf=1
mult=1
ad=0
pd=0
as=0
ps=0
nrd=0 nrs=0
sa=0 sb=0 sd=0
model=nfet_01v8_lvt
spiceprefix=X
}
C {sky130_fd_pr/nfet_01v8_lvt.sym} 290 20 0 1 {name=M2
L=0.18
W=3
nf=1
mult=1
ad=0
pd=0
as=0
ps=0
nrd=0 nrs=0
sa=0 sb=0 sd=0
model=nfet_01v8_lvt
spiceprefix=X
}
C {sky130_fd_pr/nfet_01v8_lvt.sym} 290 280 2 0 {name=M3
L=0.18
W=3
nf=1
mult=1
ad=0
pd=0
as=0
ps=0
nrd=0 nrs=0
sa=0 sb=0 sd=0
model=nfet_01v8_lvt
spiceprefix=X
}
C {sky130_fd_pr/nfet_01v8_lvt.sym} 30 330 3 0 {name=M4
L=0.18
W=10
nf=1
mult=1
ad=0
pd=0
as=0
ps=0
nrd=0 nrs=0
sa=0 sb=0 sd=0
model=nfet_01v8_lvt
spiceprefix=X
}
C {devices/ind.sym} -80 50 0 0 {name=L1
m=1
value=510p
footprint=1206
device=inductor}
C {devices/ind.sym} -80 260 0 0 {name=L2
m=1
value=510p
footprint=1206
device=inductor}
C {devices/gnd.sym} 100 280 1 1 {name=l1 lab=GND}
C {devices/gnd.sym} 100 20 1 0 {name=l2 lab=GND}
C {devices/res.sym} 30 110 0 0 {name=R3
value=11k
footprint=1206
device=resistor
m=1}
C {devices/res.sym} 30 200 0 0 {name=R4
value=11k
footprint=1206
device=resistor
m=1}
C {devices/res.sym} 160 20 1 0 {name=R2
value=11k
footprint=1206
device=resistor
m=1}
C {devices/res.sym} 150 280 3 0 {name=R1
value=11k
footprint=1206
device=resistor
m=1}
C {devices/gnd.sym} 270 70 0 1 {name=l3 lab=GND}
C {devices/gnd.sym} 270 220 2 0 {name=l4 lab=GND}
C {devices/gnd.sym} 100 160 0 0 {name=l5 lab=GND}
C {devices/res.sym} -80 410 0 1 {name=R5
value=20k
footprint=1206
device=resistor
m=1}
C {devices/res.sym} 30 410 0 1 {name=R6
value=14k
footprint=1206
device=resistor
m=1}
C {devices/res.sym} 120 410 0 0 {name=R7
value=100
footprint=1206
device=resistor
m=1}
C {devices/res.sym} -80 -120 0 1 {name=R8
value=20k
footprint=1206
device=resistor
m=1}
C {devices/res.sym} 30 -120 0 1 {name=R9
value=14k
footprint=1206
device=resistor
m=1}
C {devices/res.sym} 120 -120 0 0 {name=R10
value=100
footprint=1206
device=resistor
m=1}
C {sky130_stdcells/inv_16.sym} 30 -220 1 0 {name=x1 VGND=GND VNB=GND VPB=VCC VPWR=VCC prefix=sky130_fd_sc_hd__ }
C {sky130_stdcells/inv_16.sym} 200 -290 2 0 {name=x2 VGND=GND VNB=GND VPB=VCC VPWR=VCC prefix=sky130_fd_sc_hd__ }
C {sky130_stdcells/inv_16.sym} 30 540 3 0 {name=x3 VGND=GND VNB=GND VPB=VCC VPWR=VCC prefix=sky130_fd_sc_hd__ }
C {sky130_stdcells/inv_16.sym} 220 620 2 0 {name=x4 VGND=GND VNB=GND VPB=VCC VPWR=VCC prefix=sky130_fd_sc_hd__ }
C {devices/res.sym} 400 20 1 0 {name=R11
value=14k
footprint=1206
device=resistor
m=1}
C {devices/res.sym} 400 280 1 1 {name=R12
value=14k
footprint=1206
device=resistor
m=1}
C {devices/capa.sym} -150 150 1 0 {name=C1
m=1
value=3.2p
footprint=1206
device="ceramic capacitor"}
C {devices/capa.sym} 340 310 1 0 {name=C2
m=1
value=3.2p
footprint=1206
device="ceramic capacitor"}
C {devices/capa.sym} 340 -10 1 1 {name=C3
m=1
value=3.2p
footprint=1206
device="ceramic capacitor"}
C {devices/vsource.sym} 240 -160 0 0 {name=Vctrl value="AC 1 DC 1.8"}
C {devices/gnd.sym} 240 -110 0 0 {name=l6 lab=GND}
C {devices/lab_pin.sym} 240 -220 0 1 {name=l7 sig_type=std_logic lab=Vctrl}
C {devices/vsource.sym} 660 -230 0 1 {name=Vctrl_n value="AC 1 DC 0"}
C {devices/gnd.sym} 660 -180 0 1 {name=l8 lab=GND}
C {devices/lab_pin.sym} 660 -290 0 0 {name=l9 sig_type=std_logic lab=Vctrl_n}
C {devices/lab_wire.sym} 310 -290 0 0 {name=l10 sig_type=std_logic lab=Vctrl}
C {devices/lab_wire.sym} 500 280 0 0 {name=l11 sig_type=std_logic lab=Vctrl}
C {devices/lab_wire.sym} 330 620 0 0 {name=l13 sig_type=std_logic lab=Vctrl_n}
C {devices/ind.sym} 630 -10 1 0 {name=L3
m=1
value=170p
footprint=1206
device=inductor}
C {devices/ind.sym} 630 310 1 0 {name=L4
m=1
value=100p
footprint=1206
device=inductor}
C {devices/capa.sym} 730 400 0 0 {name=C4
m=1
value=80f
footprint=1206
device="ceramic capacitor"}
C {devices/capa.sym} 740 -10 1 1 {name=C5
m=1
value=3p
footprint=1206
device="ceramic capacitor"}
C {devices/gnd.sym} 730 450 0 1 {name=l14 lab=GND}
C {devices/ind.sym} 870 -10 1 0 {name=L5
m=1
value=170p
footprint=1206
device=inductor}
C {devices/ind.sym} 870 310 1 0 {name=L6
m=1
value=100p
footprint=1206
device=inductor}
C {devices/capa.sym} 1110 -10 1 1 {name=C6
m=1
value=3.2p
footprint=1206
device="ceramic capacitor"}
C {devices/ind.sym} 1230 -10 1 0 {name=L7
m=1
value=510p
footprint=1206
device=inductor}
C {devices/capa.sym} 1110 310 1 1 {name=C7
m=1
value=3.2p
footprint=1206
device="ceramic capacitor"}
C {devices/ind.sym} 1230 310 1 0 {name=L8
m=1
value=510p
footprint=1206
device=inductor}
C {sky130_fd_pr/nfet_01v8_lvt.sym} 1290 90 0 0 {name=M5
L=0.18
W=10
nf=1
mult=39
ad=0
pd=0
as=0
ps=0
nrd=0 nrs=0
sa=0 sb=0 sd=0
model=nfet_01v8_lvt
spiceprefix=X
}
C {devices/res.sym} 1170 90 1 0 {name=R13
value=20k
footprint=1206
device=resistor
m=1}
C {devices/lab_wire.sym} 1070 90 0 1 {name=l15 sig_type=std_logic lab=Vctrl1}
C {devices/res.sym} 1450 90 1 0 {name=R14
value=14k
footprint=1206
device=resistor
m=1}
C {devices/gnd.sym} 1510 90 3 1 {name=l16 lab=GND}
C {sky130_fd_pr/nfet_01v8_lvt.sym} 1290 220 2 1 {name=M6
L=0.18
W=10
nf=1
mult=39
ad=0
pd=0
as=0
ps=0
nrd=0 nrs=0
sa=0 sb=0 sd=0
model=nfet_01v8_lvt
spiceprefix=X
}
C {devices/res.sym} 1450 220 1 0 {name=R15
value=14k
footprint=1206
device=resistor
m=1}
C {devices/gnd.sym} 1510 220 3 1 {name=l17 lab=GND}
C {devices/gnd.sym} 1260 160 0 1 {name=l18 lab=GND}
C {devices/res.sym} 1170 220 1 1 {name=R16
value=20k
footprint=1206
device=resistor
m=1}
C {devices/lab_wire.sym} 1070 220 0 1 {name=l19 sig_type=std_logic lab=Vctrl1_n}
C {sky130_fd_pr/nfet_01v8_lvt.sym} 1680 160 0 0 {name=M7
L=0.18
W=10
nf=1
mult=47
ad=0
pd=0
as=0
ps=0
nrd=0 nrs=0
sa=0 sb=0 sd=0
model=nfet_01v8_lvt
spiceprefix=X
}
C {devices/res.sym} 1590 160 1 0 {name=R17
value=20k
footprint=1206
device=resistor
m=1}
C {devices/lab_wire.sym} 1490 160 0 1 {name=l20 sig_type=std_logic lab=Vctrl4_n}
C {devices/res.sym} 1840 160 1 1 {name=R18
value=14k
footprint=1206
device=resistor
m=1}
C {devices/gnd.sym} 1900 160 3 1 {name=l21 lab=GND}
C {devices/gnd.sym} 1960 160 1 0 {name=l22 lab=GND}
C {devices/res.sym} 2020 160 1 1 {name=R19
value=14k
footprint=1206
device=resistor
m=1}
C {sky130_fd_pr/nfet_01v8_lvt.sym} 2180 160 0 1 {name=M8
L=0.18
W=10
nf=1
mult=47
ad=0
pd=0
as=0
ps=0
nrd=0 nrs=0
sa=0 sb=0 sd=0
model=nfet_01v8_lvt
spiceprefix=X
}
C {sky130_fd_pr/nfet_01v8_lvt.sym} 1930 -70 3 1 {name=M9
L=0.18
W=10
nf=1
mult=60
ad=0
pd=0
as=0
ps=0
nrd=0 nrs=0
sa=0 sb=0 sd=0
model=nfet_01v8_lvt
spiceprefix=X
}
C {devices/res.sym} 1930 70 0 1 {name=R20
value=14k
footprint=1206
device=resistor
m=1}
C {devices/gnd.sym} 1930 120 0 0 {name=l23 lab=GND}
C {devices/res.sym} 1930 -150 2 0 {name=R21
value=20k
footprint=1206
device=resistor
m=1}
C {devices/res.sym} 2270 160 1 0 {name=R22
value=20k
footprint=1206
device=resistor
m=1}
C {devices/lab_wire.sym} 2370 160 0 0 {name=l24 sig_type=std_logic lab=Vctrl4}
C {devices/lab_wire.sym} 1930 -250 1 1 {name=l25 sig_type=std_logic lab=Vctrl3}
C {devices/capa.sym} 2670 20 3 0 {name=C8
m=1
value=3.2p
footprint=1206
device="ceramic capacitor"}
C {devices/ind.sym} 2580 20 3 0 {name=L9
m=1
value=510p
footprint=1206
device=inductor}
C {sky130_fd_pr/nfet_01v8_lvt.sym} 2530 90 0 1 {name=M10
L=0.18
W=10
nf=1
mult=39
ad=0
pd=0
as=0
ps=0
nrd=0 nrs=0
sa=0 sb=0 sd=0
model=nfet_01v8_lvt
spiceprefix=X
}
C {devices/res.sym} 2620 90 3 1 {name=R23
value=20k
footprint=1206
device=resistor
m=1}
C {devices/res.sym} 2380 90 3 0 {name=R24
value=14k
footprint=1206
device=resistor
m=1}
C {devices/gnd.sym} 2310 90 1 0 {name=l26 lab=GND}
C {devices/lab_wire.sym} 2720 90 0 0 {name=l29 sig_type=std_logic lab=Vctrl2}
C {devices/gnd.sym} 2560 170 0 0 {name=l30 lab=GND}
C {sky130_fd_pr/nfet_01v8_lvt.sym} 2530 230 2 0 {name=M11
L=0.18
W=10
nf=1
mult=39
ad=0
pd=0
as=0
ps=0
nrd=0 nrs=0
sa=0 sb=0 sd=0
model=nfet_01v8_lvt
spiceprefix=X
}
C {devices/res.sym} 2620 230 1 1 {name=R25
value=20k
footprint=1206
device=resistor
m=1}
C {devices/res.sym} 2380 230 3 0 {name=R26
value=14k
footprint=1206
device=resistor
m=1}
C {devices/gnd.sym} 2310 230 1 0 {name=l27 lab=GND}
C {devices/lab_wire.sym} 2720 230 0 0 {name=l28 sig_type=std_logic lab=Vctrl2_n}
C {devices/capa.sym} 2670 280 1 0 {name=C9
m=1
value=3.2p
footprint=1206
device="ceramic capacitor"}
C {devices/ind.sym} 2580 280 1 0 {name=L10
m=1
value=510p
footprint=1206
device=inductor}
C {sky130_fd_pr/nfet_01v8_lvt.sym} 1930 540 3 0 {name=M12
L=0.18
W=10
nf=1
mult=60
ad=0
pd=0
as=0
ps=0
nrd=0 nrs=0
sa=0 sb=0 sd=0
model=nfet_01v8_lvt
spiceprefix=X
}
C {devices/res.sym} 1930 380 0 1 {name=R27
value=14k
footprint=1206
device=resistor
m=1}
C {devices/gnd.sym} 1930 320 2 0 {name=l31 lab=GND}
C {devices/res.sym} 1930 620 2 1 {name=R28
value=20k
footprint=1206
device=resistor
m=1}
C {devices/lab_wire.sym} 1930 720 3 1 {name=l32 sig_type=std_logic lab=Vctrl3_n}
C {devices/vsource.sym} 760 -230 0 0 {name=Vctrl1 value="AC 1 DC 0"}
C {devices/gnd.sym} 760 -180 0 0 {name=l33 lab=GND}
C {devices/lab_pin.sym} 760 -290 0 1 {name=l34 sig_type=std_logic lab=Vctrl1}
C {devices/vsource.sym} 1210 -150 0 1 {name=Vctrl1_n value="AC 1 DC 1.8"}
C {devices/gnd.sym} 1210 -100 0 1 {name=l35 lab=GND}
C {devices/lab_pin.sym} 1210 -210 0 0 {name=l36 sig_type=std_logic lab=Vctrl1_n}
C {devices/vsource.sym} 1320 -220 0 0 {name=Vctrl2 value="AC 1 DC 0"}
C {devices/gnd.sym} 1320 -170 0 0 {name=l37 lab=GND}
C {devices/lab_pin.sym} 1320 -280 0 1 {name=l38 sig_type=std_logic lab=Vctrl2}
C {devices/vsource.sym} 1750 -150 0 1 {name=Vctrl2_n value="AC 1 DC 1.8"}
C {devices/gnd.sym} 1750 -100 0 1 {name=l39 lab=GND}
C {devices/lab_pin.sym} 1750 -210 0 0 {name=l40 sig_type=std_logic lab=Vctrl2_n}
C {devices/vsource.sym} 2070 -200 0 0 {name=Vctrl3 value="AC 1 DC 1.8"}
C {devices/gnd.sym} 2070 -150 0 0 {name=l41 lab=GND}
C {devices/lab_pin.sym} 2070 -260 0 1 {name=l42 sig_type=std_logic lab=Vctrl3}
C {devices/vsource.sym} 2510 -130 0 1 {name=Vctrl3_n value="AC 1 DC 0"}
C {devices/gnd.sym} 2510 -80 0 1 {name=l43 lab=GND}
C {devices/lab_pin.sym} 2510 -190 0 0 {name=l44 sig_type=std_logic lab=Vctrl3_n}
C {devices/vsource.sym} 2590 -200 0 0 {name=Vctrl4 value="AC 1 DC 0"}
C {devices/gnd.sym} 2590 -150 0 0 {name=l45 lab=GND}
C {devices/lab_pin.sym} 2590 -260 0 1 {name=l46 sig_type=std_logic lab=Vctrl4}
C {devices/vsource.sym} 3420 -140 0 1 {name=Vctrl4_n value="AC 1 DC 0"}
C {devices/gnd.sym} 3420 -90 0 1 {name=l47 lab=GND}
C {devices/lab_pin.sym} 3420 -200 0 0 {name=l48 sig_type=std_logic lab=Vctrl4_n}
C {devices/lab_wire.sym} 450 20 2 0 {name=l12 sig_type=std_logic lab=Vctrl_n}
C {sky130_fd_pr/nfet_01v8_lvt.sym} 3660 -30 3 1 {name=M13
L=0.18
W=10
nf=1
mult=1
ad=0
pd=0
as=0
ps=0
nrd=0 nrs=0
sa=0 sb=0 sd=0
model=nfet_01v8_lvt
spiceprefix=X
}
C {sky130_fd_pr/nfet_01v8_lvt.sym} 3350 30 0 0 {name=M14
L=0.18
W=3
nf=1
mult=1
ad=0
pd=0
as=0
ps=0
nrd=0 nrs=0
sa=0 sb=0 sd=0
model=nfet_01v8_lvt
spiceprefix=X
}
C {sky130_fd_pr/nfet_01v8_lvt.sym} 3660 330 3 0 {name=M16
L=0.18
W=10
nf=1
mult=1
ad=0
pd=0
as=0
ps=0
nrd=0 nrs=0
sa=0 sb=0 sd=0
model=nfet_01v8_lvt
spiceprefix=X
}
C {devices/ind.sym} 3750 50 0 0 {name=L11
m=1
value=510p
footprint=1206
device=inductor}
C {devices/ind.sym} 3750 250 0 0 {name=L12
m=1
value=510p
footprint=1206
device=inductor}
C {devices/gnd.sym} 3560 30 3 1 {name=l50 lab=GND}
C {devices/res.sym} 3660 110 0 0 {name=R29
value=11k
footprint=1206
device=resistor
m=1}
C {devices/res.sym} 3660 200 0 0 {name=R30
value=11k
footprint=1206
device=resistor
m=1}
C {devices/res.sym} 3500 30 1 0 {name=R31
value=11k
footprint=1206
device=resistor
m=1}
C {devices/gnd.sym} 3370 80 0 1 {name=l51 lab=GND}
C {devices/gnd.sym} 3590 160 0 1 {name=l53 lab=GND}
C {devices/res.sym} 3550 410 0 1 {name=R33
value=100
footprint=1206
device=resistor
m=1}
C {devices/res.sym} 3660 410 0 1 {name=R34
value=14k
footprint=1206
device=resistor
m=1}
C {devices/res.sym} 3750 410 0 0 {name=R35
value=20k
footprint=1206
device=resistor
m=1}
C {devices/res.sym} 3550 -120 0 1 {name=R36
value=100
footprint=1206
device=resistor
m=1}
C {devices/res.sym} 3660 -120 0 1 {name=R37
value=14k
footprint=1206
device=resistor
m=1}
C {devices/res.sym} 3750 -120 0 0 {name=R38
value=20k
footprint=1206
device=resistor
m=1}
C {sky130_stdcells/inv_16.sym} 3660 -220 1 0 {name=x5 VGND=GND VNB=GND VPB=VCC VPWR=VCC prefix=sky130_fd_sc_hd__ }
C {sky130_stdcells/inv_16.sym} 3830 -290 2 0 {name=x6 VGND=GND VNB=GND VPB=VCC VPWR=VCC prefix=sky130_fd_sc_hd__ }
C {sky130_stdcells/inv_16.sym} 3660 540 3 0 {name=x7 VGND=GND VNB=GND VPB=VCC VPWR=VCC prefix=sky130_fd_sc_hd__ }
C {sky130_stdcells/inv_16.sym} 3850 620 2 0 {name=x8 VGND=GND VNB=GND VPB=VCC VPWR=VCC prefix=sky130_fd_sc_hd__ }
C {devices/res.sym} 3270 30 1 0 {name=R39
value=14k
footprint=1206
device=resistor
m=1}
C {devices/capa.sym} 3820 150 1 0 {name=C10
m=1
value=3.2p
footprint=1206
device="ceramic capacitor"}
C {devices/capa.sym} 3240 -10 1 1 {name=C12
m=1
value=3.2p
footprint=1206
device="ceramic capacitor"}
C {devices/lab_wire.sym} 3940 -290 0 0 {name=l54 sig_type=std_logic lab=Vctrl}
C {devices/lab_wire.sym} 3960 620 0 0 {name=l56 sig_type=std_logic lab=Vctrl_n}
C {devices/lab_wire.sym} 3230 30 2 1 {name=l57 sig_type=std_logic lab=Vctrl_n}
C {sky130_fd_pr/nfet_01v8_lvt.sym} 3350 260 2 1 {name=M15
L=0.18
W=3
nf=1
mult=1
ad=0
pd=0
as=0
ps=0
nrd=0 nrs=0
sa=0 sb=0 sd=0
model=nfet_01v8_lvt
spiceprefix=X
}
C {devices/gnd.sym} 3560 260 3 1 {name=l49 lab=GND}
C {devices/res.sym} 3500 260 3 0 {name=R32
value=11k
footprint=1206
device=resistor
m=1}
C {devices/gnd.sym} 3370 200 2 1 {name=l52 lab=GND}
C {devices/res.sym} 3270 260 3 0 {name=R40
value=14k
footprint=1206
device=resistor
m=1}
C {devices/capa.sym} 3240 310 3 1 {name=C11
m=1
value=3.2p
footprint=1206
device="ceramic capacitor"}
C {devices/lab_wire.sym} 3230 260 0 0 {name=l55 sig_type=std_logic lab=Vctrl}
C {devices/gnd.sym} 3960 290 0 0 {name=l58 lab=GND}
C {devices/vsource.sym} -330 270 0 1 {name=Vin value="dc 1.8 ac 1"}
C {devices/gnd.sym} -330 320 0 1 {name=l59 lab=GND}
C {devices/lab_pin.sym} -330 210 0 0 {name=l60 sig_type=std_logic lab=Vin}
C {devices/res.sym} 3960 220 0 0 {name=Rout
value=50
footprint=1206
device=resistor
m=1}
C {devices/code_shown.sym} 840 420 0 0 {name=s1 only_toplevel=false
value=".options savecurrents
.option wnflag=1
.option rshunt=1e11
.control
set ngbehaviour=hs
save all
op
ac dec 10 1MEG 100G
#tran 1n 1u
#plot Vctrl_n Vsw1+2 Vg1+4 Vs1+6 Vctrl+8 inv_x1_in+10
#plot Vd9 Vs9+2 Vd12+4 Vs12+6 Vsw3+8 Vsw4+10 Vctrl1+12 Vctrl2+14 Vctrl3+16 Vctrl4+18
plot Vin Vout
plot 180*cph(Vout)/pi
write phase_shifter.raw
.endc"}
C {devices/launcher.sym} 350 470 0 0 {name=h1
descr="sky130_models.tcl"
tclcommand="eval exec ~/xschem_sky130/scripts/sky130_models.tcl"}
C {devices/code.sym} 570 550 0 0 {name=s2 only_toplevel=false
format="tcleval(@value )"
value="
[sky130_models]
"}
C {devices/code.sym} 410 550 0 0 {name=TT_MODELS
only_toplevel=true
format="tcleval(@value )"
value="
.include \\\\$::SKYWATER_MODELS\\\\/cells/nfet_01v8/sky130_fd_pr__nfet_01v8__tt.corner.spice
.include \\\\$::SKYWATER_MODELS\\\\/cells/nfet_01v8_lvt/sky130_fd_pr__nfet_01v8_lvt__tt.corner.spice
.include \\\\$::SKYWATER_MODELS\\\\/cells/pfet_01v8/sky130_fd_pr__pfet_01v8__tt.corner.spice
.include \\\\$::SKYWATER_MODELS\\\\/cells/nfet_03v3_nvt/sky130_fd_pr__nfet_03v3_nvt__tt.corner.spice
.include \\\\$::SKYWATER_MODELS\\\\/cells/nfet_05v0_nvt/sky130_fd_pr__nfet_05v0_nvt__tt.corner.spice
.include \\\\$::SKYWATER_MODELS\\\\/cells/esd_nfet_01v8/sky130_fd_pr__esd_nfet_01v8__tt.corner.spice
.include \\\\$::SKYWATER_MODELS\\\\/cells/pfet_01v8_lvt/sky130_fd_pr__pfet_01v8_lvt__tt.corner.spice
.include \\\\$::SKYWATER_MODELS\\\\/cells/pfet_01v8_hvt/sky130_fd_pr__pfet_01v8_hvt__tt.corner.spice
.include \\\\$::SKYWATER_MODELS\\\\/cells/esd_pfet_g5v0d10v5/sky130_fd_pr__esd_pfet_g5v0d10v5__tt.corner.spice
.include \\\\$::SKYWATER_MODELS\\\\/cells/pfet_g5v0d10v5/sky130_fd_pr__pfet_g5v0d10v5__tt.corner.spice
.include \\\\$::SKYWATER_MODELS\\\\/cells/pfet_g5v0d16v0/sky130_fd_pr__pfet_g5v0d16v0__tt.corner.spice
.include \\\\$::SKYWATER_MODELS\\\\/cells/nfet_g5v0d10v5/sky130_fd_pr__nfet_g5v0d10v5__tt.corner.spice
.include \\\\$::SKYWATER_MODELS\\\\/cells/nfet_g5v0d16v0/sky130_fd_pr__nfet_g5v0d16v0__tt_discrete.corner.spice
.include \\\\$::SKYWATER_MODELS\\\\/cells/esd_nfet_g5v0d10v5/sky130_fd_pr__esd_nfet_g5v0d10v5__tt.corner.spice
.include \\\\$::SKYWATER_MODELS\\\\/models/corners/tt/nonfet.spice
* Mismatch parameters
.include \\\\$::SKYWATER_MODELS\\\\/cells/nfet_01v8/sky130_fd_pr__nfet_01v8__mismatch.corner.spice
.include \\\\$::SKYWATER_MODELS\\\\/cells/pfet_01v8/sky130_fd_pr__pfet_01v8__mismatch.corner.spice
.include \\\\$::SKYWATER_MODELS\\\\/cells/nfet_01v8_lvt/sky130_fd_pr__nfet_01v8_lvt__mismatch.corner.spice
.include \\\\$::SKYWATER_MODELS\\\\/cells/pfet_01v8_lvt/sky130_fd_pr__pfet_01v8_lvt__mismatch.corner.spice
.include \\\\$::SKYWATER_MODELS\\\\/cells/pfet_01v8_hvt/sky130_fd_pr__pfet_01v8_hvt__mismatch.corner.spice
.include \\\\$::SKYWATER_MODELS\\\\/cells/nfet_g5v0d10v5/sky130_fd_pr__nfet_g5v0d10v5__mismatch.corner.spice
.include \\\\$::SKYWATER_MODELS\\\\/cells/pfet_g5v0d10v5/sky130_fd_pr__pfet_g5v0d10v5__mismatch.corner.spice
.include \\\\$::SKYWATER_MODELS\\\\/cells/nfet_05v0_nvt/sky130_fd_pr__nfet_05v0_nvt__mismatch.corner.spice
.include \\\\$::SKYWATER_MODELS\\\\/cells/nfet_03v3_nvt/sky130_fd_pr__nfet_03v3_nvt__mismatch.corner.spice
* Resistor\\\\$::SKYWATER_MODELS\\\\/Capacitor
.include \\\\$::SKYWATER_MODELS\\\\/models/r+c/res_typical__cap_typical.spice
.include \\\\$::SKYWATER_MODELS\\\\/models/r+c/res_typical__cap_typical__lin.spice
* Special cells
.include \\\\$::SKYWATER_MODELS\\\\/models/corners/tt/specialized_cells.spice
* All models
.include \\\\$::SKYWATER_MODELS\\\\/models/all.spice
* Corner
.include \\\\$::SKYWATER_MODELS\\\\/models/corners/tt/rf.spice
"}
C {devices/lab_wire.sym} 3950 150 0 0 {name=l61 sig_type=std_logic lab=Vout}
C {devices/lab_wire.sym} 550 -10 0 0 {name=l62 sig_type=std_logic lab=Vsw1}
C {devices/lab_wire.sym} 510 310 2 0 {name=l63 sig_type=std_logic lab=Vsw2}
C {devices/lab_wire.sym} 30 370 0 1 {name=l64 sig_type=std_logic lab=Vg4}
C {devices/lab_wire.sym} 30 -60 0 1 {name=l65 sig_type=std_logic lab=Vg1}
C {devices/lab_wire.sym} 320 20 2 0 {name=l66 sig_type=std_logic lab=Vg2}
C {devices/lab_wire.sym} 320 280 0 1 {name=l67 sig_type=std_logic lab=Vg3}
C {devices/lab_wire.sym} 30 620 2 0 {name=l68 sig_type=std_logic lab=inv_x3_in}
C {devices/lab_wire.sym} 30 -290 0 0 {name=l69 sig_type=std_logic lab=inv_x1_in}
C {vsource.sym} -290 -110 0 1 {name=V5 value="1.8"}
C {gnd.sym} -290 -60 0 0 {name=l70 lab=GND}
C {lab_wire.sym} -290 -170 0 0 {name=l71 sig_type=std_logic lab=VCC}
C {devices/lab_pin.sym} 120 -60 0 1 {name=l72 sig_type=std_logic lab=Vs1}
C {devices/lab_wire.sym} 1580 -10 0 1 {name=l73 sig_type=std_logic lab=Vd9}
C {devices/lab_wire.sym} 1570 280 0 1 {name=l74 sig_type=std_logic lab=Vd12}
C {devices/lab_wire.sym} 2200 20 0 1 {name=l75 sig_type=std_logic lab=Vs9}
C {devices/lab_wire.sym} 2260 280 2 0 {name=l76 sig_type=std_logic lab=Vs12}
C {devices/lab_wire.sym} 2750 -10 0 1 {name=l77 sig_type=std_logic lab=Vsw4}
C {devices/lab_wire.sym} 2740 310 2 0 {name=l78 sig_type=std_logic lab=Vsw3}
C {devices/res.sym} 980 60 0 0 {name=R41
value=1e11
footprint=1206
device=resistor
m=1}
C {devices/gnd.sym} 980 110 0 1 {name=l79 lab=GND}
C {devices/res.sym} 980 240 0 0 {name=R42
value=1e11
footprint=1206
device=resistor
m=1}
C {devices/gnd.sym} 980 180 2 1 {name=l80 lab=GND}
C {devices/res.sym} 2720 380 0 0 {name=R43
value=1e11
footprint=1206
device=resistor
m=1}
C {devices/gnd.sym} 2720 430 0 1 {name=l81 lab=GND}
C {devices/res.sym} 2720 -80 0 0 {name=R44
value=1e11
footprint=1206
device=resistor
m=1}
C {devices/gnd.sym} 2720 -140 2 1 {name=l82 lab=GND}
C {devices/res.sym} 690 60 0 1 {name=R45
value=1e11
footprint=1206
device=resistor
m=1}
C {devices/gnd.sym} 690 110 0 0 {name=l83 lab=GND}
C {devices/ind.sym} 2870 -10 1 0 {name=L13
m=1
value=160p
footprint=1206
device=inductor}
C {devices/ind.sym} 2870 310 1 0 {name=L14
m=1
value=120p
footprint=1206
device=inductor}
C {devices/capa.sym} 2970 400 0 0 {name=C13
m=1
value=95f
footprint=1206
device="ceramic capacitor"}
C {devices/capa.sym} 2980 -10 1 1 {name=C14
m=1
value=1.6p
footprint=1206
device="ceramic capacitor"}
C {devices/gnd.sym} 2970 450 0 1 {name=l88 lab=GND}
C {devices/ind.sym} 3110 -10 1 0 {name=L15
m=1
value=160p
footprint=1206
device=inductor}
C {devices/ind.sym} 3110 310 1 0 {name=L16
m=1
value=120p
footprint=1206
device=inductor}
C {devices/res.sym} 3040 60 0 1 {name=R49
value=1e11
footprint=1206
device=resistor
m=1}
C {devices/gnd.sym} 3040 110 0 0 {name=l90 lab=GND}
C {devices/res.sym} -260 150 1 0 {name=R46
value=50
footprint=1206
device=resistor
m=1}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment