1GENLIB_DEF_PHINS.3(October 1, 1997) GENLIB_DEF_PHINS.3(October 1, 1997)
2
3
4
6 GENLIB_DEF_PHINS - define a new reference instance
7
9 #include <genlib.h>
10 void GENLIB_DEF_PHINS(instancename);
11 char ∗instancename;
12
14 instancename Defines the instance called instancename as the new
15 "reference instance"
16
18 DEF_PHINS define the new "reference instance", used as starting point
19 in the relative placement functions of genlib. It's regarding the abut‐
20 ment box of the instance instancename that the next instance is going
21 to be placed, if using the appropriate functions. Notice that the more
22 recently placed instance becomes automatically the "reference
23 instance", if DEF_PHINS isn't called.
24
26 "GENLIB_DEF_PHINS impossible : missing GENLIB_DEF_PHFIG"
27 No figure has been yet specified by a call to DEF_PHFIG. So it
28 isn't possible to refer to an instance inside it. you must call
29 DEF_PHFIG before any other layout action.
30 "instance instancename doesn't exist in current figure"
31 The instance instancename hasn't currently been placed in the
32 figure, so it's impossible do to any placement from it.
33
35 #include <genlib.h>
36 main()
37 {
38 /∗ Create a figure to work on ∗/
39 GENLIB_DEF_PHFIG("cell");
40 /∗ Place an instance ∗/
41 GENLIB_PLACE("model","i1", NOSYM,0L,0L);
42 GENLIB_PLACE("model","i2", NOSYM,120L,40L);
43 GENLIB_DEF_PHINS("i1");
44 GENLIB_PLACE_TOP("model2", "i3", NOSYM);
45 GENLIB_DEF_AB(0, 0, 0, 0);
46 /∗ Save all that on disk ∗/
47 GENLIB_SAVE_PHFIG();
48 }
49
51 genlib(1), GENLIB_PLACE(3), GENLIB_PLACE_TOP(3), GENLIB_PLACE_RIGHT(3),
52 GENLIB_PLACE_LEFT(3), GENLIB_PLACE_BOTTOM(3), GENLIB_SC_PLACE(3), GEN‐
53 LIB_SC_TOP(3), GENLIB_SC_RIGHT(3), GENLIB_SC_LEFT(3), GENLIB_SC_BOT‐
54 TOM(3).
55
56
57
58
59
60
61PROCEDURAL GENERATION LANGUAGE ASIM/LIP6GENLIB_DEF_PHINS.3(October 1, 1997)