.PS cct_init linewid = linewid*6/6.2435 command "{\sf" # `hybrid_PI_BJT( [R][M], U|D|L|R|degrees ) # drawn in current (or arg2) direction # R=right orientation; M=left-right mirror' define(`hybrid_PI_BJT', `[ setdir_(`$2'); hp_ang = rp_ang # Size (and orientation) parameters: hunit = ifinstr(`$1',M,-)dimen_ vunit = ifinstr(`$1',R,-)dimen_*3/2 dot; {line to rvec_(0,-vunit/2) Emitter: dot(,,1)} {R_pi: resistor(from rvec_(-hunit*5/8,0) to rvec_(-hunit*5/8,vunit)) point_(hp_ang); line to rvec_(-hunit/2,0) chop -lthick/2 chop 0 Base: dot(,,1)} {dot(at rvec_(hunit*5/4,vunit)); R_o: resistor(to rvec_(0,-vunit)) point_(hp_ang); line to R_pi.start chop -lthick/2} {dot(at rvec_(hunit*5/8,0)); CS: consource(to rvec_(0,vunit),I,R) point_(hp_ang); line to rvec_(hunit*9/8,0) chop -lthick/2 chop 0 Collector: dot(,,1)} # # Labels `"$\mathrm{r_\pi}$"' at R_pi.c+vec_(hunit/4,0) `"$ + $"' at R_pi.c+vec_(-hunit/6, vunit/4) `"$ - $"' at R_pi.c+vec_(-hunit/6,-vunit/4) `"$\mathrm{v_\pi}$"' at R_pi.c+vec_(-hunit/4,0) `"$\mathrm{g_m}$$\mathrm{v_\pi}$"' at CS.c+vec_(-hunit*3/8,-vunit/4) `"$\mathrm{r_o}$"' at R_o.c+vec_(hunit/4,0) `$3' ] ') [ Q: hybrid_PI_BJT "Base" at Q.Base +(0.15,0.1) "Emitter" ht 0.1 wid 0.5 at Q.Emitter.w rjust "Collector" ht 0.1 at Q.Collector +(-0.2,0.1) `"hybrid\_PI\_BJT"' ht 0.1 at Q.s+(0,-0.2) hybrid_PI_BJT(M) with .Collector at last [].Collector+(0.15,0) `"hybrid\_PI\_BJT(M)"' ht 0.1 at last [].s+(0,-0.2) hybrid_PI_BJT(R) with .w at last [].e `"hybrid\_PI\_BJT(R)"' ht 0.1 at last [].s+(0,-0.2) hybrid_PI_BJT(,45) with .w at last [].e+(0,10pt__) `"hybrid\_PI\_BJT(,45)"' ht 0.1 at last [].s+(0.2,-0.2) ] #print last [].wid command "}%" .PE