Go to the source code of this file.
|
ABC_NAMESPACE_IMPL_START void | Tim_ManCreateBox (Tim_Man_t *p, int firstIn, int nIns, int firstOut, int nOuts, int iDelayTable) |
| DECLARATIONS ///. More...
|
|
int | Tim_ManBoxForCi (Tim_Man_t *p, int iCi) |
|
int | Tim_ManBoxForCo (Tim_Man_t *p, int iCo) |
|
int | Tim_ManBoxInputFirst (Tim_Man_t *p, int iBox) |
|
int | Tim_ManBoxInputLast (Tim_Man_t *p, int iBox) |
|
int | Tim_ManBoxOutputFirst (Tim_Man_t *p, int iBox) |
|
int | Tim_ManBoxOutputLast (Tim_Man_t *p, int iBox) |
|
int | Tim_ManBoxInputNum (Tim_Man_t *p, int iBox) |
|
int | Tim_ManBoxOutputNum (Tim_Man_t *p, int iBox) |
|
int | Tim_ManBoxDelayTableId (Tim_Man_t *p, int iBox) |
|
float * | Tim_ManBoxDelayTable (Tim_Man_t *p, int iBox) |
|
int | Tim_ManBoxIsBlack (Tim_Man_t *p, int iBox) |
|
int | Tim_ManBoxCopy (Tim_Man_t *p, int iBox) |
|
void | Tim_ManBoxSetCopy (Tim_Man_t *p, int iBox, int iCopy) |
|
int | Tim_ManBoxFindFromCiNum (Tim_Man_t *p, int iCiNum) |
|
int Tim_ManBoxCopy |
( |
Tim_Man_t * |
p, |
|
|
int |
iBox |
|
) |
| |
Function*************************************************************
Synopsis [Returns the copy of the box.]
Description []
SideEffects []
SeeAlso []
Definition at line 274 of file timBox.c.
static Tim_Box_t * Tim_ManBox(Tim_Man_t *p, int i)
float* Tim_ManBoxDelayTable |
( |
Tim_Man_t * |
p, |
|
|
int |
iBox |
|
) |
| |
Function*************************************************************
Synopsis [Return the delay table.]
Description []
SideEffects []
SeeAlso []
Definition at line 234 of file timBox.c.
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 );
static Tim_Box_t * Tim_ManBox(Tim_Man_t *p, int i)
static void * Vec_PtrEntry(Vec_Ptr_t *p, int i)
typedefABC_NAMESPACE_HEADER_START struct Tim_Box_t_ Tim_Box_t
INCLUDES ///.
int Tim_ManBoxDelayTableId |
( |
Tim_Man_t * |
p, |
|
|
int |
iBox |
|
) |
| |
Function*************************************************************
Synopsis [Return the delay table id.]
Description []
SideEffects []
SeeAlso []
Definition at line 218 of file timBox.c.
static Tim_Box_t * Tim_ManBox(Tim_Man_t *p, int i)
int Tim_ManBoxFindFromCiNum |
( |
Tim_Man_t * |
p, |
|
|
int |
iCiNum |
|
) |
| |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 306 of file timBox.c.
int Tim_ManBoxOutputFirst(Tim_Man_t *p, int iBox)
#define Tim_ManForEachBox(p, pBox, i)
int Tim_ManPiNum(Tim_Man_t *p)
int Tim_ManCiNum(Tim_Man_t *p)
typedefABC_NAMESPACE_HEADER_START struct Tim_Box_t_ Tim_Box_t
INCLUDES ///.
int Tim_ManBoxForCi |
( |
Tim_Man_t * |
p, |
|
|
int |
iCi |
|
) |
| |
Function*************************************************************
Synopsis [Returns the box number for the given input.]
Description []
SideEffects []
SeeAlso []
Definition at line 86 of file timBox.c.
90 return p->pCis[iCi].iObj2Box;
int Tim_ManBoxForCo |
( |
Tim_Man_t * |
p, |
|
|
int |
iCo |
|
) |
| |
Function*************************************************************
Synopsis [Returns the box number for the given output.]
Description []
SideEffects []
SeeAlso []
Definition at line 104 of file timBox.c.
106 if ( iCo >=
p->nCos )
108 return p->pCos[iCo].iObj2Box;
int Tim_ManBoxInputFirst |
( |
Tim_Man_t * |
p, |
|
|
int |
iBox |
|
) |
| |
Function*************************************************************
Synopsis [Returns the first input of the box.]
Description []
SideEffects []
SeeAlso []
Definition at line 122 of file timBox.c.
static Tim_Box_t * Tim_ManBox(Tim_Man_t *p, int i)
int Tim_ManBoxInputLast |
( |
Tim_Man_t * |
p, |
|
|
int |
iBox |
|
) |
| |
Function*************************************************************
Synopsis [Returns the last input of the box.]
Description []
SideEffects []
SeeAlso []
Definition at line 138 of file timBox.c.
int Tim_ManBoxInputNum(Tim_Man_t *p, int iBox)
static Tim_Box_t * Tim_ManBox(Tim_Man_t *p, int i)
int Tim_ManBoxInputNum |
( |
Tim_Man_t * |
p, |
|
|
int |
iBox |
|
) |
| |
Function*************************************************************
Synopsis [Returns the number of box inputs.]
Description []
SideEffects []
SeeAlso []
Definition at line 186 of file timBox.c.
static Tim_Box_t * Tim_ManBox(Tim_Man_t *p, int i)
int Tim_ManBoxIsBlack |
( |
Tim_Man_t * |
p, |
|
|
int |
iBox |
|
) |
| |
Function*************************************************************
Synopsis [Return 1 if the box is black.]
Description []
SideEffects []
SeeAlso []
Definition at line 257 of file timBox.c.
static Tim_Box_t * Tim_ManBox(Tim_Man_t *p, int i)
int Tim_ManBoxOutputFirst |
( |
Tim_Man_t * |
p, |
|
|
int |
iBox |
|
) |
| |
Function*************************************************************
Synopsis [Returns the first output of the box.]
Description []
SideEffects []
SeeAlso []
Definition at line 154 of file timBox.c.
static Tim_Box_t * Tim_ManBox(Tim_Man_t *p, int i)
int Tim_ManBoxOutputLast |
( |
Tim_Man_t * |
p, |
|
|
int |
iBox |
|
) |
| |
Function*************************************************************
Synopsis [Returns the last output of the box.]
Description []
SideEffects []
SeeAlso []
Definition at line 170 of file timBox.c.
static Tim_Box_t * Tim_ManBox(Tim_Man_t *p, int i)
int Tim_ManBoxOutputNum(Tim_Man_t *p, int iBox)
int Tim_ManBoxOutputNum |
( |
Tim_Man_t * |
p, |
|
|
int |
iBox |
|
) |
| |
Function*************************************************************
Synopsis [Returns the number of box outputs.]
Description []
SideEffects []
SeeAlso []
Definition at line 202 of file timBox.c.
static Tim_Box_t * Tim_ManBox(Tim_Man_t *p, int i)
void Tim_ManBoxSetCopy |
( |
Tim_Man_t * |
p, |
|
|
int |
iBox, |
|
|
int |
iCopy |
|
) |
| |
Function*************************************************************
Synopsis [Sets the copy of the box.]
Description []
SideEffects []
SeeAlso []
Definition at line 290 of file timBox.c.
static Tim_Box_t * Tim_ManBox(Tim_Man_t *p, int i)
DECLARATIONS ///.
ITERATORS ///.
CFile****************************************************************
FileName [timBox.c]
SystemName [ABC: Logic synthesis and verification system.]
PackageName [Hierarchy/timing manager.]
Synopsis [Manipulation of timing boxes.]
Author [Alan Mishchenko]
Affiliation [UC Berkeley]
Date [Ver. 1.0. Started - April 28, 2007.]
Revision [
- Id:
- timBox.c,v 1.00 2007/04/28 00:00:00 alanmi Exp
]FUNCTION DEFINITIONS /// Function*************************************************************
Synopsis [Creates the new timing box.]
Description []
SideEffects []
SeeAlso []
Definition at line 44 of file timBox.c.
48 if (
p->vBoxes == NULL )
54 pBox->iDelayTable = iDelayTable;
56 pBox->nOutputs = nOuts;
57 for ( i = 0; i < nIns; i++ )
59 assert( firstIn+i < p->nCos );
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++ )
66 assert( firstOut+i < p->nCis );
67 pBox->Inouts[nIns+i] = firstOut+i;
68 p->pCis[firstOut+i].iObj2Box = pBox->iBox;
69 p->pCis[firstOut+i].iObj2Num = i;
static void Vec_PtrPush(Vec_Ptr_t *p, void *Entry)
static int Vec_PtrSize(Vec_Ptr_t *p)
char * Mem_FlexEntryFetch(Mem_Flex_t *p, int nBytes)
static Vec_Ptr_t * Vec_PtrAlloc(int nCap)
FUNCTION DEFINITIONS ///.
typedefABC_NAMESPACE_HEADER_START struct Tim_Box_t_ Tim_Box_t
INCLUDES ///.