File: port.html

package info (click to toggle)
magic 7.5.241-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 17,772 kB
  • ctags: 12,301
  • sloc: ansic: 170,465; sh: 10,446; perl: 4,105; lisp: 2,554; tcl: 2,469; makefile: 1,887; cpp: 587; csh: 148; awk: 140
file content (140 lines) | stat: -rw-r--r-- 5,744 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<HTML>
<HEAD>
  <STYLE type="text/css">
    H1 {color: black }
    H2 {color: maroon }
    H3 {color: #007090 }
    A.head:link {color: #0060a0 }
    A.head:visited {color: #3040c0 }
    A.head:active {color: white }
    A.head:hover {color: yellow }
    A.red:link {color: red }
    A.red:visited {color: maroon }
    A.red:active {color: yellow }
  </STYLE>
</HEAD>
<TITLE>Magic-7.3 Command Reference</TITLE>
<BODY BACKGROUND=graphics/blpaper.gif>
<H1> <IMG SRC=graphics/magic_title2.gif ALT="Magic VLSI Layout Tool Version 7.3">
     <IMG SRC=graphics/magic_OGL_sm.gif ALIGN="top" ALT="*"> </H1>

<H2>port</H2>
<HR>
Declare a label to be a subcircuit port, or manipulate port parameters.
<HR>

<H3>Usage:</H3>
   <BLOCKQUOTE>
      <B>port</B> <I>option</I> <BR><BR>
      <BLOCKQUOTE>
         where <I>option</I> may be one of the following:
	 <DL>
	   <DT> </I>index</I> <I>directions</I>
	   <DD> Declare a label to be a port with order number
		<I>index</I> and with allowed connection directions
		specified by the list <I>directions</I>.  This is
		equivalent to the <B>make</B> option, except that
		the index and direction must be specified.
	   <DT><B>class</B> [<I>type</I>]
	   <DD> Get [set] port class type (see Summary, below).
    	   <DT> <B>use</B> [<I>type</I>]
	   <DD> Get [set] port use type (see Summary, below).
	   <DT> <B>index</B> [<I>number</I>]
	   <DD> Get [set] port number
	   <DT> <B>equivalent</B> [<I>number</I>]
	   <DD> Make the port equivalent to the (other) port numbered
		<I>number</I>.
	   <DT> <B>connections</B> [<I>directions</I>]
	   <DD> Get [set] port connection directions
	   <DT> <B>make</B> [</I>index</I>] [<I>directions</I>]
	   <DD> Declare a label to be a port with order number
		<I>index</I> and with allowed connection directions
		specified by the list <I>directions</I>.  If not
		specified, the index is set to the first unused
		number, starting with 1, and the direction defaults
		to the direction of the label text.  That is, if the
		label text is drawn to the right of the port, then
		connections are allowed to the right side of the
		port.
	   <DT> <B>remove</B>
	   <DD> Turn a port back into an ordinary label, removing
		all of its port properties.
	   <DT> <B>help</B>
	   <DD> Print help information
	 </DL>
      </BLOCKQUOTE>
   </BLOCKQUOTE>

<H3>Summary:</H3>
   <BLOCKQUOTE>
      The <B>port</B> command turns labels into ports and
      manipulates the properties of those ports.  The <B>port</B>
      command gives <B>magic</B> some understanding of "standard
      cells".  A cell definition that contains declared ports is
      treated specially by the <B>extract</B>, <B>ext2spice</B>,
      <B>lef</B>, and <B>def</B> commands.  All other commands
      interpret ports as ordinary labels.  <B>ext2spice</B> only
      interprets ports specially if the option <B>ext2spice subcircuits
      on</B> is enabled.  Cells that contain port labels are assumed
      in these cases to be <I>standard cells</I>, that is, cells
      which are pre-characterized, and for which the layout is not
      to be interpreted as a physical circuit.  When writing SPICE
      output, a cell containing port labels that is a descendent cell
      of the top-level layout is written as a subcircuit call, that
      is, an "X" record.  If the top-level cell in the layout
      contains ports, then the SPICE output is written as a subcircuit
      definition, that is, wrapped in a ".subckt . . . .ends" pair.
      For LEF files, a cell that contains ports is written as a
      macro cell, and the ports are the declared PINs of the macro.
      For DEF files, a cell that contains ports is written as a
      COMPONENT. <P>
	
      The "index" property of the port is used only when the
      cell is written into a SPICE deck as a subcircuit entry,
      when the <B>ext2spice subcircuit on</B> option is enabled
      (which it is by default).  In that case, the subcircuit
      call parameters (nodes) are written in the order of the port
      indices, which are then assumed to match the definition for
      the subcircuit.  Likewise, if the circuit is written as a
      subcircuit to a SPICE file, the order of parameters in the
      subcircuit definition will match the order of the port
      indices.  Note that the actual port numbers are ignored;
      the port values will be written in ascending order starting
      with the lowest numbered port and ending with the highest
      numbered port. <P>

      The "direction" property of the port has no particular
      meaning to magic but may be used by other programs to control
      the allowed direction of routes into a standard cell. <P>

      The "class" and "use" properties of the port have no
      internal meaning to magic but are used by the LEF and DEF
      format read and write routines, and match the LEF/DEF
      CLASS and USE properties for macro cell pins.  Valid
      classes are: <B>default</B>, <B>input</B>, <B>output</B>,
      <B>tristate</B>, <B>bidirectional</B>, <B>inout</B>,
      <B>feedthrough</B>, and <B>feedthru</B>.  Valid uses are:
      <B>default</B>, <B>analog</B>, <B>signal</B>, <B>digital</B>,
      <B>power</B>, <B>ground</B>, and <B>clock</B>.
   </BLOCKQUOTE>

<H3>Implementation Notes:</H3>
   <BLOCKQUOTE>
      <B>port</B> is implemented as a built-in command in <B>magic</B>.
   </BLOCKQUOTE>

<H3>See Also:</H3>
   <BLOCKQUOTE>
      <A HREF=label.html><B>label</B></A> <BR>
      <A HREF=lef.html><B>lef</B></A> <BR>
   </BLOCKQUOTE>

<P><IMG SRC=graphics/line1.gif><P>
<TABLE BORDER=0>
  <TR>
    <TD> <A HREF=commands.html>Return to command index</A>
  </TR>
</TABLE>
<P><I>Last updated:</I> October 16, 2004 at 2:10pm <P>
</BODY>
</HTML>