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
b3e5ccd2
Commit
b3e5ccd2
authored
Apr 06, 2015
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Getting default AND-node delay from Genlib library.
parent
c0c7723f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
1 deletions
+16
-1
src/base/abc/abcNtk.c
+2
-0
src/base/abci/abcIf.c
+12
-1
src/map/mio/mio.h
+1
-0
src/map/mio/mioApi.c
+1
-0
No files found.
src/base/abc/abcNtk.c
View file @
b3e5ccd2
...
@@ -144,6 +144,8 @@ Abc_Ntk_t * Abc_NtkStartFrom( Abc_Ntk_t * pNtk, Abc_NtkType_t Type, Abc_NtkFunc_
...
@@ -144,6 +144,8 @@ Abc_Ntk_t * Abc_NtkStartFrom( Abc_Ntk_t * pNtk, Abc_NtkType_t Type, Abc_NtkFunc_
if
(
pNtk
->
vObjPerm
)
if
(
pNtk
->
vObjPerm
)
pNtkNew
->
vObjPerm
=
Vec_IntDup
(
pNtk
->
vObjPerm
);
pNtkNew
->
vObjPerm
=
Vec_IntDup
(
pNtk
->
vObjPerm
);
pNtkNew
->
AndGateDelay
=
pNtk
->
AndGateDelay
;
pNtkNew
->
AndGateDelay
=
pNtk
->
AndGateDelay
;
if
(
pNtkNew
->
pManTime
&&
Abc_FrameReadLibGen
()
&&
pNtkNew
->
AndGateDelay
==
0
.
0
)
pNtkNew
->
AndGateDelay
=
Mio_LibraryReadDelayAigNode
((
Mio_Library_t
*
)
Abc_FrameReadLibGen
());
// initialize logic level of the CIs
// initialize logic level of the CIs
if
(
pNtk
->
AndGateDelay
!=
0
.
0
&&
pNtk
->
pManTime
!=
NULL
&&
pNtk
->
ntkType
!=
ABC_NTK_STRASH
&&
Type
==
ABC_NTK_STRASH
)
if
(
pNtk
->
AndGateDelay
!=
0
.
0
&&
pNtk
->
pManTime
!=
NULL
&&
pNtk
->
ntkType
!=
ABC_NTK_STRASH
&&
Type
==
ABC_NTK_STRASH
)
{
{
...
...
src/base/abci/abcIf.c
View file @
b3e5ccd2
...
@@ -23,6 +23,7 @@
...
@@ -23,6 +23,7 @@
#include "map/if/if.h"
#include "map/if/if.h"
#include "bool/kit/kit.h"
#include "bool/kit/kit.h"
#include "aig/aig/aig.h"
#include "aig/aig/aig.h"
#include "map/mio/mio.h"
ABC_NAMESPACE_IMPL_START
ABC_NAMESPACE_IMPL_START
...
@@ -115,9 +116,19 @@ Abc_Ntk_t * Abc_NtkIf( Abc_Ntk_t * pNtk, If_Par_t * pPars )
...
@@ -115,9 +116,19 @@ Abc_Ntk_t * Abc_NtkIf( Abc_Ntk_t * pNtk, If_Par_t * pPars )
pPars
->
pTimesReq
=
Abc_NtkGetCoRequiredFloats
(
pNtk
);
pPars
->
pTimesReq
=
Abc_NtkGetCoRequiredFloats
(
pNtk
);
// update timing info to reflect logic level
// update timing info to reflect logic level
if
(
(
pPars
->
fDelayOpt
||
pPars
->
fDsdBalance
||
pPars
->
fUserRecLib
)
&&
pNtk
->
AndGateDelay
!=
0
.
0
)
if
(
(
pPars
->
fDelayOpt
||
pPars
->
fDsdBalance
||
pPars
->
fUserRecLib
)
&&
pNtk
->
pManTime
)
{
{
int
c
;
int
c
;
if
(
pNtk
->
AndGateDelay
==
0
.
0
)
{
if
(
Abc_FrameReadLibGen
()
)
pNtk
->
AndGateDelay
=
Mio_LibraryReadDelayAigNode
((
Mio_Library_t
*
)
Abc_FrameReadLibGen
());
if
(
pNtk
->
AndGateDelay
==
0
.
0
)
{
pNtk
->
AndGateDelay
=
1
.
0
;
printf
(
"The AIG-node delay is not set. Assuming unit-delay.
\n
"
);
}
}
for
(
c
=
0
;
c
<
Abc_NtkCiNum
(
pNtk
);
c
++
)
for
(
c
=
0
;
c
<
Abc_NtkCiNum
(
pNtk
);
c
++
)
pPars
->
pTimesArr
[
c
]
/=
pNtk
->
AndGateDelay
;
pPars
->
pTimesArr
[
c
]
/=
pNtk
->
AndGateDelay
;
for
(
c
=
0
;
c
<
Abc_NtkCoNum
(
pNtk
);
c
++
)
for
(
c
=
0
;
c
<
Abc_NtkCoNum
(
pNtk
);
c
++
)
...
...
src/map/mio/mio.h
View file @
b3e5ccd2
...
@@ -112,6 +112,7 @@ extern float Mio_LibraryReadDelayNand2Rise( Mio_Library_t * pLib );
...
@@ -112,6 +112,7 @@ extern float Mio_LibraryReadDelayNand2Rise( Mio_Library_t * pLib );
extern
float
Mio_LibraryReadDelayNand2Fall
(
Mio_Library_t
*
pLib
);
extern
float
Mio_LibraryReadDelayNand2Fall
(
Mio_Library_t
*
pLib
);
extern
float
Mio_LibraryReadDelayNand2Max
(
Mio_Library_t
*
pLib
);
extern
float
Mio_LibraryReadDelayNand2Max
(
Mio_Library_t
*
pLib
);
extern
float
Mio_LibraryReadDelayAnd2Max
(
Mio_Library_t
*
pLib
);
extern
float
Mio_LibraryReadDelayAnd2Max
(
Mio_Library_t
*
pLib
);
extern
float
Mio_LibraryReadDelayAigNode
(
Mio_Library_t
*
pLib
);
extern
float
Mio_LibraryReadAreaInv
(
Mio_Library_t
*
pLib
);
extern
float
Mio_LibraryReadAreaInv
(
Mio_Library_t
*
pLib
);
extern
float
Mio_LibraryReadAreaBuf
(
Mio_Library_t
*
pLib
);
extern
float
Mio_LibraryReadAreaBuf
(
Mio_Library_t
*
pLib
);
extern
float
Mio_LibraryReadAreaNand2
(
Mio_Library_t
*
pLib
);
extern
float
Mio_LibraryReadAreaNand2
(
Mio_Library_t
*
pLib
);
...
...
src/map/mio/mioApi.c
View file @
b3e5ccd2
...
@@ -57,6 +57,7 @@ float Mio_LibraryReadDelayNand2Rise( Mio_Library_t * pLib ) { retur
...
@@ -57,6 +57,7 @@ float Mio_LibraryReadDelayNand2Rise( Mio_Library_t * pLib ) { retur
float
Mio_LibraryReadDelayNand2Fall
(
Mio_Library_t
*
pLib
)
{
return
(
float
)(
pLib
->
pGateNand2
?
pLib
->
pGateNand2
->
pPins
->
dDelayBlockFall
:
0
.
0
);
}
float
Mio_LibraryReadDelayNand2Fall
(
Mio_Library_t
*
pLib
)
{
return
(
float
)(
pLib
->
pGateNand2
?
pLib
->
pGateNand2
->
pPins
->
dDelayBlockFall
:
0
.
0
);
}
float
Mio_LibraryReadDelayNand2Max
(
Mio_Library_t
*
pLib
)
{
return
(
float
)(
pLib
->
pGateNand2
?
pLib
->
pGateNand2
->
pPins
->
dDelayBlockMax
:
0
.
0
);
}
float
Mio_LibraryReadDelayNand2Max
(
Mio_Library_t
*
pLib
)
{
return
(
float
)(
pLib
->
pGateNand2
?
pLib
->
pGateNand2
->
pPins
->
dDelayBlockMax
:
0
.
0
);
}
float
Mio_LibraryReadDelayAnd2Max
(
Mio_Library_t
*
pLib
)
{
return
(
float
)(
pLib
->
pGateAnd2
?
pLib
->
pGateAnd2
->
pPins
->
dDelayBlockMax
:
0
.
0
);
}
float
Mio_LibraryReadDelayAnd2Max
(
Mio_Library_t
*
pLib
)
{
return
(
float
)(
pLib
->
pGateAnd2
?
pLib
->
pGateAnd2
->
pPins
->
dDelayBlockMax
:
0
.
0
);
}
float
Mio_LibraryReadDelayAigNode
(
Mio_Library_t
*
pLib
)
{
return
pLib
->
pGateAnd2
?
Mio_LibraryReadDelayAnd2Max
(
pLib
)
:
Mio_LibraryReadDelayNand2Max
(
pLib
);
}
// approximate delay of the AIG node
float
Mio_LibraryReadAreaInv
(
Mio_Library_t
*
pLib
)
{
return
(
float
)(
pLib
->
pGateInv
?
pLib
->
pGateInv
->
dArea
:
0
.
0
);
}
float
Mio_LibraryReadAreaInv
(
Mio_Library_t
*
pLib
)
{
return
(
float
)(
pLib
->
pGateInv
?
pLib
->
pGateInv
->
dArea
:
0
.
0
);
}
float
Mio_LibraryReadAreaBuf
(
Mio_Library_t
*
pLib
)
{
return
(
float
)(
pLib
->
pGateBuf
?
pLib
->
pGateBuf
->
dArea
:
0
.
0
);
}
float
Mio_LibraryReadAreaBuf
(
Mio_Library_t
*
pLib
)
{
return
(
float
)(
pLib
->
pGateBuf
?
pLib
->
pGateBuf
->
dArea
:
0
.
0
);
}
float
Mio_LibraryReadAreaNand2
(
Mio_Library_t
*
pLib
)
{
return
(
float
)(
pLib
->
pGateNand2
?
pLib
->
pGateNand2
->
dArea
:
0
.
0
);
}
float
Mio_LibraryReadAreaNand2
(
Mio_Library_t
*
pLib
)
{
return
(
float
)(
pLib
->
pGateNand2
?
pLib
->
pGateNand2
->
dArea
:
0
.
0
);
}
...
...
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