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
2a39b635
Commit
2a39b635
authored
Sep 07, 2013
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improvements to the new technology mapper.
parent
137a7662
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
9 deletions
+13
-9
src/aig/gia/giaJf.c
+13
-9
No files found.
src/aig/gia/giaJf.c
View file @
2a39b635
...
@@ -527,6 +527,12 @@ void Jf_ObjComputeCuts( Jf_Man_t * p, Gia_Obj_t * pObj )
...
@@ -527,6 +527,12 @@ void Jf_ObjComputeCuts( Jf_Man_t * p, Gia_Obj_t * pObj )
void
Jf_ManComputeCuts
(
Jf_Man_t
*
p
)
void
Jf_ManComputeCuts
(
Jf_Man_t
*
p
)
{
{
Gia_Obj_t
*
pObj
;
int
i
;
Gia_Obj_t
*
pObj
;
int
i
;
if
(
p
->
pPars
->
fVerbose
)
{
printf
(
"Aig: CI = %d CO = %d AND = %d "
,
Gia_ManCiNum
(
p
->
pGia
),
Gia_ManCoNum
(
p
->
pGia
),
Gia_ManAndNum
(
p
->
pGia
)
);
printf
(
"LutSize = %d CutMax = %d Rounds = %d
\n
"
,
p
->
pPars
->
nLutSize
,
p
->
pPars
->
nCutNum
,
p
->
pPars
->
nRounds
);
printf
(
"Computing cuts...
\r
"
);
}
Gia_ManForEachObj
(
p
->
pGia
,
pObj
,
i
)
Gia_ManForEachObj
(
p
->
pGia
,
pObj
,
i
)
{
{
if
(
Gia_ObjIsCi
(
pObj
)
||
Gia_ObjIsBuf
(
pObj
)
)
if
(
Gia_ObjIsCi
(
pObj
)
||
Gia_ObjIsBuf
(
pObj
)
)
...
@@ -538,12 +544,10 @@ void Jf_ManComputeCuts( Jf_Man_t * p )
...
@@ -538,12 +544,10 @@ void Jf_ManComputeCuts( Jf_Man_t * p )
}
}
if
(
p
->
pPars
->
fVerbose
)
if
(
p
->
pPars
->
fVerbose
)
{
{
printf
(
"Aig: CI = %d CO = %d AND = %d "
,
Gia_ManCiNum
(
p
->
pGia
),
Gia_ManCoNum
(
p
->
pGia
),
Gia_ManAndNum
(
p
->
pGia
)
);
printf
(
"CutPair = %lu "
,
p
->
CutCount
[
0
]
);
printf
(
"LutSize = %d CutMax = %d Rounds = %d
\n
"
,
p
->
pPars
->
nLutSize
,
p
->
pPars
->
nCutNum
,
p
->
pPars
->
nRounds
);
printf
(
"Merge = %lu "
,
p
->
CutCount
[
1
]
);
printf
(
"CutPair = %d "
,
p
->
CutCount
[
0
]
);
printf
(
"Eval = %lu "
,
p
->
CutCount
[
2
]
);
printf
(
"Merge = %d "
,
p
->
CutCount
[
1
]
);
printf
(
"Cut = %lu "
,
p
->
CutCount
[
3
]
);
printf
(
"Eval = %d "
,
p
->
CutCount
[
2
]
);
printf
(
"Cut = %d "
,
p
->
CutCount
[
3
]
);
Abc_PrintTime
(
1
,
"Time"
,
Abc_Clock
()
-
p
->
clkStart
);
Abc_PrintTime
(
1
,
"Time"
,
Abc_Clock
()
-
p
->
clkStart
);
printf
(
"Memory: "
);
printf
(
"Memory: "
);
printf
(
"Gia = %.2f MB "
,
Gia_ManMemory
(
p
->
pGia
)
/
(
1
<<
20
)
);
printf
(
"Gia = %.2f MB "
,
Gia_ManMemory
(
p
->
pGia
)
/
(
1
<<
20
)
);
...
@@ -722,9 +726,9 @@ void Jf_ManPrintStats( Jf_Man_t * p, char * pTitle )
...
@@ -722,9 +726,9 @@ void Jf_ManPrintStats( Jf_Man_t * p, char * pTitle )
if
(
!
p
->
pPars
->
fVerbose
)
if
(
!
p
->
pPars
->
fVerbose
)
return
;
return
;
printf
(
"%s : "
,
pTitle
);
printf
(
"%s : "
,
pTitle
);
printf
(
"
Time
=%6d "
,
p
->
pPars
->
Delay
);
printf
(
"
Level
=%6d "
,
p
->
pPars
->
Delay
);
printf
(
"Area =%
8d "
,
p
->
pPars
->
Area
);
printf
(
"Area =%
9d "
,
p
->
pPars
->
Area
);
printf
(
"Edge =%
8d "
,
p
->
pPars
->
Edge
);
printf
(
"Edge =%
9d "
,
p
->
pPars
->
Edge
);
Abc_PrintTime
(
1
,
"Time"
,
Abc_Clock
()
-
p
->
clkStart
);
Abc_PrintTime
(
1
,
"Time"
,
Abc_Clock
()
-
p
->
clkStart
);
}
}
Gia_Man_t
*
Jf_ManPerformMapping
(
Gia_Man_t
*
pGia
,
Jf_Par_t
*
pPars
)
Gia_Man_t
*
Jf_ManPerformMapping
(
Gia_Man_t
*
pGia
,
Jf_Par_t
*
pPars
)
...
...
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