DP_DEFLOFIG(3)

NAME
DP_DEFLOFIG - Open a new Data-Path figure/model.

SYNOPSYS
#include  <fpgen.h>
void  DP_DEFLOFIG(
    char *aFigName ,  /* Figure/model name                 */
    long  aMaxWidth,  /* Maximal operator bus wide         */
    long  aMSB0    ); /* Select the type of bus indexation */

ARGUMENTS
aFiglName    Give the data-path model name.
aMaxWidth    Set the maximal width of the operators bus. This is also
the width used when a macro-function is called width the argument DEFAULT_WIDTH as the Width parameter.
aMSB0    Tells how the buses will be indexed. Two values are allowed :
-    LSB_INDEX_ZERO    :    The least significant bit have the index of
zero.
            (so bus are noted [MaxWidth-1:0])
-    MSB_INDEX_ZERO    :    The most significant bit have the index of
zero.
            (so bus are noted [0:MaxWidth-1])
Notice that, in the layout, the LSB is always on the slice numdered zero.

DESCRIPTION
    DP_DEFLOFIG define the current working data-path. The call to this function must be done before to use any other fpgen macro-function. It doesn't look on the disk for the figure ModelName, so be careful to not overwrite an existing file while saving later on.

EXAMPLE
#include  <genlib.h>
#include  <fpgen.h>

main()
{
    /* Create a new data-path figure names "my_sweet_data_path". */
    DP_DEFLOFIG("my_sweet_data_path", 32, LSB_INDEX_ZERO);
    /* Data-path netlist description, using macro-functions. */
    /* Save the model on disk. */
    DP_SAVLOFIG();
}

SEE ALSO
fpgen(1), dpr(1), genlib(1), mbk(1), DP_DEFLOFIG(3), DP_SAVLOFIG(3), DP_LOCON(3), DP_IMPORT(3), DP_INV(3), DP_BUSE(3), DP_AND2(3), DP_NAND2(3), DP_AND3(3), DP_NAND3(3), DP_OR2(3), DP_NOR2(3), DP_OR3(3), DP_NOR3(3), DP_XOR2(3), DP_XNOR2(3), DP_NAND2MASK(3), DP_NOR2MASK(3), DP_XNOR2MASK(3), DP_CONST(3), DP_NMUX2CS(3), DP_MUX2CS(3), DP_MUX3CS(3), DP_MUX4CS(3), DP_MUX5CS(3), DP_BUSE(3), DP_NBUSE(3), DP_ADD2F(3), DP_ADSB2F(3), DP_SHIFT(3), DP_MULT(3), DP_MULTP(3), DP_NUL(3), DP_PDFF(3), DP_PDFFR(3), DP_PDFFT(3), DP_PDFFRT(3), DP_RFG1C0(3), DP_RFG1CC(3), DP_RFG2C0(3), DP_RFG2CC(3) ,