(*------------------------------------------------------------------------*)
DEFINITION MODULE GPAD;

FROM KERN IMPORT CELL,PORT,INST,NET ;

EXPORT QUALIFIED PadType, PadBus, PadRec, MakePadRec ;

TYPE     PadType = (pow,gnd,in,out,inout,hizout) ;
   
         PadBus = RECORD
                     vdd,vdiff,vss : PORT ;
                  END ;
   
         PadRec = RECORD
	             name   : ARRAY [0..15] OF CHAR ;
                     defn   : CELL ;
		     type   : PadType ;
		     netpad : NET  ;
                     pad    : PORT ;
		     vss,vdd: NET  ;
		     w,e    : PadBus  ;
                     nports : INTEGER ;
                     netn   : ARRAY [0..7] OF NET ;
                     n      : ARRAY [0..7] OF PORT
                  END ;

PROCEDURE MakePadRec (padname:ARRAY OF CHAR; pow:INTEGER; VAR ans:PadRec) ;

END GPAD.
(*------------------------------------------------------------------------*)
