1GENLIB_PHCON.3(October 1, 1997) GENLIB_PHCON.3(October 1, 1997)
2
3
4
6 GENLIB_PHCON - place a physical connector in the current figure at
7 absolute coordinates
8
10 #include <genlib.h>
11 void GENLIB_PHCON(layer, width, name, orient, x, y)
12 char layer;
13 long width;
14 char ∗name, orient;
15 long x, y;
16
18 layer Layout layer of the connector
19
20 width Width of the connector
21
22 name Name to be given to the connector
23
24 orient Face of the cell on witch the connector belongs
25
26 x, y Absolute coordinates of the connector
27
29 PHCON adds a connector in the current layout cell, at the specified
30 coordinates, with the given attributs. The layer argument can take the
31 following legal values:
32
33 NWELL
34
35 PWELL
36
37 NTIE
38
39 PTIE
40
41 NDIF
42
43 PDIF
44
45 NTRANS
46
47 PTRANS
48
49 POLY
50
51 ALU1
52
53 ALU2
54
55 ALU3
56
57 TPOLY
58
59 TALU1
60
61 TALU2
62
63 TALU3
64
65 The name argument is not enough of an information to non ambigiously
66 identify a connector. In order to be able to do so, an index is com‐
67 puted for each connector that has an already existing name, following a
68 topological order. Each time a connector is created, the index is
69 updated, regarding the name of the connector. Since someone writing a
70 tiler needs to know exactly what connector to access, the indexation
71 algorithm must be known by the user.
72
73 Connectors with a unique name:
74 Such connectors have the index 0
75
76 Connectors with a name apearing many times:
77 The indexes are computed from left to right, and
78 then from bottom to top, starting at 0. If two
79 connectors are on the same location, with the same
80 name, then the layer decides which one is has the
81 greater number, from lower level, NWELL to upper
82 level, ALU3.
83
84 The orient parameter may take the following values:
85
86 NORTH for a connector placed on the top of the cell.
87
88 SOUTH for a connector placed on the bottom of the cell.
89
90 EAST for a connector placed on the right side of the
91 cell.
92
93 WEST for a connector placed on the left side of the
94 cell.
95
96 Remark: Connectors placed on corners of leaf cells are
97 given the EAST orientation if on top/right or bot‐
98 tom/right corner, and WEST if top/left or bot‐
99 tom/left.
100
102 "GENLIB_PHCON impossible : missing GENLIB_DEF_PHFIG"
103 No figure has been yet specified by a call to DEF_PHFIG. So it
104 isn't possible to place a connector inside it. you must call
105 DEF_PHFIG before any other layout action.
106 "illegal addphcon : orientation is XX in name"
107 The orient parameter does not have a legal value, but XX.
108
110 #include <genlib.h>
111 main()
112 {
113 /∗ Create a figure to work on ∗/
114 GENLIB_DEF_PHFIG("cell");
115 .
116 .
117 .
118 GENLIB_DEF_AB(0L, 0L, 0L, 0L);
119 /∗ Put a connector ∗/
120 GENLIB_PHCON(ALU1, 1, "cin", SOUTH, 12L, 0L);
121 /∗ Save that on disk ∗/
122 GENLIB_SAVE_PHFIG();
123 }
124
126 genlib(1), GENLIB_DEF_PHFIG(3), GENLIB_SAVE_PHFIG(3), GEN‐
127 LIB_COPY_UP_ALL_CON(3), GENLIB_COPY_UP_CON(3), GEN‐
128 LIB_COPY_UP_CON_FACE(3), GENLIB_THRU_CON_H(3), GENLIB_THRU_CON_V(3).
129
130
131
132
133
134
135PROCEDURAL GENERATION LANGUAGE ASIM/LIP6 GENLIB_PHCON.3(October 1, 1997)