1GENLIB_GET_CON_Y.3(October 1, 1997) GENLIB_GET_CON_Y.3(October 1, 1997)
2
3
4
6 GENLIB_GET_CON_Y - retrieve the x coordinate of an instance connector
7
9 long GENLIB_GET_CON_Y(insname, conname, index)
10 char ∗insname, ∗conname;
11 long index;
12
14 insname Name of the instance in the which the connector is
15 to be searched for
16
17 conname Name of the connector
18
19 index Connector index
20
22 GET_CON_Y looks for the connector, conname, in the instance called
23 insname. Then it computes its absolute coordinates in the figure, and
24 gives back the y coordinate.
25
27 The function returns a long int being the y position of the connector
28 in the current figure
29
31 "GENLIB_GET_CON_Y impossible : missing GENLIB_DEF_PHFIG"
32 No figure has been yet specified by a call to DEF_PHFIG. So it
33 isn't possible to place a connector inside it. you must call
34 DEF_PHFIG before any other layout action.
35 "illegal getphins : instance called insname does not exist"
36 No instance called insname exists in the current figure.
37 "illegal getphcon : connectors conname, index index does not exist"
38 No connector called conname exists in the model of the instance
39 insname.
40
42 #include <genlib.h>
43 main()
44 {
45 long x, y;
46 /∗ Create a figure to work on ∗/
47 GENLIB_DEF_PHFIG("cell");
48 GENLIB_PLACE("gaci0_b", "r1", NOSYM, 23L, 54L);
49 /∗ Get a connector ∗/
50 y = GENLIB_GET_CON_Y("r1", "a", 1);
51 .
52 .
53 GENLIB_PHVIA(x, y, CONT_VIA);
54 /∗ Save that on disk ∗/
55 GENLIB_SAVE_PHFIG();
56 }
57
59 genlib(1), GENLIB_DEF_PHFIG(3), GENLIB_SAVE_PHFIG(3), GENLIB_PHCON(3),
60 GENLIB_PHSEG(3), GENLIB_COPY_UP_CON(3), GENLIB_COPY_UP_ALL_CON(3), GEN‐
61 LIB_GET_CON_X(3), GENLIB_GET_REF_X(3), GENLIB_GET_REF_Y(3).
62
63
64
65
66
67
68PROCEDURAL GENERATION LANGUAGE ASIM/LIP6GENLIB_GET_CON_Y.3(October 1, 1997)