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
70a23637
Commit
70a23637
authored
Aug 27, 2014
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tuning LUT mapping flow.
parent
17343bf1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
src/aig/gia/giaSopb.c
+5
-3
src/base/abci/abc.c
+1
-1
No files found.
src/aig/gia/giaSopb.c
View file @
70a23637
...
...
@@ -348,7 +348,7 @@ void Gia_ManPerformMap( int nAnds, int nLutSize, int nCutNum, int fVerbose )
printf
(
"Mapping with &lf:
\n
"
);
Cmd_CommandExecute
(
Abc_FrameGetGlobalFrame
(),
"&ps"
);
}
if
(
nAnds
<
100000
)
if
(
(
nLutSize
==
4
&&
nAnds
<
100000
)
||
(
nLutSize
==
6
&&
nAnds
<
2000
)
)
{
sprintf
(
Command
,
"&unmap; &if -sz -S %d%d -K %d -C %d"
,
nLutSize
,
nLutSize
,
2
*
nLutSize
-
1
,
2
*
nCutNum
);
Cmd_CommandExecute
(
Abc_FrameGetGlobalFrame
(),
Command
);
...
...
@@ -375,26 +375,28 @@ void Gia_ManPerformRound( int fIsMapped, int nAnds, int nLevels, int nLutSize, i
if
(
nAnds
<
50000
)
{
Cmd_CommandExecute
(
Abc_FrameGetGlobalFrame
(),
""
);
sprintf
(
Command
,
"&dsdb; &dch -f; &if -K %d -C %d; &save
; &st
"
,
nLutSize
,
nCutNum
);
sprintf
(
Command
,
"&dsdb; &dch -f; &if -K %d -C %d; &save"
,
nLutSize
,
nCutNum
);
Cmd_CommandExecute
(
Abc_FrameGetGlobalFrame
(),
Command
);
if
(
fVerbose
)
{
printf
(
"Mapping with &dch -f; &if -K %d -C %d:
\n
"
,
nLutSize
,
nCutNum
);
Cmd_CommandExecute
(
Abc_FrameGetGlobalFrame
(),
"&ps"
);
}
Cmd_CommandExecute
(
Abc_FrameGetGlobalFrame
(),
"&st"
);
}
// perform AIG-based synthesis
if
(
nAnds
<
20000
)
{
Cmd_CommandExecute
(
Abc_FrameGetGlobalFrame
(),
""
);
sprintf
(
Command
,
"&dsdb; &dch -f; &if -K %d -C %d; &save
; &st
"
,
nLutSize
,
nCutNum
);
sprintf
(
Command
,
"&dsdb; &dch -f; &if -K %d -C %d; &save"
,
nLutSize
,
nCutNum
);
Cmd_CommandExecute
(
Abc_FrameGetGlobalFrame
(),
Command
);
if
(
fVerbose
)
{
printf
(
"Mapping with &dch -f; &if -K %d -C %d:
\n
"
,
nLutSize
,
nCutNum
);
Cmd_CommandExecute
(
Abc_FrameGetGlobalFrame
(),
"&ps"
);
}
Cmd_CommandExecute
(
Abc_FrameGetGlobalFrame
(),
"&st"
);
}
// perform first round of mapping
...
...
src/base/abci/abc.c
View file @
70a23637
...
...
@@ -25552,7 +25552,7 @@ int Abc_CommandAbc9Save( Abc_Frame_t * pAbc, int argc, char ** argv )
}
if
(
!
Gia_ManHasMapping
(
pAbc
->
pGia
)
)
{
Abc_Print
(
-
1
,
"GIA has no
t
mapping.
\n
"
);
Abc_Print
(
-
1
,
"GIA has no mapping.
\n
"
);
return
1
;
}
if
(
!
Gia_ManCompareWithBest
(
pAbc
->
pGiaBest
,
pAbc
->
pGia
,
&
pAbc
->
nBestLuts
,
&
pAbc
->
nBestEdges
,
&
pAbc
->
nBestLevels
)
)
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