48 if ( p->vBoxes == NULL )
54 pBox->iDelayTable = iDelayTable;
56 pBox->nOutputs = nOuts;
57 for ( i = 0; i < nIns; i++ )
60 pBox->Inouts[i] = firstIn+i;
61 p->pCos[firstIn+i].iObj2Box = pBox->iBox;
62 p->pCos[firstIn+i].iObj2Num = i;
64 for ( i = 0; i < nOuts; i++ )
67 pBox->Inouts[nIns+i] = firstOut+i;
68 p->pCis[firstOut+i].iObj2Box = pBox->iBox;
69 p->pCis[firstOut+i].iObj2Num = i;
90 return p->pCis[iCi].iObj2Box;
106 if ( iCo >= p->nCos )
108 return p->pCos[iCo].iObj2Box;
238 if ( pBox->iDelayTable < 0 )
240 pTable = (
float *)
Vec_PtrEntry( p->vDelayTables, pBox->iDelayTable );
241 assert( (
int)pTable[1] == pBox->nInputs );
242 assert( (
int)pTable[2] == pBox->nOutputs );
int Tim_ManBoxCopy(Tim_Man_t *p, int iBox)
int Tim_ManBoxOutputFirst(Tim_Man_t *p, int iBox)
void Tim_ManBoxSetCopy(Tim_Man_t *p, int iBox, int iCopy)
#define Tim_ManForEachBox(p, pBox, i)
int Tim_ManBoxInputNum(Tim_Man_t *p, int iBox)
int Tim_ManBoxIsBlack(Tim_Man_t *p, int iBox)
static void Vec_PtrPush(Vec_Ptr_t *p, void *Entry)
int Tim_ManBoxFindFromCiNum(Tim_Man_t *p, int iCiNum)
static int Vec_PtrSize(Vec_Ptr_t *p)
char * Mem_FlexEntryFetch(Mem_Flex_t *p, int nBytes)
int Tim_ManPiNum(Tim_Man_t *p)
int Tim_ManBoxForCo(Tim_Man_t *p, int iCo)
float * Tim_ManBoxDelayTable(Tim_Man_t *p, int iBox)
#define ABC_NAMESPACE_IMPL_END
int Tim_ManCiNum(Tim_Man_t *p)
int Tim_ManBoxInputFirst(Tim_Man_t *p, int iBox)
int Tim_ManBoxOutputLast(Tim_Man_t *p, int iBox)
ABC_NAMESPACE_IMPL_START void Tim_ManCreateBox(Tim_Man_t *p, int firstIn, int nIns, int firstOut, int nOuts, int iDelayTable)
DECLARATIONS ///.
int Tim_ManBoxInputLast(Tim_Man_t *p, int iBox)
static Tim_Box_t * Tim_ManBox(Tim_Man_t *p, int i)
#define ABC_NAMESPACE_IMPL_START
static void * Vec_PtrEntry(Vec_Ptr_t *p, int i)
static Vec_Ptr_t * Vec_PtrAlloc(int nCap)
FUNCTION DEFINITIONS ///.
int Tim_ManBoxDelayTableId(Tim_Man_t *p, int iBox)
int Tim_ManBoxForCi(Tim_Man_t *p, int iCi)
typedefABC_NAMESPACE_HEADER_START struct Tim_Man_t_ Tim_Man_t
INCLUDES ///.
typedefABC_NAMESPACE_HEADER_START struct Tim_Box_t_ Tim_Box_t
INCLUDES ///.
int Tim_ManBoxOutputNum(Tim_Man_t *p, int iBox)