| 1 | <HTML> |
| 2 | <HEAD> |
| 3 | <STYLE type="text/css"> |
| 4 | H1 {color: black } |
| 5 | H2 {color: maroon } |
| 6 | H3 {color: #007090 } |
| 7 | A.head:link {color: #0060a0 } |
| 8 | A.head:visited {color: #3040c0 } |
| 9 | A.head:active {color: white } |
| 10 | A.head:hover {color: yellow } |
| 11 | A.red:link {color: red } |
| 12 | A.red:visited {color: maroon } |
| 13 | A.red:active {color: yellow } |
| 14 | </STYLE> |
| 15 | </HEAD> |
| 16 | <TITLE>Magic-7.3 Command Reference</TITLE> |
| 17 | <BODY BACKGROUND=graphics/blpaper.gif> |
| 18 | <H1> <IMG SRC=graphics/magic_title2.gif ALT="Magic VLSI Layout Tool Version 7.3"> |
| 19 | <IMG SRC=graphics/magic_OGL_sm.gif ALIGN="top" ALT="*"> </H1> |
| 20 | |
| 21 | <H2>lef</H2> |
| 22 | <HR> |
| 23 | LEF-format input and output |
| 24 | <HR> |
| 25 | |
| 26 | <H3>Usage:</H3> |
| 27 | <BLOCKQUOTE> |
| 28 | <B>lef</B> <I>option</I> <BR><BR> |
| 29 | <BLOCKQUOTE> |
| 30 | where <I>option</I> may be one of the following: |
| 31 | <DL> |
| 32 | <DT> <B>read</B> [<I>filename</I>] |
| 33 | <DD> Read a LEF file named <I>filename</I>[<B>.lef</B>] |
| 34 | <DT> [<I>filename</I>] <B>-import</B> |
| 35 | <DD> Read a LEF file. Import standard cells from <TT>.mag</TT> |
| 36 | files |
| 37 | <DT> <B>write</B> [<I>cell</I>] |
| 38 | <DD> Write LEF for the current or indicated cell. |
| 39 | <DT> <B>writeall</B> |
| 40 | <DD> Write all cells including the top-level cell. This might |
| 41 | be appropriate if the top-level cell is a compendium of |
| 42 | standard cells. |
| 43 | <DT> <B>writeall -notop</B> |
| 44 | <DD> write all subcells of the top-level cell, but not the top-level |
| 45 | cell itself. This is appropriate for generating a LEF library |
| 46 | from a layout, for which the layout itself would be written to |
| 47 | a DEF file. |
| 48 | <DT> <B>help</B> |
| 49 | <DD> Print help information |
| 50 | </DL> |
| 51 | </BLOCKQUOTE> |
| 52 | </BLOCKQUOTE> |
| 53 | |
| 54 | <H3>Summary:</H3> |
| 55 | <BLOCKQUOTE> |
| 56 | The <B>lef</B> command writes LEF-format files, which are files |
| 57 | containing technology information and information about the content |
| 58 | of standard cells. It is used in conjunction with the <B>def</B> |
| 59 | command to read databases of routed digital standard-cell layouts. |
| 60 | The <TT>.lef</TT> file shares some information with the technology |
| 61 | file in <B>magic</B>. At a minimum, to read <TT>.lef</TT> files |
| 62 | from third-party sources, the technology file should have a |
| 63 | <B>lef</B> section that maps magic layers to layer names that are |
| 64 | found in the <TT>.lef</TT> and <TT>.def</TT> files. Without |
| 65 | this information, <B>magic</B> will attempt to make an educated |
| 66 | guess about the routing layers, which normally will be named |
| 67 | in an obvious manner such as "metal1", "metal2", etc. The |
| 68 | technology file section may be necessary to handle more complicated |
| 69 | input such as obstruction layers. Most other aspects of a |
| 70 | technology will be contained within the <TT>.lef</TT> file. |
| 71 | When writing <TT>.lef</TT> files, <B>magic</B> will use internal |
| 72 | layer names for the routing layers if no other information is |
| 73 | present in the <B>lef</B> section of the technology file. <P> |
| 74 | |
| 75 | Because the <B>lef</B> format allows standard cells to be minimally |
| 76 | defined (for purposes of protecting intellectual property), often |
| 77 | the <TT>.lef</TT> file contains no actual layout information for |
| 78 | the standard cells. <B>magic</B> provides a command option |
| 79 | "<B>-import</B>". When specified, for each macro cell in the |
| 80 | input <TT>.lef</TT> file, <B>magic</B> will look for a <TT>.mag</TT> |
| 81 | file of the same name. If found, it will be loaded and used in |
| 82 | preference to the definition in the <TT>lef</TT> file. <P> |
| 83 | |
| 84 | Magic uses the <B>port</B> mechanism for labels to determine |
| 85 | what are the standard cells in a design. All cells containing |
| 86 | <B>port</B> labels will be considered standard cells when writing |
| 87 | a <TT>.lef</TT> file. Ports retain various bits of information |
| 88 | used by the LEF/DEF definition, including the port use and |
| 89 | direction. See the <B>port</B> documentation for more information.<P> |
| 90 | |
| 91 | Macro cell properties common to the LEF/DEF definition but that |
| 92 | have no corresponding database interpretation in <B>magic</B> |
| 93 | are retained using the cell <B>property</B> method in <B>magic</B>. |
| 94 | There are specific property names associated with the LEF format. |
| 95 | These are as follows: |
| 96 | <DL> |
| 97 | <DT> <B>LEFclass</B> |
| 98 | <DD> Corresponds to the value of <B>CLASS</B> for a macro |
| 99 | cell in the LEF format. |
| 100 | <DT> <B>LEFsource</B> |
| 101 | <DD> Corresponds to the value of <B>SOURCE</B> for a macro |
| 102 | cell in the LEF format. |
| 103 | <DT> <B>LEFsymmetry</B> |
| 104 | <DD> Corresponds to the vlaue of <B>SYMMETRY</B> for a macro |
| 105 | cell in the LEF format. |
| 106 | </DL> |
| 107 | |
| 108 | Normally, when importing a LEF/DEF layout into <B>magic</B>, one |
| 109 | will first execute a <B>lef read</B> command followed by a |
| 110 | <B>def read</B> command. Likewise, when writing a layout, one |
| 111 | will first execute a <B>lef writeall -notop</B> command followed |
| 112 | by a <B>def write</B> command. |
| 113 | </BLOCKQUOTE> |
| 114 | |
| 115 | <H3>Implementation Notes:</H3> |
| 116 | <BLOCKQUOTE> |
| 117 | <B>lef</B> is implemented as a built-in command in <B>magic</B>. |
| 118 | Only the critical portion of the LEF syntax has been implemented. |
| 119 | In particular, simulation-specific properties of the technology |
| 120 | and of macro cells are not implemented. |
| 121 | </BLOCKQUOTE> |
| 122 | |
| 123 | <H3>See Also:</H3> |
| 124 | <BLOCKQUOTE> |
| 125 | <A HREF=def.html><B>def</B></A> <BR> |
| 126 | <A HREF=port.html><B>port</B></A> <BR> |
| 127 | <A HREF=property.html><B>property</B></A> <BR> |
| 128 | </BLOCKQUOTE> |
| 129 | |
| 130 | <P><IMG SRC=graphics/line1.gif><P> |
| 131 | <TABLE BORDER=0> |
| 132 | <TR> |
| 133 | <TD> <A HREF=commands.html>Return to command index</A> |
| 134 | </TR> |
| 135 | </TABLE> |
| 136 | <P><I>Last updated:</I> October 7, 2004 at 1:43am <P> |
| 137 | </BODY> |
| 138 | </HTML> |