---
name: "GENLIB_UNFLATTEN_LOFIG"
section: "3"
platform: "linux"
package: "alliance"
version: "5.1.1-3"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/GENLIB_UNFLATTEN_LOFIG"
---

# GENLIB\_UNFLATTEN\_LOFIG(3)

creates a hierarchy level from instances in the current logical figure

## NAME

**UNFLATTEN\_LOFIG** - creates a hierarchy level from instances in the current logical figure

## SYNOPSYS

```
#include <genlib.h>
void GENLIB_UNFLATTEN_LOFIG(figurename, instancename, list_of_instances, 0)
char ∗figurename;
char ∗instancename;
char ∗list_of_instances;
```

## PARAMETERS

- *figurename*

  Name of the figure of the new hierarchy to be created

- *instancename*

  Name to be given at the instanciation of *figurename* into the current structual figure

- *list\_of\_instances*

  List of strings representing the instances to be inserted into the new figure

## DESCRIPTION

**UNFLATTEN\_LOFIG** creates a new level of hierarchy, whose model name will be *figurename*, and instanciate it under the name *instancename* in the current figure. The instances whose name belong to the *list\_of\_instances* parameters are added in the new figure, and destroyed from the current figure.

## 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_UNFLATTEN_LOFIG("newfig", "newins", "instance", ..., 0);
	/∗ Save all that on disk ∗/
	GENLIB_SAVE_LOFIG();
}
```

## SEE ALSO

[**genlib**(1)](/genlib/1.md), [**GENLIB\_FLATTEN\_LOFIG**(3)](/GENLIB_FLATTEN_LOFIG/3.md).
