Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
abc
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
abc
Commits
a4f80c1d
Commit
a4f80c1d
authored
Oct 13, 2013
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleaning up buffering code.
parent
89cab3ad
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
0 additions
and
125 deletions
+0
-125
src/map/scl/scl.c
+0
-0
src/map/scl/sclDnsize.c
+0
-2
src/map/scl/sclSize.c
+0
-120
src/map/scl/sclSize.h
+0
-1
src/map/scl/sclUpsize.c
+0
-2
No files found.
src/map/scl/scl.c
View file @
a4f80c1d
This diff is collapsed.
Click to expand it.
src/map/scl/sclDnsize.c
View file @
a4f80c1d
...
...
@@ -122,8 +122,6 @@ clk = Abc_Clock();
continue
;
if
(
i
>
Notches
)
break
;
// if ( p->vInDrive && !Abc_SclInputDriveOk( p, pObj, pCellNew ) )
// continue;
// set new cell
Abc_SclObjSetCell
(
pObj
,
pCellNew
);
Abc_SclUpdateLoad
(
p
,
pObj
,
pCellOld
,
pCellNew
);
...
...
src/map/scl/sclSize.c
View file @
a4f80c1d
...
...
@@ -813,126 +813,6 @@ void Abc_SclPrintBuffers( SC_Lib * pLib, Abc_Ntk_t * pNtk, int fVerbose )
}
/**Function*************************************************************
Synopsis [Checks if the input drive capability is ok.]
Description []
SideEffects []
SeeAlso []
***********************************************************************/
int
Abc_SclInputDriveOk
(
SC_Man
*
p
,
Abc_Obj_t
*
pObj
,
SC_Cell
*
pCell
)
{
Abc_Obj_t
*
pFanin
;
int
i
;
assert
(
Abc_ObjFaninNum
(
pObj
)
==
pCell
->
n_inputs
);
Abc_ObjForEachFanin
(
pObj
,
pFanin
,
i
)
if
(
Abc_ObjIsPi
(
pFanin
)
&&
Abc_SclObjInDrive
(
p
,
pFanin
)
>
0
&&
(
Abc_SclObjInDrive
(
p
,
pFanin
)
/
Abc_ObjFanoutNum
(
pFanin
))
<
SC_CellPinCap
(
pCell
,
i
)
)
return
0
;
return
1
;
}
/**Function*************************************************************
Synopsis [Select nodes that need to be buffered.]
Description []
SideEffects []
SeeAlso []
***********************************************************************/
Vec_Wec_t
*
Abc_SclSelectSplitNodes
(
SC_Man
*
p
,
Abc_Ntk_t
*
pNtk
)
{
Vec_Wec_t
*
vSplits
;
Vec_Int_t
*
vCrits
,
*
vNonCrits
,
*
vLevel
;
Abc_Obj_t
*
pObj
,
*
pFanout
;
int
i
,
k
;
assert
(
p
->
EstLoadMax
>
0
);
vCrits
=
Vec_IntAlloc
(
1000
);
vNonCrits
=
Vec_IntAlloc
(
1000
);
vSplits
=
Vec_WecAlloc
(
1000
);
Abc_NtkForEachNodeCi
(
pNtk
,
pObj
,
i
)
{
if
(
Abc_SclObjLoadValue
(
p
,
pObj
)
<
1
)
{
// printf( "%d ", Abc_ObjFanoutNum(pObj) );
continue
;
}
/*
printf( "%d : %.0f ", i, 0.5 * (Abc_SclObjLoad(p, pObj)->fall + Abc_SclObjLoad(p, pObj)->rise) );
Abc_ObjForEachFanout( pObj, pFanout, k )
printf( "%.1f ", SC_CellPinCapAve(Abc_SclObjCell(pFanout)) );
printf( "\n" );
*/
// skip non-critical nodes
// if ( Abc_SclObjSlack(p, pObj) > 100 )
// continue;
// collect non-critical fanouts of the node
Vec_IntClear
(
vCrits
);
Vec_IntClear
(
vNonCrits
);
Abc_ObjForEachFanout
(
pObj
,
pFanout
,
k
)
if
(
Abc_SclObjGetSlack
(
p
,
pFanout
,
p
->
MaxDelay0
)
<
100
)
Vec_IntPush
(
vCrits
,
Abc_ObjId
(
pFanout
)
);
else
Vec_IntPush
(
vNonCrits
,
Abc_ObjId
(
pFanout
)
);
// assert( Vec_IntSize(vNonCrits) < Abc_ObjFanoutNum(pObj) );
// skip if there is nothing to split
// if ( Vec_IntSize(vNonCrits) < 2 )
// continue;
// remember them
vLevel
=
Vec_WecPushLevel
(
vSplits
);
Vec_IntPush
(
vLevel
,
i
);
Vec_IntAppend
(
vLevel
,
vCrits
);
// remember them
vLevel
=
Vec_WecPushLevel
(
vSplits
);
Vec_IntPush
(
vLevel
,
i
);
Vec_IntAppend
(
vLevel
,
vNonCrits
);
}
Vec_IntFree
(
vCrits
);
Vec_IntFree
(
vNonCrits
);
// print out
printf
(
"Collected %d nodes to split.
\n
"
,
Vec_WecSize
(
vSplits
)
);
return
vSplits
;
}
void
Abc_SclPerformSplit
(
SC_Man
*
p
,
Abc_Ntk_t
*
pNtk
,
Vec_Wec_t
*
vSplits
)
{
Abc_Obj_t
*
pObj
,
*
pObjInv
,
*
pFanout
;
Vec_Int_t
*
vLevel
;
int
i
,
k
;
assert
(
pNtk
->
vPhases
!=
NULL
);
Vec_WecForEachLevel
(
vSplits
,
vLevel
,
i
)
{
pObj
=
Abc_NtkObj
(
pNtk
,
Vec_IntEntry
(
vLevel
,
0
)
);
pObjInv
=
Abc_NtkCreateNodeInv
(
pNtk
,
pObj
);
Abc_NtkForEachObjVecStart
(
vLevel
,
pNtk
,
pFanout
,
k
,
1
)
{
Abc_ObjFaninFlipPhase
(
pFanout
,
Abc_NodeFindFanin
(
pFanout
,
pObj
)
);
Abc_ObjPatchFanin
(
pFanout
,
pObj
,
pObjInv
);
}
}
Vec_IntFillExtra
(
pNtk
->
vPhases
,
Abc_NtkObjNumMax
(
pNtk
),
0
);
}
Abc_Ntk_t
*
Abc_SclBuffSizeStep
(
SC_Lib
*
pLib
,
Abc_Ntk_t
*
pNtk
,
int
nTreeCRatio
,
int
fUseWireLoads
)
{
SC_Man
*
p
;
Vec_Wec_t
*
vSplits
;
p
=
Abc_SclManStart
(
pLib
,
pNtk
,
fUseWireLoads
,
1
,
0
,
nTreeCRatio
);
Abc_SclTimeNtkPrint
(
p
,
0
,
0
);
if
(
p
->
nEstNodes
)
printf
(
"Estimated nodes = %d.
\n
"
,
p
->
nEstNodes
);
vSplits
=
Abc_SclSelectSplitNodes
(
p
,
pNtk
);
Abc_SclPerformSplit
(
p
,
pNtk
,
vSplits
);
Vec_WecFree
(
vSplits
);
Abc_SclManFree
(
p
);
return
Abc_NtkDupDfs
(
pNtk
);
}
////////////////////////////////////////////////////////////////////////
/// END OF FILE ///
////////////////////////////////////////////////////////////////////////
...
...
src/map/scl/sclSize.h
View file @
a4f80c1d
...
...
@@ -571,7 +571,6 @@ extern void Abc_SclTimeIncInsert( SC_Man * p, Abc_Obj_t * pObj );
extern
void
Abc_SclTimeIncUpdateLevel
(
Abc_Obj_t
*
pObj
);
extern
void
Abc_SclTimePerform
(
SC_Lib
*
pLib
,
Abc_Ntk_t
*
pNtk
,
int
nTreeCRatio
,
int
fUseWireLoads
,
int
fShowAll
,
int
fPrintPath
,
int
fDumpStats
);
extern
void
Abc_SclPrintBuffers
(
SC_Lib
*
pLib
,
Abc_Ntk_t
*
pNtk
,
int
fVerbose
);
extern
int
Abc_SclInputDriveOk
(
SC_Man
*
p
,
Abc_Obj_t
*
pObj
,
SC_Cell
*
pCell
);
/*=== sclUpsize.c ===============================================================*/
extern
int
Abc_SclCountNearCriticalNodes
(
SC_Man
*
p
);
extern
void
Abc_SclUpsizePerform
(
SC_Lib
*
pLib
,
Abc_Ntk_t
*
pNtk
,
SC_SizePars
*
pPars
);
...
...
src/map/scl/sclUpsize.c
View file @
a4f80c1d
...
...
@@ -291,8 +291,6 @@ int Abc_SclFindBestCell( SC_Man * p, Abc_Obj_t * pObj, Vec_Int_t * vRecalcs, Vec
continue
;
if
(
k
>
Notches
)
break
;
// if ( p->vInDrive && !Abc_SclInputDriveOk( p, pObj, pCellNew ) )
// continue;
// set new cell
Abc_SclObjSetCell
(
pObj
,
pCellNew
);
Abc_SclUpdateLoad
(
p
,
pObj
,
pCellOld
,
pCellNew
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment