| 1 |
.PS |
| 2 |
# TTLnand.m4 |
| 3 |
cct_init(svg_font(sans-serif,11bp__,1bp__)) |
| 4 |
|
| 5 |
up_ |
| 6 |
Q3: bi_tr |
| 7 |
"Q3" at Q3.E above ljust |
| 8 |
dot(at Q3.C); reversed(`diode',up_ dimen_/2) |
| 9 |
Q4: bi_tr with .E at Here |
| 10 |
"Q4" at Q4.E above ljust |
| 11 |
resistor(up_ dimen_ from Q4.C); rlabel(,`svg_norm(130 svg_ohm)') |
| 12 |
V: dot |
| 13 |
line left_ dimen_*0.75 from Q4.B; dot |
| 14 |
line left_ dimen_*0.75 from Q3.B; dot |
| 15 |
Q2: bi_tr(up_ Q4.B.y-Q3.B.y) with .E at Here |
| 16 |
"Q2" at 1/2 between Q2.E and Q2.C ljust |
| 17 |
resistor(from Q2.C to (Q2.C,V)); rlabel(,`svg_norm(1.6 k`'svg_ohm)'); dot |
| 18 |
resistor(from Q2.E down_ dimen_); llabel(,`svg_norm(1 k`'svg_ohm)') |
| 19 |
line to (Q4.E,Here) |
| 20 |
G: dot |
| 21 |
line to Q3.E |
| 22 |
line left_ dimen_/4 from Q2.B |
| 23 |
right_ |
| 24 |
Q1: bi_trans(,,BCdE2BU) with .C at Here |
| 25 |
"Q1" at Q1.Bulk above rjust |
| 26 |
resistor(up_ from Q1.B to (Q1.B,V)); rlabel(,svg_norm(4 k`'svg_ohm)) |
| 27 |
line to V |
| 28 |
|
| 29 |
line left dimen_ from Q1.E2 |
| 30 |
X1: dot; "X1" wid 0.2 rjust above at X1.w |
| 31 |
X2: dot(at (X1,Q3.C)); "X2" rjust at X2.w |
| 32 |
AA: line invis right dimen_ from X2 |
| 33 |
line from X2 to Intersect_(AA,Q1.Em1) then to Q1.E1 |
| 34 |
X3: dot(at 2 between X1 and X2); "X3" rjust below at X3.w |
| 35 |
AA: line invis right dimen_ from X3 |
| 36 |
line from X3 to Intersect_(AA,Q1.Em0) then to Q1.E0 |
| 37 |
|
| 38 |
W: X2+(dimen_/2,0) |
| 39 |
N: V+(0,dimen_/4) |
| 40 |
S: (N.x,N.y-2*(N.y-W.y)) |
| 41 |
line from V to 2 between V and N |
| 42 |
Vcc:dot; "+5 svg_norm(V)" ljust at Vcc.e |
| 43 |
line from G to (G,S) |
| 44 |
ground |
| 45 |
line from N to (W,N) then to (W,S) then to S |
| 46 |
arc rad N.y-W.y ccw to N with .c at 1/2 between N and S |
| 47 |
|
| 48 |
line right (N.y-S.y)/2+dimen_/2 from Q3.C |
| 49 |
Z: dot |
| 50 |
lw = 1.05 |
| 51 |
"svg_it(Z = svg_ol(X1 . X2 . X3))" wid lw ljust |
| 52 |
|
| 53 |
command "</g>" # end font |
| 54 |
.PE |