Scroll to navigation

GENLIB_FLATTEN_LOFIG.3(October 1, 1997) GENLIB_FLATTEN_LOFIG.3(October 1, 1997)

NAME

GENLIB_FLATTEN_LOFIG - flatten an instance in the current netlist figure

SYNOPSYS

#include <genlib.h>
void GENLIB_FLATTEN_LOFIG(insname,concat)
char ∗insname;
char concat;

ORIGIN

This software belongs to the ALLIANCE CAD SYSTEM developed by the ASIM team at LIP6 laboratory of Université Pierre et Marie CURIE, in Paris, France.

Web : http://asim.lip6.fr/recherche/alliance/
E-mail : alliance-users@asim.lip6.fr

PARAMETERS

Name of the instance to be flattened
Indicate whether or not to concatenate instance name to instance' objects name

DESCRIPTION

FLATTEN_LOFIG inserts the contents of an instance, but its connectors, in the current figure, and then destroys the instance.
The concat parameter may take two values:

to concatenate object name with instance names.
to copy object names.

In most case, the concat value must be YES, in order to warranty the unicity of names in the figure. It may otherwise fail, because the function would try to add in the current figure some object with an already existing name.

EXAMPLE

#include <genlib.h>
main()
{
	/∗ Create a figure to work on  ∗/
	GENLIB_DEF_LOFIG("mycell");
	.
	.
	.
	/∗ Place an instance ∗/
	GENLIB_LOINS("model","instance", "sig1", "sig2", EOL);
	/∗ flatten an instance ∗/
	GENLIB_FLATTEN_LOFIG("instance", YES);
	/∗ Save all that on disk ∗/
	GENLIB_SAVE_LOFIG();
}

SEE ALSO

genlib(1), GENLIB_UNFLATTEN_LOFIG(3). GENLIB_LOINS(3).

BUG REPORT

This tool is under development at the ASIM department of the LIP6 laboratory.
We need your feedback to improve documentation and tools.

ASIM/LIP6 PROCEDURAL GENERATION LANGUAGE