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
8e54792c
Commit
8e54792c
authored
Jul 29, 2013
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added commands 'maxsize' and 'unbuffer'.
parent
f09a7042
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
src/map/scl/sclBuffer.c
+8
-3
No files found.
src/map/scl/sclBuffer.c
View file @
8e54792c
...
...
@@ -90,13 +90,18 @@ static inline int Abc_SclObjIsBufInv( Abc_Obj_t * pObj )
{
return
Abc_ObjIsNode
(
pObj
)
&&
Abc_ObjFaninNum
(
pObj
)
==
1
;
}
static
inline
int
Abc_SclIsInv
(
Abc_Obj_t
*
pObj
)
{
assert
(
Abc_ObjIsNode
(
pObj
)
);
return
Mio_GateReadTruth
((
Mio_Gate_t
*
)
pObj
->
pData
)
==
ABC_CONST
(
0x5555555555555555
);
}
int
Abc_SclGetRealFaninLit
(
Abc_Obj_t
*
pObj
)
{
int
iLit
;
if
(
!
Abc_SclObjIsBufInv
(
pObj
)
)
return
Abc_Var2Lit
(
Abc_ObjId
(
pObj
),
0
);
iLit
=
Abc_SclGetRealFaninLit
(
Abc_ObjFanin0
(
pObj
)
);
return
Abc_LitNotCond
(
iLit
,
Abc_
Node
IsInv
(
pObj
)
);
return
Abc_LitNotCond
(
iLit
,
Abc_
Scl
IsInv
(
pObj
)
);
}
Abc_Ntk_t
*
Abc_SclUnBufferPerform
(
Abc_Ntk_t
*
pNtk
,
int
fVerbose
)
{
...
...
@@ -106,7 +111,7 @@ Abc_Ntk_t * Abc_SclUnBufferPerform( Abc_Ntk_t * pNtk, int fVerbose )
// assign inverters
vLits
=
Vec_IntStartFull
(
Abc_NtkObjNumMax
(
pNtk
)
);
Abc_NtkForEachNode
(
pNtk
,
pObj
,
i
)
if
(
Abc_
Node
IsInv
(
pObj
)
&&
!
Abc_SclObjIsBufInv
(
Abc_ObjFanin0
(
pObj
))
)
if
(
Abc_
Scl
IsInv
(
pObj
)
&&
!
Abc_SclObjIsBufInv
(
Abc_ObjFanin0
(
pObj
))
)
Vec_IntWriteEntry
(
vLits
,
Abc_ObjFaninId0
(
pObj
),
Abc_ObjId
(
pObj
)
);
// transfer fanins
Abc_NtkForEachNodeCo
(
pNtk
,
pObj
,
i
)
...
...
@@ -680,7 +685,7 @@ void Abc_BufPerformOne( Buf_Man_t * p, int iPivot, int fVerbose )
{
Abc_Obj_t
*
pObj
,
*
pFanout
;
int
i
,
j
,
nCrit
,
nNonCrit
;
int
DelayMax
=
p
->
DelayMax
;
//
int DelayMax = p->DelayMax;
assert
(
Abc_NtkObjNumMax
(
p
->
pNtk
)
+
30
<
p
->
nObjAlloc
);
pObj
=
Abc_NtkObj
(
p
->
pNtk
,
iPivot
);
// assert( Vec_FltEntry(p->vCounts, iPivot) == (float)Abc_ObjFanoutNum(pObj) );
...
...
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