NAME

gdsdump2gds - creates a GDS2 file from an ASCII dumpgds file.

USAGE

gdsdump2gds [ options ] [gdsdump_file_to_read] [gds_file_to_create]

OPTIONS

-help
  print help and exit
  
-version
  print version and exit

EXAMPLE

gdsdump2gds test.dumpgds test.gds

LIMITATIONS:

Each GDS2 record must be on its own line.

FILE FORMAT

Backus-naur representation of GDS2 stream syntax:

################################################################################
#  <STREAM FORMAT>::= HEADER BGNLIB [LIBDIRSIZE] [SRFNAME] [LIBSECR]           #
#                     LIBNAME [REFLIBS] [FONTS] [ATTRTABLE] [GENERATIONS]      #
#                     [<FormatType>] UNITS {<structure>}* ENDLIB               #
#                                                                              #
#  <FormatType>::=    FORMAT | FORMAT {MASK}+ ENDMASKS                         #
#                                                                              #
#  <structure>::=     BGNSTR STRNAME [STRCLASS] {<element>}* ENDSTR            #
#                                                                              #
#  <element>::=       {<boundary> | <path> | <SREF> | <AREF> | <text> |        #
#                      <node> | <box} {<property>}* ENDEL                      #
#                                                                              #
#  <boundary>::=      BOUNDARY [ELFLAGS] [PLEX] LAYER DATATYPE XY              #
#                                                                              #
#  <path>::=          PATH [ELFLAGS] [PLEX] LAYER DATATYPE [PATHTYPE]          #
#                     [WIDTH] XY                                               #
#                                                                              #
#  <SREF>::=          SREF [ELFLAGS] [PLEX] SNAME [<strans>] XY                #
#                                                                              #
#  <AREF>::=          AREF [ELFLAGS] [PLEX] SNAME [<strans>] COLROW XY         #
#                                                                              #
#  <text>::=          TEXT [ELFLAGS] [PLEX] LAYER <textbody>                   #
#                                                                              #
#  <textbody>::=      TEXTTYPE [PRESENTATION] [PATHTYPE] [WIDTH] [<strans>] XY #
#                     STRING                                                   #
#                                                                              #
#  <strans>::=        STRANS [MAG] [ANGLE]                                     #
#                                                                              #
#  <node>::=          NODE [ELFLAGS] [PLEX] LAYER NODETYPE XY                  #
#                                                                              #
#  <box>::=           BOX [ELFLAGS] [PLEX] LAYER BOXTYPE XY                    #
#                                                                              #
#  <property>::=      PROPATTR PROPVALUE                                       #
################################################################################

example file

HEADER 3
BGNLIB 99 8 4 20 36 16  100 4 18 17 14 16
LIBNAME  'and2b'
UNITS  0.001 1e-09
BGNSTR  96 1 16 12 47 41  96 1 16 12 47 41
  STRNAME  'AND2B'
  BOUNDARY
    LAYER  10
    DATATYPE  0
    XY  8.2 -2.1  8.2 9.1  -2.1 9.1  -2.1 -2.1  8.2 -2.1
  ENDEL
  SREF
    SNAME  'FMARK'
    XY  0  0
  ENDEL
  TEXT
    LAYER  59
    TEXTTYPE  0
    PRESENTATION  0000000000001000
    PATHTYPE  0
    STRANS  0000000000000000
    MAG  0.1
    XY  2.05  1.4
    STRING  'VDD'
  ENDEL
  ENDSTR
BGNSTR  96 1 16 12 47 41  96 1 16 12 47 41
  STRNAME  'FMARK'
  PATH
    LAYER  0
    DATATYPE  0
    PATHTYPE  0
    WIDTH  0
    XY  -0.7 -0.7  1.4 1.4  2.8 1.4
  ENDEL
  PATH
    LAYER  0
    DATATYPE  0
    PATHTYPE  0
    WIDTH  0
    XY  -0.7 0.7  0.7 -0.7
  ENDEL
  PATH
    LAYER  0
    DATATYPE  0
    PATHTYPE  0
    WIDTH  0
    XY  0.7 0.7  1.75 0.7
  ENDEL
ENDSTR
ENDLIB