1GENLIB_PLACE_CON_REF.3(October 1, 1997)GENLIB_PLACE_CON_REF.3(October 1, 1997)
2
3
4
6 GENLIB_PLACE_CON_REF - put a connector on top of a reference belonging
7 an instance in the current figure
8
10 #include <genlib.h>
11 void GENLIB_PLACE_CON_REF(insname, refname, conname, layer, width, face)
12 char ∗insname, ∗refname, ∗conname;
13 char layer, face;
14 long width;
15
17 insname Name of the instance in the which the reference is
18 to be searched for
19
20 refname Name of the reference to be used for the connector
21 placement
22
23 conname Name of the connector to be placed
24
25 layer Physical layer of the connector
26
27 width Width of the connector
28
29 face Face of the figure on which the connector is to be
30 placed
31
33 PLACE_CON_REF places a connector called conname ragarding the position
34 of the reference, refname, in the instance called insname. The connec‐
35 tor coordinates are computed from the reference coordinates and the
36 face given as argument.
37 Two behaviours are expected, regarding the reference coordinates:
38
39 the reference is on the given face of the abutment box
40 a connector called conname is added on top of the
41 reference, with the given layer and width.
42
43 the reference is anywhere else
44 a connector called conname is added on the given
45 face, face, of the abutment box, at the y coordi‐
46 nates of the reference if the face is EAST or WEST,
47 or x one if the face is NORTH or SOUTH. Then a seg‐
48 ment is drawn between the reference and the connec‐
49 tor. All drawn objects are given layer and width
50 as caracteristics.
51 The face argument is meant in the placed instance,
52 and can take any of the following values:
53
54 NORTH for a connector placed on the top of the cell.
55
56 SOUTH for a connector placed on the bottom of the cell.
57
58 EAST for a connector placed on the right side of the
59 cell.
60
61 WEST for a connector placed on the left side of the
62 cell.
63
65 "GENLIB_PLACE_CON_REF impossible : missing GENLIB_DEF_PHFIG"
66 No figure has been yet specified by a call to DEF_PHFIG. So it
67 isn't possible to place a reference inside it. you must call
68 DEF_PHFIG before any other layout action.
69 "GENLIB_PLACE_CON_REF impossible : missing GENLIB_DEF_PHFIG"
70 No figure has been yet specified by a call to DEF_PHFIG. So it
71 isn't possible to place a reference inside it. you must call
72 DEF_PHFIG before any other layout action.
73 "GENLIB_PLACE_CON_REF impossible : no abutment box"
74 The current figure does not have an abutment box. Use DEF_AB(3)
75 before this function.
76 "illegal GENLIB_PLACE_CON_REF : orientation is XX"
77 The face parameter does not have a legal value, but XX.
78 "illegal getphins : instance called insname does not exist"
79 No instance called insname exists in the current figure
80 "illegal getphref : references called refname does not exist"
81 No reference called refname exists in the model of the instance
82 insname.
83
85 #include <genlib.h>
86 main()
87 {
88 /∗ Create a figure to work on ∗/
89 GENLIB_DEF_PHFIG("cell");
90 GENLIB_PLACE("gaci0_b", "r1", NOSYM, 23L, 54L);
91 /∗ Put a reference ∗/
92 GENLIB_PLACE_CON_REF("r1", "a_0", ALU2, 2, NORTH);
93 /∗ Save that on disk ∗/
94 GENLIB_SAVE_PHFIG();
95 }
96
98 genlib(1), GENLIB_DEF_PHFIG(3), GENLIB_SAVE_PHFIG(3), GENLIB_PHREF(3),
99 GENLIB_PHCON(3), GENLIB_COPY_UP_REF(3), GENLIB_COPY_UP_ALL_REF(3), GEN‐
100 LIB_PLACE_CON_REF(3), GENLIB_PLACE_SEG_REF(3), GENLIB_PLACE_CON_REF(3).
101
102
103
104
105
106
107PROCEDURAL GENERATION LANGUAGE ASIM/GLEINPL6IB_PLACE_CON_REF.3(October 1, 1997)