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
fbd6a08e
Commit
fbd6a08e
authored
Jul 16, 2011
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Other changes to enable new features in the mapper (bug fix).
parent
7ad51056
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletions
+17
-1
src/base/abci/abcIf.c
+17
-1
No files found.
src/base/abci/abcIf.c
View file @
fbd6a08e
...
...
@@ -278,6 +278,7 @@ Abc_Ntk_t * Abc_NtkFromIf( If_Man_t * pIfMan, Abc_Ntk_t * pNtk )
{
// collect drivers
Vec_Ptr_t
*
vDrivers
,
*
vFanins
;
int
nRealLuts
,
nStopPoint
;
vDrivers
=
Vec_PtrAlloc
(
Abc_NtkCoNum
(
pNtk
)
);
Abc_NtkForEachCo
(
pNtk
,
pNode
,
i
)
{
...
...
@@ -291,6 +292,8 @@ Abc_Ntk_t * Abc_NtkFromIf( If_Man_t * pIfMan, Abc_Ntk_t * pNtk )
pNodeNew
=
Abc_NtkCreateNodeBuf
(
pNtkNew
,
pNodeNew
);
Vec_PtrPush
(
vDrivers
,
pNodeNew
);
}
nStopPoint
=
Abc_NtkObjNumMax
(
pNtkNew
);
// update drivers
vFanins
=
Vec_PtrAlloc
(
2
);
for
(
i
=
pNtk
->
nRealPos
;
i
<
Abc_NtkPoNum
(
pNtk
);
i
+=
5
)
...
...
@@ -300,6 +303,9 @@ Abc_Ntk_t * Abc_NtkFromIf( If_Man_t * pIfMan, Abc_Ntk_t * pNtk )
Vec_PtrPush
(
vFanins
,
(
Abc_Obj_t
*
)
Vec_PtrEntry
(
vDrivers
,
i
+
0
)
);
Vec_PtrPush
(
vFanins
,
(
Abc_Obj_t
*
)
Vec_PtrEntry
(
vDrivers
,
i
+
1
)
);
pExor
=
Abc_NtkCreateNodeExor
(
pNtkNew
,
vFanins
);
// update polarity
if
(
strstr
(
Abc_ObjName
(
Abc_NtkPo
(
pNtk
,
i
)),
"SUB"
)
!=
NULL
)
pExor
->
pData
=
Hop_Not
(
(
Hop_Obj_t
*
)
pExor
->
pData
);
// create second XOR
Vec_PtrClear
(
vFanins
);
Vec_PtrPush
(
vFanins
,
pExor
);
...
...
@@ -319,7 +325,17 @@ Abc_Ntk_t * Abc_NtkFromIf( If_Man_t * pIfMan, Abc_Ntk_t * pNtk )
Vec_PtrFree
(
vDrivers
);
// sweep
nDupGates
=
Abc_NtkCleanup
(
pNtkNew
,
0
);
printf
(
"The number of removed nodes = %d.
\n
"
,
nDupGates
);
// printf( "The number of removed nodes = %d.\n", nDupGates );
// count non-trivial LUTs nodes
nRealLuts
=
0
;
Abc_NtkForEachNode
(
pNtkNew
,
pNode
,
i
)
{
if
(
(
int
)
Abc_ObjId
(
pNode
)
>
nStopPoint
)
break
;
if
(
Abc_ObjFaninNum
(
pNode
)
>
1
)
nRealLuts
++
;
}
printf
(
"The number of real LUTs = %d.
\n
"
,
nRealLuts
);
}
else
{
...
...
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