1GENLIB_PHVIA.3(October 1, 1997) GENLIB_PHVIA.3(October 1, 1997)
2
3
4
6 GENLIB_PHVIA - place a physical via in the current figure at absolute
7 coordinates
8
10 #include <genlib.h>
11 void GENLIB_PHVIA(type, x, y)
12 char type;
13 long x, y;
14
16 type Type of the contact to be made
17
18 x, y Absolute coordinates of the via
19
21 PHVIA adds a via in the current layout cell, at the specified coordi‐
22 nates. The type argument may take the following legal values:
23
24 CONT_POLY links POLY and ALU1
25
26 CONT_DIF_N links NDIF and ALU1
27
28 CONT_DIF_P links PDIF and ALU1
29
30 CONT_BODY_N links NTIE and ALU1
31
32 CONT_BODY_P links PTIE and ALU1
33
34 CONT_VIA links ALU1 and ALU2
35
36 CONT_VIA2 links ALU2 and ALU3
37
38 C_X_N corner for L-shaped (and S-shaped) N transistor
39
40 C_X_P corner for L-shaped (and S-shaped) P transistor
41
43 "GENLIB_PHVIA impossible : missing GENLIB_DEF_PHFIG"
44 No figure has been yet specified by a call to DEF_PHFIG. So it
45 isn't possible to place a via inside it. you must call
46 DEF_PHFIG before any other layout action.
47 "illegal addphvia : type is XX at x, y"
48 The type parameter does not have a legal value, but XX.
49
51 #include <genlib.h>
52 main()
53 {
54 /∗ Create a figure to work on ∗/
55 GENLIB_DEF_PHFIG("cell");
56 .
57 /∗ Put a via ∗/
58 GENLIB_PHVIA(CONT_VIA, 12L, 10L);
59 .
60 .
61 GENLIB_DEF_AB(0L, 0L, 0L, 0L);
62 /∗ Save that on disk ∗/
63 GENLIB_SAVE_PHFIG();
64 }
65
67 genlib(1), GENLIB_DEF_PHFIG(3), GENLIB_SAVE_PHFIG(3), GEN‐
68 LIB_PLACE_VIA_REF(3).
69
70
71
72
73
74
75PROCEDURAL GENERATION LANGUAGE ASIM/LIP6 GENLIB_PHVIA.3(October 1, 1997)