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
fc1897fb
Commit
fc1897fb
authored
Feb 03, 2016
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Making flop names after 'retime' more meaningful.
parent
be35a13a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
src/opt/ret/retArea.c
+3
-2
src/opt/ret/retIncrem.c
+3
-2
No files found.
src/opt/ret/retArea.c
View file @
fc1897fb
...
@@ -447,6 +447,7 @@ void Abc_NtkRetimeMinAreaUpdateLatches( Abc_Ntk_t * pNtk, Vec_Ptr_t * vMinCut, i
...
@@ -447,6 +447,7 @@ void Abc_NtkRetimeMinAreaUpdateLatches( Abc_Ntk_t * pNtk, Vec_Ptr_t * vMinCut, i
{
{
// add the buffer
// add the buffer
pBuffer
=
Abc_NtkCreateNodeBuf
(
pNtk
,
Abc_ObjFanin0
(
pLatchIn
)
);
pBuffer
=
Abc_NtkCreateNodeBuf
(
pNtk
,
Abc_ObjFanin0
(
pLatchIn
)
);
Abc_ObjAssignName
(
pBuffer
,
Abc_ObjName
(
pObj
),
"_buf"
);
Abc_ObjPatchFanin
(
pLatchIn
,
Abc_ObjFanin0
(
pLatchIn
),
pBuffer
);
Abc_ObjPatchFanin
(
pLatchIn
,
Abc_ObjFanin0
(
pLatchIn
),
pBuffer
);
Vec_PtrPush
(
vBuffers
,
pBuffer
);
Vec_PtrPush
(
vBuffers
,
pBuffer
);
// redirect edges to the unvisited fanouts of the node
// redirect edges to the unvisited fanouts of the node
...
@@ -474,8 +475,8 @@ void Abc_NtkRetimeMinAreaUpdateLatches( Abc_Ntk_t * pNtk, Vec_Ptr_t * vMinCut, i
...
@@ -474,8 +475,8 @@ void Abc_NtkRetimeMinAreaUpdateLatches( Abc_Ntk_t * pNtk, Vec_Ptr_t * vMinCut, i
pLatchOut
=
Abc_NtkCreateBo
(
pNtk
);
pLatchOut
=
Abc_NtkCreateBo
(
pNtk
);
pLatch
=
Abc_NtkCreateLatch
(
pNtk
);
pLatch
=
Abc_NtkCreateLatch
(
pNtk
);
pLatchIn
=
Abc_NtkCreateBi
(
pNtk
);
pLatchIn
=
Abc_NtkCreateBi
(
pNtk
);
Abc_ObjAssignName
(
pLatchOut
,
Abc_ObjName
(
p
Latch
),
"_out"
);
Abc_ObjAssignName
(
pLatchOut
,
Abc_ObjName
(
p
Obj
),
"_out"
);
Abc_ObjAssignName
(
pLatchIn
,
Abc_ObjName
(
p
Latch
),
"_in"
);
Abc_ObjAssignName
(
pLatchIn
,
Abc_ObjName
(
p
Obj
),
"_in"
);
// connect
// connect
Abc_ObjAddFanin
(
pLatchOut
,
pLatch
);
Abc_ObjAddFanin
(
pLatchOut
,
pLatch
);
Abc_ObjAddFanin
(
pLatch
,
pLatchIn
);
Abc_ObjAddFanin
(
pLatch
,
pLatchIn
);
...
...
src/opt/ret/retIncrem.c
View file @
fc1897fb
...
@@ -169,8 +169,8 @@ int Abc_NtkRetimeFinalizeLatches( Abc_Ntk_t * pNtk, st__table * tLatches, int nI
...
@@ -169,8 +169,8 @@ int Abc_NtkRetimeFinalizeLatches( Abc_Ntk_t * pNtk, st__table * tLatches, int nI
// this is a new latch
// this is a new latch
pLatchIn
=
Abc_NtkCreateBi
(
pNtk
);
pLatchIn
=
Abc_NtkCreateBi
(
pNtk
);
pLatchOut
=
Abc_NtkCreateBo
(
pNtk
);
pLatchOut
=
Abc_NtkCreateBo
(
pNtk
);
Abc_ObjAssignName
(
pLatchOut
,
Abc_ObjName
(
pLatch
),
"_out"
);
Abc_ObjAssignName
(
pLatchOut
,
Abc_ObjName
(
Abc_ObjFanin0
(
pLatch
)
),
"_out"
);
Abc_ObjAssignName
(
pLatchIn
,
Abc_ObjName
(
pLatch
),
"_in"
);
Abc_ObjAssignName
(
pLatchIn
,
Abc_ObjName
(
Abc_ObjFanin0
(
pLatch
)
),
"_in"
);
}
}
else
else
{
{
...
@@ -375,6 +375,7 @@ void Abc_NtkRetimeNode( Abc_Obj_t * pObj, int fForward, int fInitial )
...
@@ -375,6 +375,7 @@ void Abc_NtkRetimeNode( Abc_Obj_t * pObj, int fForward, int fInitial )
if
(
fInitial
)
if
(
fInitial
)
{
{
pLatch
->
pCopy
=
Abc_NtkCreateNodeBuf
(
pNtkNew
,
NULL
);
pLatch
->
pCopy
=
Abc_NtkCreateNodeBuf
(
pNtkNew
,
NULL
);
Abc_ObjAssignName
(
pLatch
->
pCopy
,
Abc_ObjName
(
pNext
),
"_buf"
);
Abc_ObjAddFanin
(
pObj
->
pCopy
,
pLatch
->
pCopy
);
Abc_ObjAddFanin
(
pObj
->
pCopy
,
pLatch
->
pCopy
);
}
}
}
}
...
...
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