1GENLIB_PHREF.3(October 1, 1997) GENLIB_PHREF.3(October 1, 1997)
2
3
4
6 GENLIB_PHREF - place a physical reference in the current figure at
7 absolute coordinates
8
10 #include <genlib.h>
11 void GENLIB_PHREF(type, name, x, y)
12 char ∗type, ∗name;
13 long x, y;
14
16 type Type of the reference to be added
17
18 name Name of the reference
19
20 x, y Absolute coordinates of the reference
21
23 PHREF adds a reference in the current layout cell, at the specified
24 coordinates. A reference is an object that allows to symbolicaly name
25 a point for futur use by the designer. They have been mainly used in
26 the past to program decoders, in order to obtain many cells from a
27 unique cell.
28
29 The type argument may take the two following legal values:
30
31 ref_con for virtual connectors, see dpr(1) for details.
32
33 ref_ref for any other need from the designer.
34
36 "GENLIB_PHREF impossible : missing GENLIB_DEF_PHFIG"
37 No figure has been yet specified by a call to DEF_PHFIG. So it
38 isn't possible to place a reference inside it. you must call
39 DEF_PHFIG before any other layout action.
40
42 #include <genlib.h>
43 main()
44 {
45 /∗ Create a figure to work on ∗/
46 GENLIB_DEF_PHFIG("cell");
47 .
48 /∗ Put a reference ∗/
49 GENLIB_PHREF("ref_con", "in_a[0]", 102L, 10L);
50 .
51 .
52 GENLIB_DEF_AB(0L, 0L, 0L, 0L);
53 /∗ Save that on disk ∗/
54 GENLIB_SAVE_PHFIG();
55 }
56
58 genlib(1), GENLIB_DEF_PHFIG(3), GENLIB_SAVE_PHFIG(3), GEN‐
59 LIB_PLACE_CON_REF(3), GENLIB_PLACE_SEG_REF(3), GENLIB_PLACE_VIA_REF(3).
60
61
62
63
64
65
66PROCEDURAL GENERATION LANGUAGE ASIM/LIP6 GENLIB_PHREF.3(October 1, 1997)