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
dd25b90f
Commit
dd25b90f
authored
Oct 09, 2012
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improvements to gate sizing.
parent
a5d07fa4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
82 additions
and
82 deletions
+82
-82
src/map/scl/sclMan.h
+17
-0
src/map/scl/sclUpsize.c
+62
-82
src/misc/vec/vecQue.h
+3
-0
No files found.
src/map/scl/sclMan.h
View file @
dd25b90f
...
...
@@ -67,6 +67,12 @@ struct SC_Man_
Vec_Flt_t
*
vTimesOut
;
// output arrival times
Vec_Que_t
*
vQue
;
// outputs by their time
SC_WireLoad
*
pWLoadUsed
;
// name of the used WireLoad model
// intermediate data
Vec_Que_t
*
vNodeByGain
;
// nodes by gain
Vec_Flt_t
*
vNode2Gain
;
// mapping node into its gain
Vec_Int_t
*
vNode2Gate
;
// mapping node into its best gate
Vec_Int_t
*
vNodeIter
;
// the last iteration the node was upsized
// optimization parameters
float
SumArea
;
// total area
float
MaxDelay
;
// max delay
float
SumArea0
;
// total area at the begining
...
...
@@ -147,10 +153,21 @@ static inline SC_Man * Abc_SclManAlloc( SC_Lib * pLib, Abc_Ntk_t * pNtk )
for
(
i
=
0
;
i
<
Abc_NtkCoNum
(
pNtk
);
i
++
)
Vec_QuePush
(
p
->
vQue
,
i
);
p
->
vUpdates
=
Vec_IntAlloc
(
1000
);
// intermediate data
p
->
vNode2Gain
=
Vec_FltStart
(
p
->
nObjs
);
p
->
vNode2Gate
=
Vec_IntStart
(
p
->
nObjs
);
p
->
vNodeByGain
=
Vec_QueAlloc
(
p
->
nObjs
);
Vec_QueSetCosts
(
p
->
vNodeByGain
,
Vec_FltArray
(
p
->
vNode2Gain
)
);
p
->
vNodeIter
=
Vec_IntStartFull
(
p
->
nObjs
);
return
p
;
}
static
inline
void
Abc_SclManFree
(
SC_Man
*
p
)
{
Vec_IntFreeP
(
&
p
->
vNodeIter
);
Vec_QueFreeP
(
&
p
->
vNodeByGain
);
Vec_FltFreeP
(
&
p
->
vNode2Gain
);
Vec_IntFreeP
(
&
p
->
vNode2Gate
);
// intermediate data
Vec_IntFreeP
(
&
p
->
vUpdates
);
Vec_IntFreeP
(
&
p
->
vGatesBest
);
// Vec_QuePrint( p->vQue );
...
...
src/map/scl/sclUpsize.c
View file @
dd25b90f
This diff is collapsed.
Click to expand it.
src/misc/vec/vecQue.h
View file @
dd25b90f
...
...
@@ -226,7 +226,10 @@ static inline int Vec_QuePop( Vec_Que_t * p )
assert
(
p
->
nSize
>
1
);
Res
=
p
->
pHeap
[
1
];
p
->
pOrder
[
Res
]
=
-
1
;
if
(
--
p
->
nSize
==
1
)
{
p
->
pHeap
[
1
]
=
-
1
;
return
Res
;
}
v
=
p
->
pHeap
[
p
->
nSize
];
p
->
pHeap
[
p
->
nSize
]
=
-
1
;
p
->
pHeap
[
1
]
=
v
;
p
->
pOrder
[
v
]
=
1
;
Vec_QueMoveDown
(
p
,
v
);
...
...
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