1GENLIB_FLATTEN_ALL_LOINS.3(October 1G,EN1L9I9B7_)FLATTEN_ALL_LOINS.3(October 1, 1997)
2
3
4
6 GENLIB_FLATTEN_ALL_LOINS - flatten all instances in the current netlist
7 figure
8
10 #include <genlib.h>
11 void GENLIB_FLATTEN_ALL_LOINS(concat, catal)
12 char concat, catal;
13
15 concat Indicate whether or not to concatenate instance
16 name to instance' objects name catal Indicate
17 whether or not to look in the catalog file before
18 flattening a cell
19
21 FLATTEN_ALL_LOINS inserts the contents of all the instances of the cur‐
22 rent figure in the current figure. All these instances are destroyed
23 during the process, and therefore cannot be referred to later in the
24 netlist description.
25 The concat parameter may take two values:
26
27 YES to concatenate object name with instance names.
28
29 NO to copy object names.
30
31 In most case, the concat value must be YES, in order to warranty the
32 unicity of names in the figure. It may otherwise fail, because the
33 function would try to add in the current figure some object with an
34 already existing name. The catal parameter may also take two values:
35
36 YES to check the catalog file to see if the model of an instance is
37 in it. If the model belong to the catalog, then it is not flat‐
38 tened.
39
40 NO in this case, no checks are done, and every instance is flat‐
41 tened.
42
44 #include <genlib.h>
45 main()
46 {
47 /∗ Create a figure to work on ∗/
48 GENLIB_DEF_LOFIG("mycell");
49 .
50 .
51 .
52 /∗ Place an instance ∗/
53 GENLIB_LOINS("model","instance", "sig1", "sig2", EOL);
54 /∗ flatten all figure instance ∗/
55 GENLIB_FLATTEN_ALL_LOINS(YES, YES);
56 /∗ Save all that on disk ∗/
57 GENLIB_SAVE_LOFIG();
58 }
59
61 genlib(1), GENLIB_LOINS(3), GENLIB_FLATTEN_LOFIG(3), GENLIB_FLAT‐
62 TEN_ALL_PHINS(3).
63
64
65
66
67
68
69PROCEDURAL GENERATION LANGUAGE AGSEINML/ILBI_PF6LATTEN_ALL_LOINS.3(October 1, 1997)