DP_ADSB2(3)

NAME
DP_ADSB2 - adder-substractor

SYNOPSYS
#include  <fpgen.h>
void  DP_ADSB2(
    char *InstName,  /*          Instance name           */
    char *BusI0,     /* IN       First Operand      DATA */
    char *BusI1,     /* IN       Second Operand     DATA */
    char *SigOp,     /* IN            Codop         CTRL */
    char *SigCout,   /* OUT         Carry out(n)    CTRL */
    char *SigCovr ,  /* OUT   Previous carry(n-1)   CTRL */
    char *BusO, EOL);/* OUT       Result output     DATA */

ARGUMENTS
SigOp    CTRL    This one bit signal indicates the operation
(addition or substraction).
    - low     :   addition.
    - high     :   substraction.

DESCRIPTION

    DP_ADSB2 creates an adder-substracter that has a wide of Width bits and then instanciates it with the name InstName. The maximal authorized value for Width is the full width of the current data-path, set by the previous call to the function DP_DEFLOFIG. In the layout the leaf cells are placed on the slices numbered from Slice to Slice+Width-1 (the bottom slice is 0).

EXAMPLE
    DP_ADSB2( "adsb20", 32,
                         0,
                        "input0[3:0]",
                        "input1[3:0]",
                            "op"     ,
                            "c31"     ,
                            "c30"     ,
                        "output[3:0]", EOL);

SEE ALSO
fpgen(3), adsb2g(3), fplib(3), mbk(1)