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
1bca32ba
Commit
1bca32ba
authored
Apr 19, 2014
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improvements to DSD balancing.
parent
d0c4c0cd
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
3 deletions
+21
-3
src/base/abci/abc.c
+19
-1
src/map/if/ifDelay.c
+1
-1
src/map/if/ifDsd.c
+1
-1
No files found.
src/base/abci/abc.c
View file @
1bca32ba
...
...
@@ -15178,7 +15178,11 @@ int Abc_CommandIf( Abc_Frame_t * pAbc, int argc, char ** argv )
if
(
pPars
->
fUserRecLib
)
{
assert
(
Abc_NtkRecIsRunning3
()
);
if
(
!
Abc_NtkRecIsRunning3
()
)
{
printf
(
"LMS manager is not running (use
\"
rec_start3
\"
).
\n
"
);
return
0
;
}
if
(
Abc_NtkRecInputNum3
()
!=
pPars
->
nLutSize
)
{
printf
(
"The number of library inputs (%d) different from the K parameters (%d).
\n
"
,
Abc_NtkRecInputNum3
(),
pPars
->
nLutSize
);
...
...
@@ -29945,6 +29949,20 @@ int Abc_CommandAbc9If( Abc_Frame_t * pAbc, int argc, char ** argv )
Abc_FrameSetManDsd
(
If_DsdManAlloc
(
pPars
->
nLutSize
,
LutSize
)
);
}
if
(
pPars
->
fUserRecLib
)
{
if
(
!
Abc_NtkRecIsRunning3
()
)
{
printf
(
"LMS manager is not running (use
\"
rec_start3
\"
).
\n
"
);
return
0
;
}
if
(
Abc_NtkRecInputNum3
()
!=
pPars
->
nLutSize
)
{
printf
(
"The number of library inputs (%d) different from the K parameters (%d).
\n
"
,
Abc_NtkRecInputNum3
(),
pPars
->
nLutSize
);
return
0
;
}
}
// complain if truth tables are requested but the cut size is too large
if
(
pPars
->
fTruth
&&
pPars
->
nLutSize
>
IF_MAX_FUNC_LUTSIZE
)
{
src/map/if/ifDelay.c
View file @
1bca32ba
...
...
@@ -277,7 +277,7 @@ int If_CutSopBalanceEval( If_Man_t * p, If_Cut_t * pCut, Vec_Int_t * vAig )
assert
(
Vec_IntSize
(
vCover
)
>
0
);
for
(
i
=
0
;
i
<
If_CutLeaveNum
(
pCut
);
i
++
)
pTimes
[
i
]
=
(
int
)
If_ObjCutBest
(
If_CutLeaf
(
p
,
pCut
,
i
))
->
Delay
;
Delay
=
If_CutSopBalanceEvalIntInt
(
vCover
,
If_CutLeaveNum
(
pCut
),
pTimes
,
vAig
,
Abc_LitIsCompl
(
If_CutTruthLit
(
pCut
)),
&
Area
);
Delay
=
If_CutSopBalanceEvalIntInt
(
vCover
,
If_CutLeaveNum
(
pCut
),
pTimes
,
vAig
,
Abc_LitIsCompl
(
If_CutTruthLit
(
pCut
))
^
pCut
->
fCompl
,
&
Area
);
pCut
->
Cost
=
Area
;
return
Delay
;
}
...
...
src/map/if/ifDsd.c
View file @
1bca32ba
...
...
@@ -2100,7 +2100,7 @@ int If_CutDsdBalanceEval( If_Man_t * p, If_Cut_t * pCut, Vec_Int_t * vAig )
int
Delay
,
Area
=
0
;
for
(
i
=
0
;
i
<
If_CutLeaveNum
(
pCut
);
i
++
)
pTimes
[
i
]
=
(
int
)
If_ObjCutBest
(
If_CutLeaf
(
p
,
pCut
,
i
))
->
Delay
;
Delay
=
If_CutDsdBalanceEvalInt
(
p
->
pIfDsdMan
,
If_CutDsdLit
(
p
,
pCut
),
pTimes
,
vAig
,
&
Area
,
If_CutDsdPerm
(
p
,
pCut
)
);
Delay
=
If_CutDsdBalanceEvalInt
(
p
->
pIfDsdMan
,
Abc_LitNotCond
(
If_CutDsdLit
(
p
,
pCut
),
pCut
->
fCompl
),
pTimes
,
vAig
,
&
Area
,
If_CutDsdPerm
(
p
,
pCut
)
);
pCut
->
Cost
=
Area
;
return
Delay
;
}
...
...
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