-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathq2_opamp_tb.sch
138 lines (131 loc) · 3.01 KB
/
q2_opamp_tb.sch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
v {xschem version=3.1.0 file_version=1.2 }
G {}
K {}
V {}
S {}
E {}
N 660 -120 660 -100 {
lab=GND}
N 740 -200 770 -200 {
lab=OUT}
N 640 -300 640 -280 {
lab=IBIAS}
N 690 -300 690 -280 {
lab=VDD}
N 90 -100 90 -90 {
lab=GND}
N 90 -110 90 -100 {
lab=GND}
N 90 -200 90 -170 {
lab=VDD}
N 160 -200 160 -170 {
lab=VDD}
N 160 -110 160 -80 {
lab=IBIAS}
N 340 -50 340 -40 {
lab=GND}
N 340 -60 340 -50 {
lab=GND}
N 340 -150 340 -120 {
lab=#net1}
N 560 -240 580 -240 {
lab=#net2}
N 770 -200 770 -170 {
lab=OUT}
N 770 -110 770 -70 {
lab=GND}
N 520 -240 560 -240 {
lab=#net2}
N 440 -210 440 -200 {
lab=#net1}
N 340 -170 340 -150 {
lab=#net1}
N 440 -200 440 -190 {
lab=#net1}
N 340 -180 340 -170 {
lab=#net1}
N 520 -160 580 -160 {
lab=#net3}
N 440 -130 440 -110 {
lab=#net3}
N 440 -290 440 -270 {
lab=#net2}
N 520 -270 520 -240 {
lab=#net2}
N 340 -200 340 -180 {
lab=#net1}
N 340 -200 440 -200 {
lab=#net1}
N 440 -290 520 -290 {
lab=#net2}
N 520 -290 520 -270 {
lab=#net2}
N 440 -110 520 -110 {
lab=#net3}
N 520 -160 520 -120 {
lab=#net3}
N 520 -120 520 -110 {
lab=#net3}
N 770 -200 850 -200 {
lab=OUT}
N 850 -200 850 -160 {
lab=OUT}
N 850 -100 850 -80 {
lab=GND}
N 770 -80 850 -80 {
lab=GND}
C {devices/code_shown.sym} 10 40 0 0 {name=NGSPICE
only_toplevel=true
value="
.control
save all
op
write q2_opamp_tb.raw
ac dec 10 1 10e9
set appendwrite
write q2_opamp_tb.raw
plot db(v(out)) 180*cph(v(out))/pi
.endc
"}
C {devices/code.sym} -460 40 0 0 {name=TT_MODELS
only_toplevel=true
format="tcleval( @value )"
value="
** opencircuitdesign pdks install
.lib $::SKYWATER_MODELS/sky130.lib.spice tt
"
spice_ignore=false}
C {devices/launcher.sym} -210 60 0 0 {name=h1
descr=Backannotate
tclcommand="ngspice::annotate"}
C {devices/launcher.sym} -210 100 0 0 {name=h2
descr="View Raw file"
tclcommand="textwindow $netlist_dir/five_T_OTA_TB.raw"}
C {q2_opamp.sym} 660 -200 0 0 {name=x1}
C {devices/gnd.sym} 660 -100 0 0 {name=l1 lab=GND}
C {devices/vsource.sym} 90 -140 0 0 {name=V1 value=1.2}
C {devices/isource.sym} 160 -140 0 0 {name=I0 value=12.5u}
C {devices/gnd.sym} 90 -90 0 0 {name=l2 lab=GND}
C {devices/vsource.sym} 440 -240 2 0 {name=V2 value="0 AC 0.1"}
C {devices/vsource.sym} 340 -90 0 0 {name=V3 value=0.688}
C {devices/gnd.sym} 340 -40 0 0 {name=l4 lab=GND}
C {devices/lab_pin.sym} 770 -200 2 0 {name=l5 sig_type=std_logic lab=OUT}
C {devices/lab_pin.sym} 640 -300 1 0 {name=l6 sig_type=std_logic lab=IBIAS}
C {devices/lab_pin.sym} 690 -300 1 0 {name=l7 sig_type=std_logic lab=VDD}
C {devices/lab_pin.sym} 90 -200 1 0 {name=l8 sig_type=std_logic lab=VDD}
C {devices/lab_pin.sym} 160 -200 1 0 {name=l9 sig_type=std_logic lab=VDD}
C {devices/lab_pin.sym} 160 -80 3 0 {name=l10 sig_type=std_logic lab=IBIAS}
C {devices/capa.sym} 770 -140 0 0 {name=C1
m=1
value=1p
footprint=1206
device="ceramic capacitor"}
C {devices/gnd.sym} 770 -70 0 0 {name=l19 lab=GND}
C {devices/spice_probe.sym} 760 -200 0 0 {name=p1 attrs=""
voltage=0.9004}
C {devices/vsource.sym} 440 -160 2 0 {name=V4 value="0 AC 0.1"}
C {devices/res.sym} 850 -130 0 0 {name=R1
value=1k
footprint=1206
device=resistor
m=1}