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
59077dab
Commit
59077dab
authored
Jul 30, 2016
by
Mathias Soeken
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implementation of Abc_ExactDelayCost.
parent
3641a3f1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
2 deletions
+34
-2
src/base/abci/abcExact.c
+34
-2
No files found.
src/base/abci/abcExact.c
View file @
59077dab
...
...
@@ -1109,8 +1109,40 @@ int Abc_ExactInputNum()
// the area cost should not exceed 2048, if the cut is implementable; otherwise, it should be ABC_INFINITY
int
Abc_ExactDelayCost
(
word
*
pTruth
,
int
nVars
,
int
*
pArrTimeProfile
,
char
*
pPerm
,
int
*
Cost
)
{
*
Cost
=
ABC_INFINITY
;
return
ABC_INFINITY
;
int
l
;
Ses_Man_t
*
pSes
;
char
*
pSol
,
*
p
;
int
Delay
;
abctime
timeStart
;
/* some checks */
assert
(
nVars
>=
2
&&
nVars
<=
8
);
timeStart
=
Abc_Clock
();
pSes
=
Ses_ManAlloc
(
pTruth
,
nVars
,
1
,
nVars
-
1
,
pArrTimeProfile
,
1
,
0
);
if
(
Ses_ManFindMinimumSize
(
pSes
)
)
{
pSol
=
Ses_ManExtractSolution
(
pSes
);
*
Cost
=
pSol
[
ABC_EXACT_SOL_NGATES
];
p
=
pSol
+
3
+
4
*
ABC_EXACT_SOL_NGATES
+
1
;
Delay
=
*
p
++
;
for
(
l
=
0
;
l
<
nVars
;
++
l
)
pPerm
[
l
]
=
*
p
++
;
ABC_FREE
(
pSol
);
}
else
*
Cost
=
Delay
=
ABC_INFINITY
;
pSes
->
timeTotal
=
Abc_Clock
()
-
timeStart
;
/* cleanup */
Ses_ManClean
(
pSes
);
return
Delay
;
}
// this procedure returns a new node whose output in terms of the given fanins
// has the smallest possible arrival time (in agreement with the above Abc_ExactDelayCost)
...
...
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