Debian Codegraph @

texmf-dist/doc/latex/circuit-macros/examples/TTLnand.m4

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