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
cb50fadb
Commit
cb50fadb
authored
Oct 28, 2015
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changes to VC6.0 makefile to accommodate new package 'opt/fret' and compiler warnings.
parent
9c4c95b6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
38 additions
and
14 deletions
+38
-14
abclib.dsp
+24
-0
src/opt/fret/fretMain.c
+2
-2
src/opt/fret/fretTime.c
+10
-10
src/opt/sfm/sfmDec.c
+2
-2
No files found.
abclib.dsp
View file @
cb50fadb
...
...
@@ -2550,6 +2550,30 @@ SOURCE=.\src\opt\sfm\sfmTime.c
SOURCE=.\src\opt\sfm\sfmWin.c
# End Source File
# End Group
# Begin Group "fret"
# PROP Default_Filter ""
# Begin Source File
SOURCE=.\src\opt\fret\fretFlow.c
# End Source File
# Begin Source File
SOURCE=.\src\opt\fret\fretime.h
# End Source File
# Begin Source File
SOURCE=.\src\opt\fret\fretInit.c
# End Source File
# Begin Source File
SOURCE=.\src\opt\fret\fretMain.c
# End Source File
# Begin Source File
SOURCE=.\src\opt\fret\fretTime.c
# End Source File
# End Group
# End Group
# Begin Group "map"
...
...
src/opt/fret/fretMain.c
View file @
cb50fadb
...
...
@@ -491,10 +491,10 @@ Abc_FlowRetime_PushFlows( Abc_Ntk_t * pNtk, int fVerbose ) {
srcDist
=
MAX_DIST
;
Abc_NtkForEachLatch
(
pNtk
,
pObj
,
i
)
if
(
FDATA
(
pObj
)
->
e_dist
)
srcDist
=
MIN
(
srcDist
,
FDATA
(
pObj
)
->
e_dist
);
srcDist
=
MIN
(
srcDist
,
(
int
)
FDATA
(
pObj
)
->
e_dist
);
Abc_NtkForEachLatch
(
pNtk
,
pObj
,
i
)
{
if
(
srcDist
==
FDATA
(
pObj
)
->
e_dist
&&
if
(
srcDist
==
(
int
)
FDATA
(
pObj
)
->
e_dist
&&
dfsfast_e
(
pObj
,
NULL
))
{
#ifdef DEBUG_PRINT_FLOWS
printf
(
"
\n\n
"
);
...
...
src/opt/fret/fretTime.c
View file @
cb50fadb
...
...
@@ -191,7 +191,7 @@ void Abc_FlowRetime_ConstrainConserv_forw( Abc_Ntk_t * pNtk ) {
}
pObj
->
Level
+=
Abc_ObjIsNode
(
pObj
)
?
1
:
0
;
if
(
pObj
->
Level
>
pManMR
->
maxDelay
)
{
if
(
(
int
)
pObj
->
Level
>
pManMR
->
maxDelay
)
{
FSET
(
pObj
,
BLOCK
);
}
}
...
...
@@ -242,7 +242,7 @@ void Abc_FlowRetime_ConstrainConserv_forw( Abc_Ntk_t * pNtk ) {
pObj
->
Level
+=
Abc_ObjIsNode
(
pObj
)
?
1
:
0
;
// constrained?
if
(
pObj
->
Level
>
pManMR
->
maxDelay
)
{
if
(
(
int
)
pObj
->
Level
>
pManMR
->
maxDelay
)
{
FSET
(
pObj
,
CONSERVATIVE
);
pManMR
->
nConservConstraints
++
;
}
else
...
...
@@ -276,7 +276,7 @@ void Abc_FlowRetime_ConstrainConserv_back( Abc_Ntk_t * pNtk ) {
{
l
=
pNext
->
Level
+
(
Abc_ObjIsNode
(
pObj
)
?
1
:
0
);
if
(
Abc_NodeIsTravIdCurrent
(
pNext
)
&&
pObj
->
Level
<
l
)
(
int
)
pObj
->
Level
<
l
)
pObj
->
Level
=
l
;
}
...
...
@@ -325,11 +325,11 @@ void Abc_FlowRetime_ConstrainConserv_back( Abc_Ntk_t * pNtk ) {
{
l
=
pNext
->
Level
+
(
Abc_ObjIsNode
(
pObj
)
?
1
:
0
);
if
(
Abc_NodeIsTravIdCurrent
(
pNext
)
&&
pObj
->
Level
<
l
)
(
int
)
pObj
->
Level
<
l
)
pObj
->
Level
=
l
;
}
if
(
pObj
->
Level
+
(
Abc_ObjIsNode
(
pObj
)
?
1
:
0
)
>
pManMR
->
maxDelay
)
{
if
(
(
int
)
pObj
->
Level
+
(
Abc_ObjIsNode
(
pObj
)
?
1
:
0
)
>
pManMR
->
maxDelay
)
{
FSET
(
pObj
,
BLOCK
);
}
}
...
...
@@ -347,7 +347,7 @@ void Abc_FlowRetime_ConstrainConserv_back( Abc_Ntk_t * pNtk ) {
Abc_ObjForEachFanout
(
pObj
,
pNext
,
j
)
{
l
=
pNext
->
Level
+
(
Abc_ObjIsNode
(
pObj
)
?
1
:
0
);
if
(
Abc_NodeIsTravIdCurrent
(
pNext
)
&&
pObj
->
Level
<
l
)
(
int
)
pObj
->
Level
<
l
)
pObj
->
Level
=
l
;
}
...
...
@@ -377,12 +377,12 @@ void Abc_FlowRetime_ConstrainConserv_back( Abc_Ntk_t * pNtk ) {
Abc_ObjForEachFanout
(
pObj
,
pNext
,
j
)
{
l
=
pNext
->
Level
+
(
Abc_ObjIsNode
(
pObj
)
?
1
:
0
);
if
(
Abc_NodeIsTravIdCurrent
(
pNext
)
&&
pObj
->
Level
<
l
)
(
int
)
pObj
->
Level
<
l
)
pObj
->
Level
=
l
;
}
// constrained?
if
(
pObj
->
Level
>
pManMR
->
maxDelay
)
{
if
(
(
int
)
pObj
->
Level
>
pManMR
->
maxDelay
)
{
FSET
(
pObj
,
CONSERVATIVE
);
pManMR
->
nConservConstraints
++
;
}
else
...
...
@@ -482,7 +482,7 @@ void Abc_FlowRetime_ConstrainExact_forw( Abc_Obj_t * pObj ) {
if
(
!
Abc_ObjIsLatch
(
pNext
))
pNext
->
Level
=
MAX
(
pNext
->
Level
,
pReg
->
Level
+
(
Abc_ObjIsNode
(
pReg
)
?
1
:
0
));
if
(
pReg
->
Level
==
pManMR
->
maxDelay
)
{
if
(
(
int
)
pReg
->
Level
==
pManMR
->
maxDelay
)
{
Vec_PtrPush
(
FTIMEEDGES
(
pObj
),
pReg
);
pManMR
->
nExactConstraints
++
;
}
...
...
@@ -557,7 +557,7 @@ void Abc_FlowRetime_ConstrainExact_back( Abc_Obj_t * pObj ) {
if
(
!
Abc_ObjIsLatch
(
pNext
))
pNext
->
Level
=
MAX
(
pNext
->
Level
,
pReg
->
Level
+
(
Abc_ObjIsNode
(
pReg
)
?
1
:
0
));
if
(
pReg
->
Level
==
pManMR
->
maxDelay
)
{
if
(
(
int
)
pReg
->
Level
==
pManMR
->
maxDelay
)
{
Vec_PtrPush
(
FTIMEEDGES
(
pObj
),
pReg
);
pManMR
->
nExactConstraints
++
;
}
...
...
src/opt/sfm/sfmDec.c
View file @
cb50fadb
...
...
@@ -1201,7 +1201,7 @@ int Sfm_DecPeformDec2( Sfm_Dec_t * p, Abc_Obj_t * pObj )
int
nSupp
[
SFM_DEC_MAX
],
pAssump
[
SFM_WIN_MAX
];
int
fVeryVerbose
=
p
->
pPars
->
fPrintDecs
||
p
->
pPars
->
fVeryVerbose
;
int
nDecs
=
Abc_MaxInt
(
p
->
pPars
->
nDecMax
,
1
);
int
fNeedInv
,
AreaGainInv
=
Sfm_DecComputeFlipInvGain
(
p
,
pObj
,
&
fNeedInv
);
//
int fNeedInv, AreaGainInv = Sfm_DecComputeFlipInvGain(p, pObj, &fNeedInv);
int
i
,
RetValue
,
Prev
=
0
,
iBest
=
-
1
,
AreaThis
,
AreaNew
;
//, AreaNewInv;
int
GainThis
,
GainBest
=
-
1
,
iLibObj
,
iLibObjBest
=
-
1
;
assert
(
p
->
pPars
->
fArea
==
1
);
...
...
@@ -1895,7 +1895,7 @@ Abc_Obj_t * Abc_NtkAreaOptOne( Sfm_Dec_t * p, int i )
Abc_Ntk_t
*
pNtk
=
p
->
pNtk
;
Sfm_Par_t
*
pPars
=
p
->
pPars
;
Abc_Obj_t
*
pObj
=
Abc_NtkObj
(
p
->
pNtk
,
i
);
int
Limit
,
RetValue
,
nStop
=
Abc_NtkObjNumMax
(
pNtk
)
;
int
Limit
,
RetValue
;
if
(
pPars
->
nMffcMin
>
1
&&
Abc_NodeMffcLabel
(
pObj
)
<
pPars
->
nMffcMin
)
return
NULL
;
if
(
pPars
->
iNodeOne
&&
i
!=
pPars
->
iNodeOne
)
...
...
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