/* 

   This is for HP's CMOS26B 0.8 micron CMOS Bulk Process. 
   Just a scale of the other file

*/
#ifdef	extForSpice
style	lambda=0.4 
#else
style	lambda_irsim=0.4 
#endif

	lambda		40
	step		100
	sidehalo	8	/* 2 more than min m3 spacing */

#ifdef	INCLUDE_FET_CAP /* Normally off since neither spice or irsim need it */
	areacap allFet 692 /* af/lambda^2 */
#endif

	/* ------------   diff capacitances ---------------- */
	areacap	nwell			26
	perimc	nwell	~(nwell)	80 

#ifdef	extForSpice

	areacap	(ndiff,nsd,ndc,nsc)/a			0
	perimc	(ndiff,nsd,ndc,nsc)/a	space,pwell	0

	areacap	(pdiff,psd,pdc,psc)/a			0
	perimc	(pdiff,psd,pdc,psc)/a	space,nwell	0

#else	

	/* Real perim values increased a little to 
	   compensate for not counting CJGATE     */
	areacap	(ndiff,nsd,ndc,nsc)/a               26
	perimc	(ndiff,nsd,ndc,nsc)/a  space,pwell  240 

	areacap	(pdiff,psd,pdc,psc)/a               136
	perimc	(pdiff,psd,pdc,psc)/a  space,nwell  160 
#endif
	/* ------------------------------------------------------ */

	/* ------------   poly capacitances ---------------- */
	areacap	PolyCap			10
	overlap	PolyCap	allWell 	10	

	perimc	PolyCap	~PolyCap	18
	sideOverlap(PolyCap, ~PolyCap, allWell, 18,  )
	sideOverlap(PolyCap, ~PolyCap, M1Cap, 8,  )
	sideOverlap(PolyCap, ~PolyCap, M2Cap, 5, M1Cap)
	sideOverlap(PolyCap, ~PolyCap, M3Cap, 3, M1CapCommaM2Cap)

	sidewall PolyCap ~PolyCap ~PolyCap PolyCap	9
	/* ------------------------------------------------- */


	/* ------------   metal1 capacitances ---------------- */
	areacap	M1Cap			6
	overlap	M1Cap	allWell		6	PolyCap,PNplusCap
	overlap	M1Cap	PNplusCap		9	
	overlap	M1Cap	PolyCap		9	

	perimc	M1Cap	~M1Cap		18
	sideOverlap(M1Cap, ~M1Cap, allWell, 18, PolyCapCommaPNplusCap)
	sideOverlap(M1Cap, ~M1Cap, PNplusCap,  20,  )
	sideOverlap(M1Cap, ~M1Cap, PolyCap, 20,  )
	sideOverlap(M1Cap, ~M1Cap, M2Cap, 10,  )
	sideOverlap(M1Cap, ~M1Cap, M3Cap, 6, M2Cap)

	sidewall M1Cap   ~M1Cap   ~M1Cap   M1Cap	22
	/* ------------------------------------------------- */


	/* ------------   metal2 capacitances ---------------- */
	areacap	M2Cap		2.5	
	overlap	M2Cap	allWell	2.5	PolyCap,M1Cap,PNplusCap
	overlap	M2Cap	PNplusCap	3	M1Cap
	overlap	M2Cap	PolyCap	4	M1Cap
	overlap	M2Cap	M1Cap	6	

	perimc	M2Cap	~M2Cap	15
	sideOverlap(M2Cap, ~M2Cap, allWell, 15, M1CapCommaPolyCapCommaPNplusCap )
	sideOverlap(M2Cap, ~M2Cap, PNplusCap,  16, M1Cap)
	sideOverlap(M2Cap, ~M2Cap, PolyCap, 16, M1Cap)
	sideOverlap(M2Cap, ~M2Cap, M1Cap,   18,  )
	sideOverlap(M2Cap, ~M2Cap, M3Cap,   8,  )

	sidewall M2Cap   ~M2Cap   ~M2Cap   M2Cap	26
	/* ------------------------------------------------- */


	/* ------------   metal3 capacitances ---------------- */
	areacap	M3Cap		2	
	overlap	M3Cap	allWell	2 PolyCap,M1Cap,M2Cap,PNplusCap
	overlap	M3Cap	PNplusCap	2 M1Cap,M2Cap
	overlap	M3Cap	PolyCap	2 M1Cap,M2Cap
	overlap	M3Cap	M1Cap	3 M2Cap
	overlap	M3Cap	M2Cap	6

	perimc	M3Cap	~M3Cap	14
	sideOverlap(M3Cap, ~M3Cap, allWell, 14, PNplusCapCommaPolyCapCommaM1CapCommaM2Cap)
	sideOverlap(M3Cap, ~M3Cap, PNplusCap,  14, M1CapCommaM2Cap)
	sideOverlap(M3Cap, ~M3Cap, PolyCap, 14, M1CapCommaM2Cap)
	sideOverlap(M3Cap, ~M3Cap, M1Cap,   16, M2Cap)
	sideOverlap(M3Cap, ~M3Cap, M2Cap,   20,  )

	sidewall M3Cap   ~M3Cap   ~M3Cap   M3Cap	40
	/* ------------------------------------------------- */


	/* -------------- Fets -----------------------------*/
	    /* cscab, cscap defined since extresis needs them */
	fet	pfet	pdiff,pdc	2 pfet	Vdd!	nwell	204	450
	fet	nfet	ndiff,ndc	2 nfet	Gnd!	pwell	150	450

	/* These values are the equivalent resistance that irsim params for 
	   3.3 V 125C though. Probably we want to make that 5V, 27C  !!!! */
	fetresis	nfet	linear		14100 /* resistance dyn L */
	fetresis	pfet	linear		48100 /* resistance dyn H */

	fetresis	nfet	saturation	14100 /* resistance dyn L */
	fetresis	pfet	saturation	48100 /* resistance dyn H */
	/* ------------------------------------------------- */

	/* -------------- Resistivity (in milliohms per sq) -------*/
	/* ---- assumed temp 85 C -----  */

	resist	NDRes		3800
	resist	PDRes		3800
	resist	PolyRes		5000
	resist	M1Res		81
	resist	M2Res		81
	resist	M3Res		34
	resist	nwell		1980000

	contact	pc		4	15000
	contact	ndc,pdc,nsc,psc	4	1500
	contact	m2c		4	500
	contact	m3c		4	500
	/* ------------------------------------------------- */

	/* Order the planes for correct shielding */
	planeOrder(implant,0)
	planeOrder(well,1)
	planeOrder(active,2)
	planeOrder(metal1,3)
	planeOrder(metal2,4)
	planeOrder(metal3,5)
	planeOrder(oxide,6)
