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
c913fd88
Commit
c913fd88
authored
Aug 24, 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
19d6e169
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
0 deletions
+33
-0
src/base/abci/abcIf.c
+33
-0
No files found.
src/base/abci/abcIf.c
View file @
c913fd88
...
...
@@ -1066,6 +1066,34 @@ int Abc_NtkIfCheckTfi( Abc_Ntk_t * pNtk, Abc_Obj_t * pOld, Abc_Obj_t * pNew )
return
Abc_NtkIfCheckTfi_rec
(
pNew
,
pOld
);
}
/**Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
***********************************************************************/
void
Abc_NtkIfCheckRealNodes
(
Abc_Ntk_t
*
pNtk
)
{
Abc_Obj_t
*
pObj
;
int
i
,
iNode
;
for
(
i
=
pNtk
->
nRealPos
;
i
<
Abc_NtkPoNum
(
pNtk
);
i
+=
5
)
{
iNode
=
Vec_IntEntry
(
pNtk
->
vRealNodes
,
i
+
3
-
pNtk
->
nRealPos
);
pObj
=
Abc_NtkObj
(
pNtk
,
iNode
);
assert
(
Abc_ObjFaninNum
(
pObj
)
==
2
);
iNode
=
Vec_IntEntry
(
pNtk
->
vRealNodes
,
i
+
4
-
pNtk
->
nRealPos
);
pObj
=
Abc_NtkObj
(
pNtk
,
iNode
);
assert
(
Abc_ObjFaninNum
(
pObj
)
==
3
);
}
}
/**Function*************************************************************
Synopsis [Restores the structure.]
...
...
@@ -1151,6 +1179,8 @@ void Abc_NtkRecreatePoDrivers( If_Man_t * p, Abc_Ntk_t * pNtkNew )
}
Vec_PtrFree
(
vFanins
);
Abc_NtkIfCheckRealNodes
(
pNtkNew
);
// map internal nodes into PO numbers
vNodeMap
=
Vec_IntStartFull
(
Abc_NtkObjNumMax
(
pNtkNew
)
);
Vec_VecForEachLevelInt
(
pNtkNew
->
vRealPos
,
vInfo
,
i
)
...
...
@@ -1229,6 +1259,9 @@ void Abc_NtkRecreatePoDrivers( If_Man_t * p, Abc_Ntk_t * pNtkNew )
printf
(
"The number of real LUTs = %d. Real LUT area = %.2f.
\n
"
,
nRealLuts
,
RealLutArea
);
pNtkNew
->
nRealLuts
=
nRealLuts
;
pNtkNew
->
nRealArea
=
RealLutArea
;
Abc_NtkIfCheckRealNodes
(
pNtkNew
);
}
////////////////////////////////////////////////////////////////////////
...
...
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