DP_LOCON(3)

NAME
DP_LOCON - Logical connector

SYNOPSYS
#include <genlib.h>
#include <fpgen.h>
void DP_LOCON(
     char *aCon,  /*       Connector name       */
     char  aDir,  /* Direction of the connector */
     char *aSig); /*    Internal signal name    */

ARGUMENTS
aCon    Name of the connector to be created in the current figure.
aDir    Indicates the connector behavior regarding signal propagation.
The available values are listed below, they are the same as in the genlib(1) description language :
-    IN    :    Input.
-    OUT    :    Output.
-    INOUT    :    Input/output.
-    UNKNOW    :    If one doesn't know what it is.
-    TRISTATE    :    High impedance output.
-    TRANSV    :    Transceiver, that means TRISTATE input plus
output.
aSig    Name of the internal signal with which the connector is
linked. For better understanding this name could by the same as given for aCon.

DESCRIPTION
    DP_LOCON add a logical connector aCon to the interface of the actual working figure. This connector is logicaly linked to the signal aSig.
    All the DP_LOCON function calls must immediatly follow the DP_DEFLOFIG function call.

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 connectors declaration. */
    DP_LOCON("pin_ctrl1"      , IN   , "pin_ctrl1"      );
    DP_LOCON("bus_data1[31:0]", IN   , "bus_data1[31:0]");
    DP_LOCON("pin_data2[31]"  ,   OUT, "pin_data2[31]"  );
    DP_LOCON(BUS("bus_data3",31,0), IN   ,BUS("bus_data2",31,0));
	DP_LOCON(ELM("pin_data4",31  )    OUT,ELM("pin_data4",31  ));
    /* 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) ,