1GENLIB_DEF_PHSC.3(October 1, 1997) GENLIB_DEF_PHSC.3(October 1, 1997)
2
3
4
6 GENLIB_DEF_PHSC - load a netlist and open a layout model as current
7 figure
8
10 #include <genlib.h>
11 void GENLIB_DEF_PHSC(cellname)
12 char ∗cellname;
13
15 cellname Name of the netlist figure to be looked for in mem‐
16 ory or on disk, for futher physical placement.
17
19 DEF_PHSC defines the current working figure by it's name, the cellname
20 argument, for layout and netlist operations. It can be use anywhere in
21 the genlib program, but must appear at least once at the top of it,
22 since it also initialize the user's preferences through environment
23 variables.
24 DEF_PHSC looks for the netlist figure cellname in memory, and if not
25 found, on disk. If it fails, an error occurs and the process termi‐
26 nates.
27 The main issue of this function is to allow the netlist and physical
28 descriptions of a circuit in two separate files, for standard cell
29 approach. So there is no need to recreate the netlist view each time
30 the placement changes.
31 If the physical figure called cellname doesn't exists in memory, it is
32 created. If it already exists in memory, it makes it the current work‐
33 ing figure. DEF_PHSC doesn't look on disk for the figure cellname, so
34 be careful not to overwrite an existing file while saving later on.
35
37 #include <genlib.h>
38 main()
39 {
40 /∗ Create a figure to work on ∗/
41 GENLIB_DEF_PHSC("mycell");
42 /∗ Place an instance ∗/
43 GENLIB_SC_PLACE("instance", NOSYM,0L,0L);
44 /∗ Save all that on disk ∗/
45 GENLIB_SAVE_PHSC();
46 }
47
49 genlib(1), GENLIB_SAVE_PHSC(3), GENLIB_SC_PLACE(3), GENLIB_SC_TOP(3),
50 GENLIB_SC_BOTTOM(3), GENLIB_SC_LEFT(3), GENLIB_SC_RIGHT(3).
51
52
53
54
55
56
57PROCEDURAL GENERATION LANGUAGE ASIM/LIP6GENLIB_DEF_PHSC.3(October 1, 1997)