1GENLIB_WIRE1.3(October 1, 1997)                GENLIB_WIRE1.3(October 1, 1997)
2
3
4

NAME

6       GENLIB_WIRE1 - place a physical segment in the current figure
7

SYNOPSIS

9       #include <genlib.h>
10       void GENLIB_WIRE1(layer, width, ins1, con1, index1, ins2, con2, index2)
11       char layer;
12       long width;
13       char ∗ins1, ∗con1, ∗ins2, ∗con2;
14

PARAMETERS

16       layer               Layout layer of the segment
17
18       width               Width of the segment
19
20       ins1                Name of the instance in which the connector con1 is
21                           to be looked for
22
23       con1                Name of a connector, or reference,  used  as  first
24                           endpoint of the wire
25
26       ins2                Name of the instance in which the connector con2 is
27                           to be looked for
28
29       con2                Name of a connector, or  reference,  used  as  last
30                           endpoint of the wire
31

DESCRIPTION

33       WIRE1  adds  a  segment  made  of the layer level in the current layout
34       cell, the starting point being the connector, or reference, con1 of the
35       instance  ins1, and the ending point being the connector, or reference,
36       con2 of the instance ins1. The segment is drawn between the coordinates
37       of  con1  in the current figure and the coordinates of con2 in the cur‐
38       rent figure.
39
40       If the endpoints are connectors, the indexes  index1  and  index2  must
41       respectivly  refer to con1 and con2.  If they are references, then they
42       are not taked care of.  One shall notice that connectors and references
43       of a given model should not share names if WIRE1 is to be used.
44
45       The layer argument can take the following legal values :
46
47              NWELL
48
49              PWELL
50
51              NTIE
52
53              PTIE
54
55              NDIF
56
57              PDIF
58
59              NTRANS
60
61              PTRANS
62
63              POLY
64
65              ALU1
66
67              ALU2
68
69              ALU3
70
71              TPOLY
72
73              TALU1
74
75              TALU2
76
77              TALU3
78

ERRORS

80       "GENLIB_WIRE1 impossible : missing GENLIB_DEF_PHFIG"
81              No  figure  has been yet specified by a call to DEF_PHFIG. So it
82              isn't possible to place an instance inside it.   you  must  call
83              DEF_PHFIG before any other layout action.
84       "illegal addphseg : x1, y1, x2, y2"
85              A  symbolic  segment  must  be either vertical or horizontal, so
86              either x1 = x2, or y1 = y2. Since WIRE1 creates a  segment  from
87              relative  coordinates, care must be taken to follow the previous
88              rule.
89       "GENLIB_WIRE1 impossible : same name conX, for connector and  reference
90       in insX"
91              The model of the instance insX has both a connector and a refer‐
92              ence that matches the conX name. This is not legal since  genlib
93              doesn't know which one to choose as point.
94       "illegal getphins : instance insX does not exist"
95              The  instance  called insX does not currently belong to the fig‐
96              ure.
97

EXAMPLE

99       #include <genlib.h>
100       main()
101       {
102            /∗ Create a figure to work on  ∗/
103            GENLIB_DEF_PHFIG("cell");
104            GENLIB_PLACE("gaci0_b", "r_addin_1", NOSYM, 0, 0);
105            GENLIB_PLACE_RIGHT("gapgn_b", "pg", NOSYM);
106            GENLIB_PLACE_RIGHT("gacin_b", "r_addin_2", NOSYM);
107            /∗ Draw a segment ∗/
108            GENLIB_WIRE1(ALU1, 1, "r_addin_1", "out", 0L, "r_addin_2", "in", 1L);
109            /∗ Save that on disk ∗/
110            GENLIB_SAVE_PHFIG();
111       }
112

SEE ALSO

114       genlib(1),     GENLIB_DEF_PHFIG(3),     GENLIB_SAVE_PHFIG(3),      GEN‐
115       LIB_COPY_UP_SEG(3),     GENLIB_PHSEG(3),     GENLIB_THRU_H(3),     GEN‐
116       LIB_THRU_CON_H(3),   GENLIB_THRU_V(3),    GENLIB_THRU_CON_V(3),    GEN‐
117       LIB_WIRE2(3), GENLIB_WIRE3(3).
118
119
120
121
122
123
124PROCEDURAL GENERATION LANGUAGE     ASIM/LIP6   GENLIB_WIRE1.3(October 1, 1997)
Impressum