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
3dd2325a
Commit
3dd2325a
authored
Jan 07, 2017
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding an option to not add buffers to decouple COs driven by the same internal node.
parent
460167ec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
src/base/abc/abcUtil.c
+7
-0
No files found.
src/base/abc/abcUtil.c
View file @
3dd2325a
...
@@ -1077,6 +1077,7 @@ void Abc_NtkLogicMakeSimpleCosTest( Abc_Ntk_t * pNtk, int fDuplicate )
...
@@ -1077,6 +1077,7 @@ void Abc_NtkLogicMakeSimpleCosTest( Abc_Ntk_t * pNtk, int fDuplicate )
***********************************************************************/
***********************************************************************/
int
Abc_NtkLogicMakeSimpleCos
(
Abc_Ntk_t
*
pNtk
,
int
fDuplicate
)
int
Abc_NtkLogicMakeSimpleCos
(
Abc_Ntk_t
*
pNtk
,
int
fDuplicate
)
{
{
int
fAddBuffers
=
1
;
Vec_Ptr_t
*
vDrivers
,
*
vCoTerms
;
Vec_Ptr_t
*
vDrivers
,
*
vCoTerms
;
Abc_Obj_t
*
pNode
,
*
pDriver
,
*
pDriverNew
,
*
pFanin
;
Abc_Obj_t
*
pNode
,
*
pDriver
,
*
pDriverNew
,
*
pFanin
;
int
i
,
k
,
LevelMax
,
nTotal
=
0
;
int
i
,
k
,
LevelMax
,
nTotal
=
0
;
...
@@ -1191,6 +1192,12 @@ int Abc_NtkLogicMakeSimpleCos( Abc_Ntk_t * pNtk, int fDuplicate )
...
@@ -1191,6 +1192,12 @@ int Abc_NtkLogicMakeSimpleCos( Abc_Ntk_t * pNtk, int fDuplicate )
// collect COs that needs fixing by adding buffers or duplicating
// collect COs that needs fixing by adding buffers or duplicating
vCoTerms
=
Vec_PtrAlloc
(
100
);
vCoTerms
=
Vec_PtrAlloc
(
100
);
Abc_NtkIncrementTravId
(
pNtk
);
Abc_NtkIncrementTravId
(
pNtk
);
// The following cases should be addressed only if the network is written
// into a BLIF file. Otherwise, it is possible to skip them:
// (1) if a CO points to a CI with a different name
// (2) if an internal node drives more than one CO
if
(
fAddBuffers
)
Abc_NtkForEachCo
(
pNtk
,
pNode
,
i
)
Abc_NtkForEachCo
(
pNtk
,
pNode
,
i
)
{
{
// if the driver is a CI and has different name, this is an error
// if the driver is a CI and has different name, this is an error
...
...
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