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
0ca7e355
Commit
0ca7e355
authored
Jul 18, 2019
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding handling of objects without fanout in %retime.
parent
2de35735
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletions
+15
-1
src/base/wln/wlnRetime.c
+15
-1
No files found.
src/base/wln/wlnRetime.c
View file @
0ca7e355
...
...
@@ -148,11 +148,23 @@ int Wln_RetComputeFfClasses( Wln_Ntk_t * pNtk, Vec_Int_t * vClasses )
}
Wln_Ret_t
*
Wln_RetAlloc
(
Wln_Ntk_t
*
pNtk
)
{
Wln_Ret_t
*
p
;
int
k
,
iObj
,
iFanin
;
Wln_Ret_t
*
p
;
int
k
,
iObj
,
iFanin
,
fFirst
=
1
;
Vec_Int_t
*
vRefsCopy
=
Vec_IntAlloc
(
0
);
p
=
ABC_CALLOC
(
Wln_Ret_t
,
1
);
p
->
pNtk
=
pNtk
;
Wln_NtkCreateRefs
(
pNtk
);
// print objects without fanout
Wln_NtkForEachObj
(
pNtk
,
iObj
)
if
(
Wln_ObjRefs
(
pNtk
,
iObj
)
==
0
&&
!
Wln_ObjIsCio
(
pNtk
,
iObj
)
)
{
if
(
fFirst
)
{
fFirst
=
0
;
printf
(
"Objects without fanout:
\n
"
);
}
Wln_ObjPrint
(
pNtk
,
iObj
);
}
// start fanin/fanout maps
Wln_NtkStartFaninMap
(
pNtk
,
&
p
->
vFanins
,
2
);
Wln_NtkStartFanoutMap
(
pNtk
,
&
p
->
vFanouts
,
&
pNtk
->
vRefs
,
2
);
ABC_SWAP
(
Vec_Int_t
,
*
vRefsCopy
,
pNtk
->
vRefs
);
...
...
@@ -372,6 +384,8 @@ int Wln_RetCheckForward( Wln_Ret_t * p, Vec_Int_t * vSet )
static
inline
int
Wln_RetCheckBackwardOne
(
Wln_Ret_t
*
p
,
int
iObj
)
{
int
k
,
iFanin
,
*
pLink
,
iFlop
,
Class
=
-
1
;
if
(
Wln_ObjRefs
(
p
->
pNtk
,
iObj
)
==
0
)
return
0
;
Wln_RetForEachFanout
(
p
,
iObj
,
iFanin
,
pLink
,
k
)
{
if
(
!
pLink
[
0
]
)
...
...
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