genlib

Name

genlib  --  Procedural design language based upon C.

Description

genlib is a set of C functions dedicated to procedural generation purposes. From a user point of view, genlib is a circuit's description language that allows standard C programming flow control, variable use, and specialized functions in order to handle vlsi objects.

Based upon the Alliance mbk data structures, the genlib language gives the user the ability to describe both netlist and layout views, thus allowing both standard cell and full custom approachs.

Netlist capture

It is a hierachical structural description of a circuit in terms of connectors (I/Os), signals (nets), and instances.

The function calls used to handle the netlist view are :

Some facilities, in order to create vectors are also available :

Standard cell placement

The following functions allows to define a placement file for a standard cell design. This file can be used by the standard cell router ocr(1) :

Full custom symbolic layout

Those functions are dedicated to optimized full custom procedural layout. In order to provide some process independance, Alliance uses a symbolic layout approach (fixed grid without compaction).

The symbolic objects are segments (wires), vias (contacts), connectors (I/Os), references and instances. For more informations, see phseg(1), phvia(1), phcon(1), phref(1), phins(1) and alc(1).

In order to have information about each of these functions, use the online documentation with man(1), as in man function-name.

It is strongly recommended to read some books on C programming, in order to take full advantage of the C flow control possibilities, as it may greatly reduce the size of a genlib source code.

ENVIRONMENT VARIABLES

See the corresponding manual pages for further informations.

In order to compile and execute a genlib file, one has to call genlib with one argument, that is the genlib source file. The source file must have a .c extension, but the extension should not be mentionned on the command line.

The names used in genlib, as arguments to genlib functions, should be alphanumerical, including the underscore. They also are not case sensitive, so VDD is equivalent to vdd. Vectorized connectors or signal can be declareds using the [n:m] construct.

Synopsis

genlib [ -cklmnv ] [--no-rm-core] [--keep-makefile] [--keep-exec] [--keep-log] [--no-exec] [--verbose] {program} [-e program_args]

Options

Examples

Compile and run a file amd2901.c :

genlib -v amd2901
      

See Also

mbk(1),

Diagnostic

Many errors may occur while executing the source file, so refer to the proper genlib function manual for more. When an error occur, genlib left a log file <program>.grr. As <program>.c is a C program, all syntatic C error can occurs...

All genlib functions are listed below alphabetically sorted.