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
19ad75f1
Commit
19ad75f1
authored
Jan 05, 2016
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Migrating back to using 'float' in area-flow computation in &nf.
parent
6642e40a
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
8 deletions
+11
-8
src/aig/gia/gia.h
+1
-0
src/aig/gia/giaNf.c
+0
-0
src/map/mio/mio.h
+2
-1
src/map/mio/mioUtils.c
+7
-6
src/opt/sfm/sfmLib.c
+1
-1
No files found.
src/aig/gia/gia.h
View file @
19ad75f1
...
...
@@ -318,6 +318,7 @@ struct Jf_Par_t_
word
WordMapDelayTarget
;
float
MapDelay
;
float
MapArea
;
float
MapAreaF
;
float
MapDelayTarget
;
float
Epsilon
;
float
*
pTimesArr
;
...
...
src/aig/gia/giaNf.c
View file @
19ad75f1
This diff is collapsed.
Click to expand it.
src/map/mio/mio.h
View file @
19ad75f1
...
...
@@ -62,7 +62,8 @@ struct Mio_Cell2_t_
unsigned
Id
:
26
;
// gate ID
unsigned
Type
:
2
;
// gate type
unsigned
nFanins
:
4
;
// gate fanins
word
Area
;
// area
float
AreaF
;
// area
word
AreaW
;
// area
word
uTruth
;
// truth table
word
DelayAve
;
// average delay
word
Delays
[
6
];
// delay
...
...
src/map/mio/mioUtils.c
View file @
19ad75f1
...
...
@@ -338,9 +338,9 @@ int Mio_AreaCompare2( Mio_Cell2_t * pG1, Mio_Cell2_t * pG2 )
return
-
1
;
if
(
pG1
->
nFanins
>
pG2
->
nFanins
)
return
1
;
if
(
pG1
->
Area
<
pG2
->
Area
)
if
(
pG1
->
Area
W
<
pG2
->
AreaW
)
return
-
1
;
if
(
pG1
->
Area
>
pG2
->
Area
)
if
(
pG1
->
Area
W
>
pG2
->
AreaW
)
return
1
;
// compare names
Comp
=
strcmp
(
pG1
->
pName
,
pG2
->
pName
);
...
...
@@ -630,9 +630,9 @@ static inline int Mio_CompareTwo2( Mio_Cell2_t * pCell1, Mio_Cell2_t * pCell2 )
{
int
Comp
;
// compare areas
if
(
pCell1
->
Area
>
pCell2
->
Area
)
if
(
pCell1
->
Area
W
>
pCell2
->
AreaW
)
return
1
;
if
(
pCell1
->
Area
<
pCell2
->
Area
)
if
(
pCell1
->
Area
W
<
pCell2
->
AreaW
)
return
0
;
// compare delays
if
(
pCell1
->
DelayAve
>
pCell2
->
DelayAve
)
...
...
@@ -654,7 +654,8 @@ static inline void Mio_CollectCopy2( Mio_Cell2_t * pCell, Mio_Gate_t * pGate )
pCell
->
pName
=
pGate
->
pName
;
pCell
->
vExpr
=
pGate
->
vExpr
;
pCell
->
uTruth
=
pGate
->
uTruth
;
pCell
->
Area
=
(
word
)(
MIO_NUM
*
pGate
->
dArea
);
pCell
->
AreaF
=
pGate
->
dArea
;
pCell
->
AreaW
=
(
word
)(
MIO_NUM
*
pGate
->
dArea
);
pCell
->
nFanins
=
pGate
->
nInputs
;
pCell
->
pMioGate
=
pGate
;
pCell
->
DelayAve
=
0
;
...
...
@@ -757,7 +758,7 @@ Mio_Cell2_t * Mio_CollectRootsNew2( Mio_Library_t * pLib, int nInputs, int * pnG
printf
(
"None
\n
"
);
else
printf
(
"%-20s In = %d N = %3d A = %12.6f D = %12.6f
\n
"
,
pCell
->
pName
,
pCell
->
nFanins
,
pCounts
[
i
],
MIO_NUMINV
*
(
unsigned
)
pCell
->
Area
,
MIO_NUMINV
*
(
unsigned
)
pCell
->
DelayAve
);
pCell
->
pName
,
pCell
->
nFanins
,
pCounts
[
i
],
pCell
->
AreaF
,
MIO_NUMINV
*
(
unsigned
)
pCell
->
DelayAve
);
}
ABC_FREE
(
pCounts
);
}
...
...
src/opt/sfm/sfmLib.c
View file @
19ad75f1
...
...
@@ -323,7 +323,7 @@ void Sfm_LibPrepareAdd( Sfm_Lib_t * p, word * pTruth, int * Perm, int nFanins, M
{
Sfm_Fun_t
*
pObj
;
int
InvPerm
[
SFM_SUPP_MAX
],
Profile
[
SFM_SUPP_MAX
];
int
Area
=
(
int
)
pCellBot
->
Area
+
(
pCellTop
?
(
int
)
pCellTop
->
Area
:
0
);
int
Area
=
(
int
)
pCellBot
->
Area
W
+
(
pCellTop
?
(
int
)
pCellTop
->
AreaW
:
0
);
int
i
,
k
,
Id
,
Prev
,
Offset
,
*
pProf
,
iFunc
=
Vec_MemHashInsert
(
p
->
vTtMem
,
pTruth
);
if
(
iFunc
==
Vec_IntSize
(
&
p
->
vLists
)
)
{
...
...
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