home *** CD-ROM | disk | FTP | other *** search
/ TopWare 18: Liquid / Image.iso / liquid / top1016 / lasi2csf.hlp < prev    next >
Text File  |  1994-01-14  |  17KB  |  354 lines

  1. ≡≡
  2.  
  3. Introduction
  4.  
  5.  Introduction
  6.  
  7.   LASI drawings are not very useful if they cannot be converted to a
  8.   commonly used CAD format, for mask generation or for transfer to another
  9.   CAD system. The most common is GDSII Calma Stream Format. Although Calma
  10.   drawing systems for ICs have become somewhat obsolete, the data format
  11.   survives, and most pattern generators accept it, and newer CAD systems
  12.   such as CADENCE or MENTOR can usually convert it. LASI can be converted
  13.   to Calma Stream Format (CSF) exactly, and from CSF with some limitations.
  14.  
  15.   LASI has a drawing structure that is very similar to the Calma drawing
  16.   system, with the exception that LASI has box objects and is more limited
  17.   in its data capacity and cell nesting depth. With LASI, cells are similar
  18.   to Calma structures, except that a definite rank is given to a cell. With
  19.   LASI there are no Calma boundary figures, instead there are zero width
  20.   paths usually called poly. LASI drawings transform easily into Calma
  21.   because a box can be made into a boundary, a poly can become a boundary
  22.   also, a path can transform directly into a path, and cells can easily
  23.   become structures, partly due to their ranked orderly nesting.
  24.  
  25.   Since LASI drawings are more or less a subset of Calma, conversion to
  26.   Calma is straightforward. More difficult is conversion from Calma to LASI
  27.   because there are things in Calma (like arrays) that don't exist in LASI
  28.   (yet). Conversion is possible in most cases if certain restrictions are
  29.   used in the original Calma drawing, such as limiting the structure
  30.   nesting or using only small arrays.
  31.  
  32. Conversion Programs
  33.  
  34.  Conversion Programs
  35.  
  36.   LASI2CSF.EXE is a new version of the program that converts a LASI drawing
  37.   directly into Calma Stream Format. You should erase any old LASI2CSF.SET
  38.   files that may have worked with older versions of the program. The setup
  39.   data is different.
  40.  
  41.   The file generated by LASI2CSF may be put on magtape if you have MS-DOS
  42.   to magtape capability, or more likely, be put on a floppy disk (in MS-DOS
  43.   file format) for reading by pattern generators or work stations that have
  44.   MS-DOS floppy reading capability.
  45.  
  46.   The CSF2TLC.EXE program will read back a CSF file and will construct a
  47.   LASI drawing in TLC form as best as possible. A drawing first done on
  48.   LASI will reconstruct exactly if returned from a Calma without having
  49.   been modified in some non-compatible way. Drawings made originally on
  50.   Calma may occasionally convert differently, since LASI presently doesn't
  51.   have such things as datatypes, texttypes, arrays or layer 0.
  52.  
  53.   CSF2TLC produces TLC files for good reason; there can be more or less an
  54.   infinite number of TLC files, so that a CSF file with almost any number
  55.   of structures can be converted to TLC files. The TLC files can then be
  56.   selectively converted into LASI drawings if necessary due to any LASI
  57.   object allocation limitations.
  58.  
  59. Running LASI2CSF.EXE
  60.  
  61.  Running LASI2CSF.EXE
  62.  
  63.   1. Run LASI2CSF.EXE in the drawing directory of the drawing to be
  64.      converted.
  65.  
  66.   2. LASI2CSF will start with the Conversion Setup page. It requires the
  67.      following setup entries:
  68.  
  69.    ■ The Name of the CSF file to be made. Include the ".CSF" extension in
  70.      the name, or any other extension, such as ".GDS". The name may also
  71.      include a path.
  72.  
  73.    ■ The Name of the CSF Drawing Library to be included in the converted
  74.      CSF file. This is usually for reference, since many applications don't
  75.      require this name.
  76.  
  77.    ■ The name of the Physical Scale Units in which the drawing has been
  78.      done. This can only be "um" or "mil", and will default to "um".
  79.  
  80.    ■ The Scale Unit LSB Correction. This needs some explanation. This
  81.      allows you to modify the Least Significant Bit of the scale numbers
  82.      placed in the CSF file. This is about 10e-16 of the actual scale, but
  83.      some conversion software (Cadence for instance) is fussy and requires
  84.      the exact bits. This will normally be 0. If you have trouble, try +1
  85.      or -1 and see if it fixes the problem.
  86.  
  87.    Note: This correction is applied to all 8 Byte Real numbers in the
  88.      stream format records. Currently this only affects the UNITS,
  89.      MAGNITUDE and ANGLE records.
  90.  
  91.    ■ The Number of CSF Units per Scale Unit that you want the CSF file to
  92.      be made with. This is typically 1000 units per micron, but can vary
  93.      with applications.
  94.  
  95.    ■ The Number of LASI Units per Scale Unit that you used to draw your
  96.      LASI layout drawing. This is the same as set by the "Scale" command
  97.      when you did your drawing using LASI.
  98.  
  99.    ■ The X and Y offsets to be added to the placement of the "main" cells
  100.      to be put in the CSF file. This allows you to shift your drawing in
  101.      the CSF file.
  102.  
  103.      This shift is only applied to cells listed in the Cells to Convert
  104.      list (see below). That is, any lesser cells that LASI2CSF also
  105.      generates are not shifted, since this would cause your drawing to be
  106.      hopelessly distorted.
  107.  
  108.      For example, you may make a LASI drawing using the whole LASI drawing
  109.      area so that you use negative coordinates, but a pattern generator
  110.      only accepts coordinates greater than or equal to zero, you can add
  111.      offsets equal to the most negative drawing coordinates, so that all
  112.      coordinates are positive.
  113.  
  114.    ■ The Datatype to use for boundaries, etc. This is a parameter that LASI
  115.      doesn't use. It can be 0-63; usually 0 is used.
  116.  
  117.    ■ The Convert Text switch. If you want to convert LASI text, set the
  118.      switch to "y". Otherwise, text will not be converted. Text conversion
  119.      is somewhat confusing because CSF has several attributes for its text.
  120.      This is explained below under Text Setup.
  121.  
  122.    ■ The Convert Names to Lowercase switch. Some systems into which LASI
  123.      can be converted use lowercase names for the Calma structure names.
  124.      You can have LASI2CSF convert any cell names to lowercase by setting
  125.      this parameter to "y". Normally this will be "n".
  126.  
  127.    ■ The Close Open Polgons switch. If the LASI drawing contains an open
  128.      polygon, it may be an intentional zero width path, or it may be a
  129.      mistake where a polygon has not been closed. You can optionally close
  130.      any open polygons or you can have them translated as a path with zero
  131.      width.
  132.  
  133.    ■ The Relocation Layer for layer 64. LASI uses layers 1-64, but Calma
  134.      uses 0-63. you can move anything on layer 64 to any Calma layer 0-63.
  135.      Usually 0 is convenient, but you must be sure that it is an unused
  136.      layer in your LASI drawing.
  137.  
  138.    ■ The Pause for Messages switch. As the conversion is done, certain
  139.      errors or suspicious things may be found. You can have the program
  140.      pause when anything is found so that you can read the message.
  141.      Otherwise, the messages will flash by too rapidly. If you know there
  142.      are no real errors, set the Pause for Messages switch to "n".
  143.  
  144.    ■ The Print a Report switch. You can have LASI2CSF print a report as it
  145.      converts. The report will be printed on the first MS-DOS system
  146.      printer or LPT1.
  147.  
  148.  
  149.   3. Press F2 to go to the Text Setup Page.
  150.  
  151.      Calma uses several attributes to construct text. You can relate these
  152.      to each of 4 LASI text sizes. The attributes that you use depend on
  153.      just how you want to distinguish different texts. Different
  154.      applications or conversions to other CAD systems will use different
  155.      attributes. Some experimentation will probably be necessary to convert
  156.      text reasonably correctly.
  157.  
  158.      If your drawing contains text with a size not listed, the text will be
  159.      converted with the attributes of the first size in the list.
  160.  
  161.      The parameters that LASI2CSF can set are:
  162.  
  163.      ■ Texttype, which can be 0 to 63.
  164.  
  165.      ■ Font, which can be 0 to 3.
  166.  
  167.      ■ Magnification, which can be used to change text size if the other
  168.        parameters produce text of the same size.
  169.  
  170.      ■ Text Width, which is usually 0, but may have to be set greater than
  171.        zero so that certain CAD systems will accept the text. This is in
  172.        CSF basic units and is limited from 0 to the size of the text in CSF
  173.        basic units.
  174.  
  175.      ■ Vertical Justification, which may be set to top, center and bottom.
  176.        LASI text is always left-bottom justified so normally you will set
  177.        this to bottom or "B".
  178.  
  179.  
  180.   4. Press F3 to go to the Cells to Convert Page.
  181.  
  182.      When converting, you are allowed to convert only certain cells to
  183.      Calma structures. This is useful when you have most of your structures
  184.      already in a Calma or other CAD system. You can list up to 20 cells by
  185.      name. The order or any gaps in the list are ignored.
  186.  
  187.      If converting only certain cells you may also have LASI2CSF look for
  188.      any lesser cells that may be in the listed cells, and convert them
  189.      too.
  190.  
  191.      You can bypass the list and have all cells converted by setting the
  192.      Convert All Cells switch to "y".
  193.  
  194.    Note: If you set this switch, any offsets in the Conversion Setup are
  195.      NOT applied to the cells that are converted unless you also NAME the
  196.      cell in the list.
  197.  
  198.   5. When you are happy with the setup, press F10 to start conversion.
  199.  
  200.  
  201.   If you have previously run LASI2CSF, there will be a setup file in the
  202.   drawing directory named LASI2CSF.SET. If this is found, the setup
  203.   parameters will be loaded when you first run LASI2CSF, and will be stored
  204.   again as you start the conversion (by pressing F10). This saves a great
  205.   deal of time when running LASI2CSF since you only have to modify any
  206.   parameters.
  207.  
  208. Running CSF2TLC.EXE
  209.  
  210.  Running CSF2TLC.EXE
  211.  
  212.   CSF2TLC.EXE uses a sequential setup routine. Sometime in the future it
  213.   will probably be revised to a random page-oriented routine similar to the
  214.   setup that the new version of LASI2CSF.EXE uses.
  215.  
  216.   1. CSF2TLC has comments along the way as you do the setup. You should
  217.      learn just what is expected after running the program a few times.
  218.      Give the full name of the CSF file to be converted. This name may
  219.      include a path. The program will not procede unless it is given a
  220.      filename. Give the directory where the TLC files are to be made. This
  221.      will default to the current directory if you only press ENTER.
  222.  
  223.   2. If you have previously run CSF2TLC, there will be a setup file in the
  224.      drawing directory named CSF2TLC.SET. If this is found, you will be
  225.      asked if you want to use the information. This can save time if you do
  226.      conversions often on a drawing. If you choose to use the default setup
  227.      data, steps 3-8 below will be skipped.
  228.  
  229.   3. When converting from Calma the physical units will automatically be
  230.      microns, but you may specify the LASI basic units.
  231.  
  232.   4. You will be asked if you want to use the "2048"VAX filter. If the
  233.      binary file has been run through a VAX on magtape, it might contain
  234.      two extra characters at beginning of a VAX file record. You can tell
  235.      CSF2TLC to drop two characters every 2048 characters. If errors occur
  236.      try this option.
  237.  
  238.   5. You will then be asked for the layers and the datatypes to be
  239.      converted. You respond to this question with the notation similar to
  240.      the VIEW, OPEN, etc. commands in LASI, with numbers separated by
  241.      spaces or dashes.  A space separates individual layers and a dash
  242.      means "include all layers between".
  243.  
  244.   6. You will be given the option of converting Calma 4-sided rectangular
  245.      boundaries to LASI boxes. If the rectangular boundaries are not to be
  246.      modified, boxes are better for LASI.
  247.  
  248.   7. There is an option to convert any text found in the stream file to
  249.      LASI text. The texttype number (0-63) OR the font number (0-3) in a
  250.      Calma text record may be related to a LASI text size. A texttype is
  251.      ALWAYS present in a Calma text record, but font may also be used by
  252.      some CAD systems. If a texttype of 0-63 is related to a LASI text
  253.      size, it will be used first, regardless of the font set. If you want
  254.      to use font, enter "-" as the texttype to use. If neither a texttype
  255.      nor font is set, a default set of minimum parameters will be used.
  256.  
  257.      Additionally you may use some of the other Calma text parameters by
  258.      setting them to "y" or "n":
  259.  
  260.      ■ If magnification information is present, it may be used.
  261.        Magnification will multiply any texttype or font related text size.
  262.  
  263.      ■ If orientation (+/-90, 180 deg) is present, it may be used.
  264.  
  265.      ■ If vertical justification information is present, it may be used.
  266.  
  267.      Any multiple line Calma text will be broken into separate LASI text
  268.      lines, and any horizontal justification will be changed to left
  269.      justification.
  270.  
  271.      The text that you get may not look exactly the same as the original
  272.      text since LASI uses its own character patterns.
  273.  
  274.   8. You will be asked if you want to relocate Calma layer 0 to any LASI
  275.      layer (1-64). Any Calma layer 0 will default to LASI layer 64.
  276.  
  277.   9. CSF2TLC request just which structures you want to be converted. You
  278.      may name specific structures. If the named structures contain other
  279.      structures that have not been named, CSF2TLC will find these and try
  280.      to convert them also. You therefore only need to name your top
  281.      structure(s) and CSF2TLC will find the rest.
  282.  
  283.   10. LASI cellnames must be legal names for MS-DOS files. The names of the
  284.      Calma structures may not conform to MS-DOS standards and must be
  285.      changed. CSF2TLC will try to find acceptable names, but you may also
  286.      manually change any illegal names.
  287.  
  288.   11. You will be asked if you want CSF2TLC to replace any TLC files that
  289.      it finds already in the directory. Otherwise, CSF2TLC will keep any
  290.      old TLC files that it finds and will only create the new ones that it
  291.      needs.
  292.  
  293.   In most questions, the default entry will appear in the parentheses if
  294.   one is available. Pressing ENTER defaults.
  295.  
  296. CSF2TLC Operations
  297.  
  298.  CSF2TLC Operations
  299.  
  300.   CSF2TLC first scans the CSF file to determine a hierarchy of cells. It
  301.   also tries to convert Calma structure names to names that are MS-DOS
  302.   acceptable. If a name is found that is a reserved word such as "PRN", or
  303.   the name contains characters that are illegal in MS-DOS such as "*", you
  304.   will be asked for a substitute name. If you have told CSF2TLC not to try
  305.   to rename, any names with greater than 8 characters will call for a
  306.   substitute also.
  307.  
  308.   CSF2TLC will search the current directory for the TLC cell file of a cell
  309.   that might not exist as a structure in the CSF file, but still be used in
  310.   other structures in the CSF file. This allows the TLC file of a cell to
  311.   be reconstructed without the lesser cells being present as structures in
  312.   the CSF file. The only requirement is that the TLC files of its lesser
  313.   cells exist already in the drawing directory.
  314.  
  315.   After the scanning has been done to establish hierarchy and the presence
  316.   of TLC files, a list of the cellnames, their rank, the presence of the
  317.   structure in the CSF file, the presence of a TLC file in the directory
  318.   and the structure name is printed.
  319.  
  320.   If the TLC file is already present it is retained even though the
  321.   structure may exist in the CSF file. To have a new TLC file generated,
  322.   the old TLC file must be deleted from the current directory, or the
  323.   option of replacing all TLC files must be used when running CSF2TLC.
  324.  
  325.   If the lesser cell exist neither as a structure in the CSF file nor as a
  326.   TLC file in the drawing directory, then the name of the expected cell is
  327.   inserted into the TLC file being made and a warning message is given.
  328.  
  329. Possible Problems
  330.  
  331.  Possible Problems
  332.  
  333.   1. On conversion from Calma to LASI, if any structures are missing and a
  334.      TLC file is not present, there is no way to tell if the missing
  335.      structures or TLC files contain other missing structures or cells.
  336.  
  337.   2. Presently, arrays of objects do not exist in LASI. Therefore, when
  338.      converting from Calma, CSF2TLC makes arrays by copying cells. This can
  339.      fill the LASI cell capacity if you don't watch out.
  340.  
  341.   3. When CSF2TLC encounters text in a CSF file, it ignores justification
  342.      and breaks down any multi-line Calma text into single line LASI text
  343.      objects. This means that your translated text may not be located in
  344.      the same place. You should also use only single line left justified
  345.      text on the Calma or other drawing system if you intend to bring it
  346.      into LASI.
  347.  
  348.   4. Some features of Calma are presently simply ignored, such as stretched
  349.      components, and nodes.
  350.  
  351.   5. If you abort while CSF2TLC is making a TLC file you will probably get
  352.      an incomplete file. Erase it.
  353.  
  354.