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
d96d3e3f
Commit
d96d3e3f
authored
Jan 18, 2019
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changing default parameter values in the AIG generation code.
parent
81b263e3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
12 deletions
+38
-12
src/base/abci/abc.c
+37
-11
src/misc/extra/extraUtilGen.c
+1
-1
No files found.
src/base/abci/abc.c
View file @
d96d3e3f
...
...
@@ -45439,15 +45439,17 @@ usage:
***********************************************************************/
int
Abc_CommandAbc9Gen
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
)
{
extern
Gia_Man_t
*
Extra_CommandGen
(
int
Algo
,
int
LutSize
,
int
nLuts
,
int
nLevels
,
int
fVerbose
);
extern
Gia_Man_t
*
Extra_CommandGen
(
int
Algo
,
int
LutSize
,
int
nLuts
,
int
nLevels
,
int
Limit
,
int
nBestTries
,
int
fVerbose
);
Gia_Man_t
*
pTemp
=
NULL
;
int
Algo
=
0
;
int
LutSize
=
6
;
int
nLuts
=
256
;
int
nLevels
=
8
;
int
Limit
=
0
;
int
nBestTries
=
1
;
int
c
,
fVerbose
=
0
;
Extra_UtilGetoptReset
();
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"AKN
L
vh"
)
)
!=
EOF
)
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"AKN
DLB
vh"
)
)
!=
EOF
)
{
switch
(
c
)
{
...
...
@@ -45484,10 +45486,10 @@ int Abc_CommandAbc9Gen( Abc_Frame_t * pAbc, int argc, char ** argv )
if
(
nLuts
<
0
)
goto
usage
;
break
;
case
'
L
'
:
case
'
D
'
:
if
(
globalUtilOptind
>=
argc
)
{
Abc_Print
(
-
1
,
"Command line switch
\"
-
L
\"
should be followed by an integer.
\n
"
);
Abc_Print
(
-
1
,
"Command line switch
\"
-
D
\"
should be followed by an integer.
\n
"
);
goto
usage
;
}
nLevels
=
atoi
(
argv
[
globalUtilOptind
]);
...
...
@@ -45495,6 +45497,28 @@ int Abc_CommandAbc9Gen( Abc_Frame_t * pAbc, int argc, char ** argv )
if
(
nLevels
<
0
)
goto
usage
;
break
;
case
'L'
:
if
(
globalUtilOptind
>=
argc
)
{
Abc_Print
(
-
1
,
"Command line switch
\"
-L
\"
should be followed by an integer.
\n
"
);
goto
usage
;
}
Limit
=
atoi
(
argv
[
globalUtilOptind
]);
globalUtilOptind
++
;
if
(
Limit
<
0
)
goto
usage
;
break
;
case
'B'
:
if
(
globalUtilOptind
>=
argc
)
{
Abc_Print
(
-
1
,
"Command line switch
\"
-B
\"
should be followed by an integer.
\n
"
);
goto
usage
;
}
nBestTries
=
atoi
(
argv
[
globalUtilOptind
]);
globalUtilOptind
++
;
if
(
nBestTries
<
0
)
goto
usage
;
break
;
case
'v'
:
fVerbose
^=
1
;
break
;
...
...
@@ -45504,18 +45528,20 @@ int Abc_CommandAbc9Gen( Abc_Frame_t * pAbc, int argc, char ** argv )
goto
usage
;
}
}
pTemp
=
Extra_CommandGen
(
Algo
,
LutSize
,
nLuts
,
nLevels
,
fVerbose
);
pTemp
=
Extra_CommandGen
(
Algo
,
LutSize
,
nLuts
,
nLevels
,
Limit
,
nBestTries
,
fVerbose
);
Abc_FrameUpdateGia
(
pAbc
,
pTemp
);
return
0
;
usage:
Abc_Print
(
-
2
,
"usage: &gen [-AKN
L
vh]
\n
"
);
Abc_Print
(
-
2
,
"usage: &gen [-AKN
DLB
vh]
\n
"
);
Abc_Print
(
-
2
,
"
\t
generates network
\n
"
);
Abc_Print
(
-
2
,
"
\t
-A num : the generation algorithm [default = %d]
\n
"
,
Algo
);
Abc_Print
(
-
2
,
"
\t
-K num : the number of LUT inputs [default = %d]
\n
"
,
LutSize
);
Abc_Print
(
-
2
,
"
\t
-N num : the number of LUTs on one level [default = %d]
\n
"
,
nLuts
);
Abc_Print
(
-
2
,
"
\t
-L num : the number of LUT levels [default = %d]
\n
"
,
nLevels
);
Abc_Print
(
-
2
,
"
\t
-v : toggle printing verbose information [default = %s]
\n
"
,
fVerbose
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-A num : the generation algorithm [default = %d]
\n
"
,
Algo
);
Abc_Print
(
-
2
,
"
\t
-K num : the number of LUT inputs [default = %d]
\n
"
,
LutSize
);
Abc_Print
(
-
2
,
"
\t
-N num : the number of LUTs on one level [default = %d]
\n
"
,
nLuts
);
Abc_Print
(
-
2
,
"
\t
-D num : the number of LUT levels [default = %d]
\n
"
,
nLevels
);
Abc_Print
(
-
2
,
"
\t
-L num : limit below which we randomize [default = %d]
\n
"
,
Limit
);
Abc_Print
(
-
2
,
"
\t
-B num : select best fanins among this many tries [default = %d]
\n
"
,
nBestTries
);
Abc_Print
(
-
2
,
"
\t
-v : toggle printing verbose information [default = %s]
\n
"
,
fVerbose
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-h : print the command usage
\n
"
);
return
1
;
}
src/misc/extra/extraUtilGen.c
View file @
d96d3e3f
...
...
@@ -50,7 +50,7 @@ ABC_NAMESPACE_IMPL_START
SeeAlso []
***********************************************************************/
Gia_Man_t
*
Extra_CommandGen
(
int
Algo
,
int
LutSize
,
int
nLuts
,
int
nLevels
,
int
fVerbose
)
Gia_Man_t
*
Extra_CommandGen
(
int
Algo
,
int
LutSize
,
int
nLuts
,
int
nLevels
,
int
Limit
,
int
nBestTries
,
int
fVerbose
)
{
return
NULL
;
}
...
...
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