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

# GENLIB\_LOAD\_LOFIG(3)

loads a netlist form disk and opens it as current figure

## NAME

GENLIB\_LOAD\_LOFIG - loads a netlist form disk and opens it as current figure

## SYNOPSYS

```
#include <genlib.h>
void GENLIB_LOAD_LOFIG(cellname)
char ∗cellname;
```

## PARAMETERS

- *cellname*

  Name of the cell which all futher calls to genlib logical functions will work on

## DESCRIPTION

**LOAD\_LOFIG** loads a netlist from disk and defines it as current working structural figure.  This overrides the working figure initialized by **DEF\_LOFIG**(3), if any. So the next call to **SAVE\_LOFIG** will save the cell called *cellname*.

## EXAMPLE

```
#include <genlib.h>
main()
{
	/∗ Loads the figure to work on  ∗/
	GENLIB_LOAD_LOFIG("cell");
	/∗ Add an instance in cell ∗/
	GENLIB_LOINS("model","instance", "sig1", "sig2", "sig3", "vdd", "vss", EOL);
	/∗ Save all that on disk ∗/
	GENLIB_SAVE_LOFIG();
}
```

## SEE ALSO

[**genlib**(1)](/genlib/1.md), [**GENLIB\_DEF\_LOFIG**(3)](/GENLIB_DEF_LOFIG/3.md). [**GENLIB\_SAVE\_LOFIG**(3)](/GENLIB_SAVE_LOFIG/3.md).
