1GENLIB_FLATTEN_LOFIG.3(October 1, 1997)GENLIB_FLATTEN_LOFIG.3(October 1, 1997)
2
3
4
6 GENLIB_FLATTEN_LOFIG - flatten an instance in the current netlist fig‐
7 ure
8
10 #include <genlib.h>
11 void GENLIB_FLATTEN_LOFIG(insname,concat)
12 char ∗insname;
13 char concat;
14
16 insname Name of the instance to be flattened
17
18 concat Indicate whether or not to concatenate instance
19 name to instance' objects name
20
22 FLATTEN_LOFIG inserts the contents of an instance, but its connectors,
23 in the current figure, and then destroys the instance.
24 The concat parameter may take two values:
25
26 YES to concatenate object name with instance names.
27
28 NO to copy object names.
29
30 In most case, the concat value must be YES, in order to warranty the
31 unicity of names in the figure. It may otherwise fail, because the
32 function would try to add in the current figure some object with an
33 already existing name.
34
36 #include <genlib.h>
37 main()
38 {
39 /∗ Create a figure to work on ∗/
40 GENLIB_DEF_LOFIG("mycell");
41 .
42 .
43 .
44 /∗ Place an instance ∗/
45 GENLIB_LOINS("model","instance", "sig1", "sig2", EOL);
46 /∗ flatten an instance ∗/
47 GENLIB_FLATTEN_LOFIG("instance", YES);
48 /∗ Save all that on disk ∗/
49 GENLIB_SAVE_LOFIG();
50 }
51
53 genlib(1), GENLIB_UNFLATTEN_LOFIG(3). GENLIB_LOINS(3).
54
55
56
57
58
59
60PROCEDURAL GENERATION LANGUAGE ASIM/GLEINPL6IB_FLATTEN_LOFIG.3(October 1, 1997)