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
62487de9
Commit
62487de9
authored
May 29, 2019
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding support for user-specified wire delays in &if.
parent
712f46ca
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
1 deletions
+17
-1
src/base/abci/abc.c
+16
-0
src/map/if/ifMap.c
+1
-1
No files found.
src/base/abci/abc.c
View file @
62487de9
...
...
@@ -36980,8 +36980,24 @@ int Abc_CommandAbc9If( Abc_Frame_t * pAbc, int argc, char ** argv )
return
1
;
}
// add wire delay to LUT library delays
if
(
pPars
->
WireDelay
>
0
&&
pPars
->
pLutLib
)
{
int
i
,
k
;
for
(
i
=
0
;
i
<=
pPars
->
pLutLib
->
LutMax
;
i
++
)
for
(
k
=
0
;
k
<=
i
;
k
++
)
pPars
->
pLutLib
->
pLutDelays
[
i
][
k
]
+=
pPars
->
WireDelay
;
}
// perform mapping
pNew
=
Gia_ManPerformMapping
(
pAbc
->
pGia
,
pPars
);
// subtract wire delay from LUT library delays
if
(
pPars
->
WireDelay
>
0
&&
pPars
->
pLutLib
)
{
int
i
,
k
;
for
(
i
=
0
;
i
<=
pPars
->
pLutLib
->
LutMax
;
i
++
)
for
(
k
=
0
;
k
<=
i
;
k
++
)
pPars
->
pLutLib
->
pLutDelays
[
i
][
k
]
-=
pPars
->
WireDelay
;
}
if
(
pNew
==
NULL
)
{
Abc_Print
(
-
1
,
"Abc_CommandAbc9If(): Mapping of GIA has failed.
\n
"
);
src/map/if/ifMap.c
View file @
62487de9
...
...
@@ -217,7 +217,7 @@ void If_ObjPerformMappingAnd( If_Man_t * p, If_Obj_t * pObj, int Mode, int fPrep
assert
(
pCut
->
Delay
!=
-
1
);
// assert( pCut->Delay <= pObj->Required + p->fEpsilon );
if
(
pCut
->
Delay
>
pObj
->
Required
+
2
*
p
->
fEpsilon
)
Abc_Print
(
1
,
"If_ObjPerformMappingAnd(): Warning!
Delay of node %d (%f) exceeds
the required times (%f).
\n
"
,
Abc_Print
(
1
,
"If_ObjPerformMappingAnd(): Warning!
Node with ID %d has delay (%f) exceeding
the required times (%f).
\n
"
,
pObj
->
Id
,
pCut
->
Delay
,
pObj
->
Required
+
p
->
fEpsilon
);
pCut
->
Area
=
(
Mode
==
2
)
?
If_CutAreaDerefed
(
p
,
pCut
)
:
If_CutAreaFlow
(
p
,
pCut
);
if
(
p
->
pPars
->
fEdge
)
...
...
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