Main Page   Class Hierarchy   Compound List   File List   Compound Members  

gdsdef.h

00001 /*
00002         Program GDSDEF.H
00003         Purpose Defines global constances for GDS files
00004         Programmers     R. Spekreijse & N. Noorlander
00005         Last Update     07-12-1995
00006 */
00007 
00008 #ifndef GDSDEFINES_H
00009 #define GDSDEFINES_H
00010 #ifdef __GNUG__
00011 #pragma interface
00012 #endif
00013 
00014 // constants for file i/o used by the written routines
00015 #define GDS_ERROR       -1
00016 
00017 // definition gdsii record constants:
00018 #define GDS_DEFAULT_STRING_LENGTH                                               44              // default size of and GDS-II string
00019 const int GDS_HEADERSIZE                          =                                     4;              // size of header
00020 #define GDSTYPE_TWO_G_BYTE_UNSIGNED_INTEGER                     7               // record contains 2 byte unsigned integers
00021 #define GDSTYPE_FOUR_G_BYTE_UNSIGNED_INTEGER                    8               // record contains 4 byte unsigned integers
00022 
00023 // gdsii data type constants:
00024 #define GDSTYPE_NO_DATA                                                                         0               // no data in record contained
00025 #define GDSTYPE_BIT_ARRAY                                                                       1               // record contains bitarray vars
00026 #define GDSTYPE_TWO_G_BYTE_SIGNED_INTEGER                               2               // record contains 2 byte integers
00027 #define GDSTYPE_FOUR_G_BYTE_SIGNED_INTEGER                      3               // record contains 4 byte integers
00028 #define GDSTYPE_FOUR_G_BYTE_REAL                                                        4               // record contains 4 byte reals
00029 #define GDSTYPE_EIGHT_G_BYTE_REAL                                       5               // record contains 8 byte reals
00030 #define GDSTYPE_ASCII_STRING                                                            6               // record contains GDSII ASCII-strings
00031 
00032 // gdsiifile recordtype constants:
00033 // see calma document
00034 #define GDS_HEADER                                                                                      0
00035 #define GDS_BGNLIB                                                                                      1
00036 #define GDS_LIBNAME                                                                                     2
00037 #define GDS_UNITS                                                                                               3
00038 #define GDS_ENDLIB                                                                                      4
00039 #define GDS_BGNSTR                                                                                      5
00040 #define GDS_STRNAME                                                                                     6
00041 #define GDS_ENDSTR                                                                                      7
00042 #define GDS_BOUNDARY                                                                                    8
00043 #define GDS_PATH                                                                                                9
00044 #define GDS_SREF                                                                                                10
00045 #define GDS_AREF                                                                                                11
00046 #define GDS_TEXT                                                                                                12
00047 #define GDS_LAYER                                                                                               13
00048 #define GDS_DATATYPE                                                                                    14
00049 #define GDS_WIDTH                                                                                               15
00050 #define GDS_XY                                                                                                  16
00051 #define GDS_ENDEL                                                                                               17
00052 #define GDS_SNAME                                                                                               18
00053 #define GDS_COLROW                                                                                      19
00054 #define GDS_TEXTNODE                                                                                    20
00055 #define GDS_NODE                                                                                                21
00056 #define GDS_TEXTTYPE                                                                                    22
00057 #define GDS_PRESENTATION                                                                        23
00058 #define GDS_SPACING                                                                                     24
00059 #define GDS_STRING                                                                                      25
00060 #define GDS_STRANS                                                                                      26
00061 #define GDS_MAG                                                                                         27
00062 #define GDS_ANGLE                                                                                               28
00063 #define GDS_UINTEGER                                                                                    29
00064 #define GDS_USTRING                                                                                     30
00065 #define GDS_REFLIBS                                                                                     31
00066 #define GDS_FONTS                                                                                               32
00067 #define GDS_PATHTYPE                                                                                    33
00068 #define GDS_GENERATIONS                                                                         34
00069 #define GDS_ATTRTABLE                                                                           35
00070 #define GDS_STYPTABLE                                                                           36
00071 #define GDS_STRTYPE                                                                                     37
00072 #define GDS_ELFLAGS                                                                                     38
00073 #define GDS_ELKEY                                                                                               39
00074 #define GDS_LINKTYPE                                                                                    40
00075 #define GDS_LINKKEYS                                                                                    41
00076 #define GDS_NODETYPE                                                                                    42
00077 #define GDS_PROPATTR                                                                                    43
00078 #define GDS_PROPVALUE                                                                           44
00079 #define GDS_BOX                                                                                         45
00080 #define GDS_BOXTYPE                                                                                     46
00081 #define GDS_PLEX                                                                                                47
00082 #define GDS_BGNEXTN                                                                                     48
00083 #define GDS_ENDEXTN                                                                                     49
00084 #define GDS_TAPENUM                                                                                     50
00085 #define GDS_TAPECODE                                                                                    51
00086 #define GDS_STRCLASS                                                                                    52
00087 #define GDS_RESERVED                                                                                    53
00088 #define GDS_FORMAT                                                                                      54
00089 #define GDS_MASK                                                                                                55
00090 #define GDS_ENDMASKS                                                                                    56
00091 // The following 3 items are from the Cadence Construct v4.0 GDS-extention
00092 //  and not part of the original GDS-II format (added for read compatibility)
00093 #define GDS_LIBDIRSIZE                                                                          57
00094 #define GDS_SRFNAME                                                                                     58
00095 #define GDS_LIBSECUR                                                                                    59
00096 
00097 #endif
00098 
gdsdef.h Source File -- Thu Nov 28 21:24:56 2002 -- 28 Nov 2002 -- 1.2.18 -- -- . -- Main Page