GENLIB_DEF_LOFIG.3alc - Man Page

open a netlist model as current figure

Synopsis

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

Parameters

cellname

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

Description

DEF_LOFIG defines the current working structural figure by it's name,  the cellname argument. It can be use anywhere in the genlib  program, but must appear at least once at the top of it, since it also  initialize the user's preferences through environment variables.
If the figure called cellname doesn't exists in memory, it is created.  If it already exists in memory, it makes it the current working figure.  DEF_LOFIG doesn't look on disk for the figure cellname,  so be careful not to overwrite an existing file while saving later on.

Example

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

See Also

genlib(1), GENLIB_SAVE_LOFIG(3).

Referenced By

genlib.1alc(1), GENLIB_LOAD_LOFIG.3alc(3), GENLIB_LOINS.3alc(3), GENLIB_LOINSE.3alc(3), GENLIB_SAVE_LOFIG.3alc(3), GENLIB_SET_LOCAP.3alc(3), GENLIB_SET_LORES.3alc(3), GENLIB_SET_LOSELF.3alc(3).

ASIM/LIP6 PROCEDURAL GENERATION LANGUAGE