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
c158dd5a
Commit
c158dd5a
authored
Jan 05, 2016
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Migrating to using 32-bit timing representation in &nf.
parent
19ad75f1
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
13 deletions
+13
-13
src/aig/gia/giaNf.c
+0
-0
src/map/mio/mio.h
+2
-2
src/map/mio/mioUtils.c
+7
-7
src/map/scl/sclCon.h
+0
-0
src/opt/sfm/sfmLib.c
+4
-4
No files found.
src/aig/gia/giaNf.c
View file @
c158dd5a
This diff is collapsed.
Click to expand it.
src/map/mio/mio.h
View file @
c158dd5a
...
@@ -65,8 +65,8 @@ struct Mio_Cell2_t_
...
@@ -65,8 +65,8 @@ struct Mio_Cell2_t_
float
AreaF
;
// area
float
AreaF
;
// area
word
AreaW
;
// area
word
AreaW
;
// area
word
uTruth
;
// truth table
word
uTruth
;
// truth table
word
DelayAve
;
// average delay
int
iDelayAve
;
// average delay
word
Delays
[
6
];
// delay
int
iDelays
[
6
];
// delay
void
*
pMioGate
;
// gate pointer
void
*
pMioGate
;
// gate pointer
};
};
...
...
src/map/mio/mioUtils.c
View file @
c158dd5a
...
@@ -635,9 +635,9 @@ static inline int Mio_CompareTwo2( Mio_Cell2_t * pCell1, Mio_Cell2_t * pCell2 )
...
@@ -635,9 +635,9 @@ static inline int Mio_CompareTwo2( Mio_Cell2_t * pCell1, Mio_Cell2_t * pCell2 )
if
(
pCell1
->
AreaW
<
pCell2
->
AreaW
)
if
(
pCell1
->
AreaW
<
pCell2
->
AreaW
)
return
0
;
return
0
;
// compare delays
// compare delays
if
(
pCell1
->
DelayAve
>
pCell2
->
DelayAve
)
if
(
pCell1
->
iDelayAve
>
pCell2
->
i
DelayAve
)
return
1
;
return
1
;
if
(
pCell1
->
DelayAve
<
pCell2
->
DelayAve
)
if
(
pCell1
->
iDelayAve
<
pCell2
->
i
DelayAve
)
return
0
;
return
0
;
// compare names
// compare names
Comp
=
strcmp
(
pCell1
->
pName
,
pCell2
->
pName
);
Comp
=
strcmp
(
pCell1
->
pName
,
pCell2
->
pName
);
...
@@ -658,14 +658,14 @@ static inline void Mio_CollectCopy2( Mio_Cell2_t * pCell, Mio_Gate_t * pGate )
...
@@ -658,14 +658,14 @@ static inline void Mio_CollectCopy2( Mio_Cell2_t * pCell, Mio_Gate_t * pGate )
pCell
->
AreaW
=
(
word
)(
MIO_NUM
*
pGate
->
dArea
);
pCell
->
AreaW
=
(
word
)(
MIO_NUM
*
pGate
->
dArea
);
pCell
->
nFanins
=
pGate
->
nInputs
;
pCell
->
nFanins
=
pGate
->
nInputs
;
pCell
->
pMioGate
=
pGate
;
pCell
->
pMioGate
=
pGate
;
pCell
->
DelayAve
=
0
;
pCell
->
i
DelayAve
=
0
;
for
(
k
=
0
,
pPin
=
pGate
->
pPins
;
pPin
;
pPin
=
pPin
->
pNext
,
k
++
)
for
(
k
=
0
,
pPin
=
pGate
->
pPins
;
pPin
;
pPin
=
pPin
->
pNext
,
k
++
)
{
{
pCell
->
Delays
[
k
]
=
(
word
)(
MIO_NUM
/
2
*
pPin
->
dDelayBlockRise
+
MIO_NUM
/
2
*
pPin
->
dDelayBlockFall
);
pCell
->
iDelays
[
k
]
=
(
int
)(
MIO_NUM
/
2
*
pPin
->
dDelayBlockRise
+
MIO_NUM
/
2
*
pPin
->
dDelayBlockFall
);
pCell
->
DelayAve
+=
pCell
->
Delays
[
k
];
pCell
->
iDelayAve
+=
pCell
->
i
Delays
[
k
];
}
}
if
(
pCell
->
nFanins
)
if
(
pCell
->
nFanins
)
pCell
->
DelayAve
/=
pCell
->
nFanins
;
pCell
->
i
DelayAve
/=
pCell
->
nFanins
;
}
}
Mio_Cell2_t
*
Mio_CollectRootsNew2
(
Mio_Library_t
*
pLib
,
int
nInputs
,
int
*
pnGates
,
int
fVerbose
)
Mio_Cell2_t
*
Mio_CollectRootsNew2
(
Mio_Library_t
*
pLib
,
int
nInputs
,
int
*
pnGates
,
int
fVerbose
)
...
@@ -758,7 +758,7 @@ Mio_Cell2_t * Mio_CollectRootsNew2( Mio_Library_t * pLib, int nInputs, int * pnG
...
@@ -758,7 +758,7 @@ Mio_Cell2_t * Mio_CollectRootsNew2( Mio_Library_t * pLib, int nInputs, int * pnG
printf
(
"None
\n
"
);
printf
(
"None
\n
"
);
else
else
printf
(
"%-20s In = %d N = %3d A = %12.6f D = %12.6f
\n
"
,
printf
(
"%-20s In = %d N = %3d A = %12.6f D = %12.6f
\n
"
,
pCell
->
pName
,
pCell
->
nFanins
,
pCounts
[
i
],
pCell
->
AreaF
,
MIO_NUMINV
*
(
unsigned
)
pCell
->
DelayAve
);
pCell
->
pName
,
pCell
->
nFanins
,
pCounts
[
i
],
pCell
->
AreaF
,
MIO_NUMINV
*
pCell
->
i
DelayAve
);
}
}
ABC_FREE
(
pCounts
);
ABC_FREE
(
pCounts
);
}
}
...
...
src/map/scl/sclCon.h
View file @
c158dd5a
This diff is collapsed.
Click to expand it.
src/opt/sfm/sfmLib.c
View file @
c158dd5a
...
@@ -290,14 +290,14 @@ void Sfm_LibTruth8Two( Mio_Cell2_t * pCellBot, Mio_Cell2_t * pCellTop, int InTop
...
@@ -290,14 +290,14 @@ void Sfm_LibTruth8Two( Mio_Cell2_t * pCellBot, Mio_Cell2_t * pCellTop, int InTop
***********************************************************************/
***********************************************************************/
void
Sfm_LibCellProfile
(
Mio_Cell2_t
*
pCellBot
,
Mio_Cell2_t
*
pCellTop
,
int
InTop
,
int
nFanins
,
int
*
Perm
,
int
*
pProf
)
void
Sfm_LibCellProfile
(
Mio_Cell2_t
*
pCellBot
,
Mio_Cell2_t
*
pCellTop
,
int
InTop
,
int
nFanins
,
int
*
Perm
,
int
*
pProf
)
{
{
int
i
,
DelayAdd
=
(
int
)(
pCellTop
?
pCellTop
->
Delays
[
InTop
]
:
0
)
;
int
i
,
DelayAdd
=
pCellTop
?
pCellTop
->
iDelays
[
InTop
]
:
0
;
for
(
i
=
0
;
i
<
nFanins
;
i
++
)
for
(
i
=
0
;
i
<
nFanins
;
i
++
)
if
(
Perm
[
i
]
<
(
int
)
pCellBot
->
nFanins
)
if
(
Perm
[
i
]
<
(
int
)
pCellBot
->
nFanins
)
pProf
[
i
]
=
(
int
)
pCellBot
->
Delays
[
Perm
[
i
]]
+
DelayAdd
;
pProf
[
i
]
=
pCellBot
->
i
Delays
[
Perm
[
i
]]
+
DelayAdd
;
else
if
(
Perm
[
i
]
<
(
int
)
pCellBot
->
nFanins
+
InTop
)
else
if
(
Perm
[
i
]
<
(
int
)
pCellBot
->
nFanins
+
InTop
)
pProf
[
i
]
=
(
int
)
pCellTop
->
Delays
[
Perm
[
i
]
-
(
int
)
pCellBot
->
nFanins
];
pProf
[
i
]
=
pCellTop
->
i
Delays
[
Perm
[
i
]
-
(
int
)
pCellBot
->
nFanins
];
else
// if ( Perm[i] >= (int)pCellBot->nFanins + InTop )
else
// if ( Perm[i] >= (int)pCellBot->nFanins + InTop )
pProf
[
i
]
=
(
int
)
pCellTop
->
Delays
[
Perm
[
i
]
-
(
int
)
pCellBot
->
nFanins
+
1
];
pProf
[
i
]
=
pCellTop
->
i
Delays
[
Perm
[
i
]
-
(
int
)
pCellBot
->
nFanins
+
1
];
}
}
static
inline
int
Sfm_LibNewIsContained
(
Sfm_Fun_t
*
pObj
,
int
*
pProf
,
int
Area
,
int
*
pProfNew
,
int
nFanins
)
static
inline
int
Sfm_LibNewIsContained
(
Sfm_Fun_t
*
pObj
,
int
*
pProf
,
int
Area
,
int
*
pProfNew
,
int
nFanins
)
{
{
...
...
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