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
a6352369
Commit
a6352369
authored
Jul 30, 2016
by
Mathias Soeken
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Depth optimal synthesis.
parent
59077dab
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
5 deletions
+16
-5
src/base/abci/abcExact.c
+16
-5
No files found.
src/base/abci/abcExact.c
View file @
a6352369
...
@@ -1111,8 +1111,8 @@ int Abc_ExactDelayCost( word * pTruth, int nVars, int * pArrTimeProfile, char *
...
@@ -1111,8 +1111,8 @@ int Abc_ExactDelayCost( word * pTruth, int nVars, int * pArrTimeProfile, char *
{
{
int
l
;
int
l
;
Ses_Man_t
*
pSes
;
Ses_Man_t
*
pSes
;
char
*
pSol
,
*
p
;
char
*
pSol
=
NULL
,
*
p
;
int
Delay
;
int
Delay
=
ABC_INFINITY
,
nMaxDepth
=
nVars
-
1
;
abctime
timeStart
;
abctime
timeStart
;
/* some checks */
/* some checks */
...
@@ -1120,12 +1120,25 @@ int Abc_ExactDelayCost( word * pTruth, int nVars, int * pArrTimeProfile, char *
...
@@ -1120,12 +1120,25 @@ int Abc_ExactDelayCost( word * pTruth, int nVars, int * pArrTimeProfile, char *
timeStart
=
Abc_Clock
();
timeStart
=
Abc_Clock
();
pSes
=
Ses_ManAlloc
(
pTruth
,
nVars
,
1
,
nVars
-
1
,
pArrTimeProfile
,
1
,
0
);
*
Cost
=
ABC_INFINITY
;
pSes
=
Ses_ManAlloc
(
pTruth
,
nVars
,
1
/* fSpecFunc */
,
nMaxDepth
,
pArrTimeProfile
,
1
/* fMakeAIG */
,
0
);
while
(
1
)
/* there is improvement */
{
if
(
Ses_ManFindMinimumSize
(
pSes
)
)
if
(
Ses_ManFindMinimumSize
(
pSes
)
)
{
{
if
(
pSol
)
ABC_FREE
(
pSol
);
pSol
=
Ses_ManExtractSolution
(
pSes
);
pSol
=
Ses_ManExtractSolution
(
pSes
);
pSes
->
nMaxDepth
--
;
}
else
break
;
}
if
(
pSol
)
{
*
Cost
=
pSol
[
ABC_EXACT_SOL_NGATES
];
*
Cost
=
pSol
[
ABC_EXACT_SOL_NGATES
];
p
=
pSol
+
3
+
4
*
ABC_EXACT_SOL_NGATES
+
1
;
p
=
pSol
+
3
+
4
*
ABC_EXACT_SOL_NGATES
+
1
;
Delay
=
*
p
++
;
Delay
=
*
p
++
;
...
@@ -1134,8 +1147,6 @@ int Abc_ExactDelayCost( word * pTruth, int nVars, int * pArrTimeProfile, char *
...
@@ -1134,8 +1147,6 @@ int Abc_ExactDelayCost( word * pTruth, int nVars, int * pArrTimeProfile, char *
ABC_FREE
(
pSol
);
ABC_FREE
(
pSol
);
}
}
else
*
Cost
=
Delay
=
ABC_INFINITY
;
pSes
->
timeTotal
=
Abc_Clock
()
-
timeStart
;
pSes
->
timeTotal
=
Abc_Clock
()
-
timeStart
;
...
...
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