| 1 |
.PS |
| 2 |
# `fetDPV.m4' |
| 3 |
cct_init |
| 4 |
#.PS |
| 5 |
## `fetMan.m4' |
| 6 |
#cct_init |
| 7 |
|
| 8 |
textht = 0.1 |
| 9 |
|
| 10 |
dnl `IRF4905(linespec,R)' |
| 11 |
define(`IRF4905', |
| 12 |
`[ ifelse(`$1',,,`eleminit_(`$1')') |
| 13 |
Q: mosfet(,`$2',dMdPzEDSQdB,) ifelse(`$1',,` |
| 14 |
S: Q.tr_xy(-4,-2); line from Q.tr_xy(-2,-2) to S |
| 15 |
D: Q.tr_xy( 4,-2); line from Q.tr_xy(2,-2) to D', |
| 16 |
`with .Diode.c at last line.c |
| 17 |
S: last line.start; D: last line.end; line from S to D ') |
| 18 |
G: Q.G |
| 19 |
circle rad 5*dimen_/10 at Q.tr_xy(0,1) ]') |
| 20 |
|
| 21 |
# Wrappers for `mosfet'(...), drawing direction right |
| 22 |
define(`GSD', |
| 23 |
`"svg_it(G)" at J.G rjust above; "svg_it(S)" at J.S rjust; "svg_it(D)" at J.D ljust ') |
| 24 |
|
| 25 |
{move left_ 0.2; right_} |
| 26 |
Row1: [ J: j_fet |
| 27 |
{ "svg_tt(`j_fet')" at J.s+(0,-0.05) below; GSD } |
| 28 |
J: j_fet(right_ dimen_,,P,E) with .S at J.D+(0.5,0) |
| 29 |
{ "svg_tt(`j_fet(right_)')" "svg_tt(`dimen_,,P,E')" at J.s+(0,-13bp__) below |
| 30 |
GSD} |
| 31 |
J: e_fet with .S at J.D+(0.5,0) |
| 32 |
{ "svg_tt(` e_fet')" at J.s+(0,-0.05) below; GSD } |
| 33 |
J: e_fet(,,P) with .w at J.e+(0.5,0) |
| 34 |
{ "svg_tt(` e_fet(,,P)')" at J.s+(0,-0.2) below; GSD } |
| 35 |
J: e_fet(,,P,S) with .w at J.e+(0.5,0) |
| 36 |
{ "svg_tt(` e_fet(,,P,S)')" at J.s+(0,-0.05) below; GSD } |
| 37 |
J: c_fet with .w at J.e+(0.5,0) |
| 38 |
{ "svg_tt(` c_fet')" at J.s+(0,-0.2) below; GSD } |
| 39 |
J: c_fet(,,P) with .w at J.e+(0.5,0) |
| 40 |
{ "svg_tt(` c_fet(,,P)')" at J.s+(0,-0.05) below; GSD } |
| 41 |
] |
| 42 |
|
| 43 |
Row2: [ |
| 44 |
J: d_fet |
| 45 |
{ "svg_tt(`d_fet')" at J.s+(0,-0.05) below; GSD } |
| 46 |
J: d_fet(,,P) with .S at J.D+(0.5,0) |
| 47 |
{ "svg_tt(`d_fet(,,P)')" at J.s+(0,-0.2) below; GSD } |
| 48 |
J: d_fet(,,P,S) with .S at J.D+(0.5,0) |
| 49 |
{ "svg_tt(`d_fet(,,P,S)')" at J.s+(0,-0.05) below; GSD } |
| 50 |
J: g_fet with .G at J.G+(0.65,0) |
| 51 |
{ "svg_tt(`g_fet')" at J.s+(0,-0.1) below; GSD } |
| 52 |
J: g_fet(up_ dimen_,,P) with .D at J.G+(0.85,0) |
| 53 |
{ "svg_tt(`g_fet(up_')" at last [].s below |
| 54 |
"svg_tt( ` dimen_,,P)')" at last [].s + (0,-12bp__) below |
| 55 |
"svg_tt(G)" at last [].G rjust |
| 56 |
"svg_tt(S)" at last [].S + (0,2bp__) ljust |
| 57 |
"svg_tt(D)" at last [].D + (0,2bp__) ljust below } |
| 58 |
right_ |
| 59 |
J: Fe_fet with .G at J.D+(0.55,0) |
| 60 |
{"svg_tt(` Fe_fet')" at J.s+(0,-0.05) below; GSD } |
| 61 |
J: Fe_fet(,,TEDQSuB) with .S at J.D+(0.5,0) |
| 62 |
{"svg_tt(`...(,,TEDSQuB)')" at J.s+(0,-0.2) below; GSD |
| 63 |
thinlines_ |
| 64 |
arrow <- down .05 left .18 from (J.G.x,J.G.y-0.1) |
| 65 |
"svg_tt(T)" rjust |
| 66 |
thicklines_ } |
| 67 |
move right_ 0.6 |
| 68 |
up_ |
| 69 |
Q6: IRF4905 with .c at Here |
| 70 |
{"svg_tt(`IRF4905')" at Q6.s+(0,-0.0) below |
| 71 |
"svg_tt(G)" at Q6.G rjust |
| 72 |
"svg_tt(D)" at Q6.D ljust above |
| 73 |
"svg_tt(S)" at Q6.S ljust |
| 74 |
} |
| 75 |
] with .nw at Row1.sw+(0,-0.1) |
| 76 |
#.PE |
| 77 |
#.PS |
| 78 |
# `fetcompMan.m4' slightly modified |
| 79 |
#cct_init |
| 80 |
|
| 81 |
define(`elbox',`{R: box wid 4*m4_U ht 7*m4_U outlined "lightgray" thick 0.4 \ |
| 82 |
`$1'}') |
| 83 |
|
| 84 |
# The `mosfet' components |
| 85 |
Row3: [ |
| 86 |
movewid = 1mm__ |
| 87 |
right_ |
| 88 |
elbox |
| 89 |
Q: mosfet with .S at R.sw; {"svg_tt(`mosfet ')" at R.s below} |
| 90 |
elbox(with .w at R.e+(0.15,0)) |
| 91 |
Q: mosfet(,,uS) with .S at R.sw; {"svg_tt(uS)" at R.s below} |
| 92 |
dx = 0.10 |
| 93 |
foreach_(`opt', |
| 94 |
`elbox(with .w at R.e+(dx,0)) |
| 95 |
Q: mosfet(,,opt) with .S at R.sw; {"svg_tt(opt)" at R.s below}', |
| 96 |
D,dB,E,F,uG,dH,M,uM,dM,M1,uM2,M1Z,Q,R,dT,X) |
| 97 |
foreach_(`opt', |
| 98 |
`elbox(with .w at R.e+(dx,0)) |
| 99 |
Q: mosfet(,,opt) with .S at R.sw; {"svg_tt(opt)" at Q.s below}', |
| 100 |
K,OPy) |
| 101 |
] with .nw at Row2.sw+(0,-0.1) |
| 102 |
|
| 103 |
Row4: [ |
| 104 |
linewid = linewid*1.2 |
| 105 |
Q1: mosfet(,,dGSDF) |
| 106 |
{"svg_tt(`mosfet'(,,dGSDF))" wid 1.25 with .nw at last [].sw+(-0.2,-0.1) |
| 107 |
thinlines_ |
| 108 |
arrow <- down .05 left .15 from (Q1.G.x,Q1.G.y-0.05) |
| 109 |
"svg_tt(dG)" rjust |
| 110 |
arrow <- down .10 left .30 from Q1.Channel.start+(.15,0) |
| 111 |
"svg_tt(F)" rjust |
| 112 |
arrow <- down .05 left .15 from (Q1.S.x,Q1.S.y+0.05) |
| 113 |
"svg_tt(S)" rjust |
| 114 |
arrow <- down .05 right .15 from (Q1.D.x,Q1.D.y+0.05) |
| 115 |
"svg_tt(D)" ljust |
| 116 |
thicklines_ } |
| 117 |
|
| 118 |
move right_ 0.5 |
| 119 |
Q2: mosfet(,,uHSDF) |
| 120 |
{"svg_tt(`...'(,,uHSDF))" at last [].s+(0,-0.18) below |
| 121 |
thinlines_ |
| 122 |
arrow <- down .05 left .15 from (Q2.G.x,Q2.G.y-0.05) |
| 123 |
"svg_tt(uH)" rjust |
| 124 |
thicklines_ } |
| 125 |
|
| 126 |
move right_ 0.5 |
| 127 |
J: mosfet(,,dMEDSQuB,) |
| 128 |
{"svg_tt(`...'(,,dMEDSQuB))" at last [].s+(0,-0.05) below |
| 129 |
thinlines_ |
| 130 |
arrow <- down .05 left .15 from (J.G.x,J.G.y-0.05) |
| 131 |
"svg_tt(dM)" rjust |
| 132 |
arrow <- down .13 left .30 from J.Channel.start+(.12,0) |
| 133 |
"svg_tt(E)" rjust |
| 134 |
arrow <- down .05 left .10 from J.S+(.06,0) |
| 135 |
"svg_tt(Q)" rjust |
| 136 |
arrow <- down .08 right .24 from (J.B.x,J.B.y+0.175) |
| 137 |
"svg_tt(uB)" ljust |
| 138 |
thicklines_ } |
| 139 |
|
| 140 |
move right_ 0.5 |
| 141 |
J: mosfet(,,uMEDSuB) |
| 142 |
{"svg_tt(`...(,,uMEDSuB)')" at last [].s+(0,-0.18) below |
| 143 |
"svg_tt(G)" at last [].G rjust |
| 144 |
"svg_tt(S)" at last [].S rjust |
| 145 |
"svg_tt(D)" at last [].D ljust |
| 146 |
"svg_tt(B)" at last [].B below |
| 147 |
} |
| 148 |
move right_ 0.6 |
| 149 |
J: mosfet(,,dBSDFQM1,E) with .w at J.e+(0.5,0) |
| 150 |
"svg_tt(G0)" at J.G0 above rjust |
| 151 |
"svg_tt(G1)" at J.G1 above ljust |
| 152 |
{"svg_tt(...(,,dBSDFQM1,E))" at last [].s below } |
| 153 |
J: mosfet(,,dBSDFQuM1) with .nw at J.ne+(0.4,0) |
| 154 |
{ "svg_tt(G0)" at J.G0 ljust |
| 155 |
"svg_tt(G1)" at J.G1 rjust |
| 156 |
"svg_tt(...(,,dBSDFQuM1))" wid 1.25 with .n at last [].s+(0,-0.25) } |
| 157 |
move right_ 0.4 |
| 158 |
Q5: mosfet(,,ZSDFdT) |
| 159 |
{"svg_tt(`...'(,,ZSDFdT))" at last [].s below |
| 160 |
thinlines_ |
| 161 |
arrow <- down .08 left .08 from (Q5.S.x,Q5.S.y+0.12) |
| 162 |
"svg_tt(Z)" rjust |
| 163 |
arrow from last arrow.end to Q5.Channel.c+(0.05,0) |
| 164 |
arrow from last arrow.start to (Q5.D.x,Q5.D.y+.05) |
| 165 |
arrow <- down .08 right .24 from (Q5.G.x,Q5.G.y-0.02) |
| 166 |
"svg_tt(dT)" ljust |
| 167 |
thicklines_ } |
| 168 |
mosfet(,,SDFdT) with .w at last [].e+(0.4,0) |
| 169 |
{"svg_tt(...(,,SDFdT))" wid 72 bp__ at last [].s+(0,-0.15) below} |
| 170 |
] with .nw at last [].sw |
| 171 |
|
| 172 |
.PE |