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
41d18ca0
Commit
41d18ca0
authored
Aug 25, 2015
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changing 'refactor' to work with truth tables.
parent
24f2a120
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
11 deletions
+9
-11
src/base/abci/abc.c
+9
-4
src/base/abci/abcRefactor.c
+0
-0
src/base/io/ioReadEqn.c
+0
-7
No files found.
src/base/abci/abc.c
View file @
41d18ca0
...
...
@@ -5919,7 +5919,7 @@ int Abc_CommandRefactor( Abc_Frame_t * pAbc, int argc, char ** argv )
fUseDcs
=
0
;
fVerbose
=
0
;
Extra_UtilGetoptReset
();
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"N
Clzd
vh"
)
)
!=
EOF
)
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"N
lz
vh"
)
)
!=
EOF
)
{
switch
(
c
)
{
...
...
@@ -5979,6 +5979,11 @@ int Abc_CommandRefactor( Abc_Frame_t * pAbc, int argc, char ** argv )
Abc_Print
(
-
1
,
"AIG resynthesis cannot be applied to AIGs with choice nodes.
\n
"
);
return
1
;
}
if
(
nNodeSizeMax
>
15
)
{
Abc_Print
(
-
1
,
"The cone size cannot exceed 15.
\n
"
);
return
1
;
}
if
(
fUseDcs
&&
nNodeSizeMax
>=
nConeSizeMax
)
{
...
...
@@ -5995,13 +6000,13 @@ int Abc_CommandRefactor( Abc_Frame_t * pAbc, int argc, char ** argv )
return
0
;
usage:
Abc_Print
(
-
2
,
"usage: refactor [-N
C <num>] [-lzd
vh]
\n
"
);
Abc_Print
(
-
2
,
"usage: refactor [-N
<num>] [-lz
vh]
\n
"
);
Abc_Print
(
-
2
,
"
\t
performs technology-independent refactoring of the AIG
\n
"
);
Abc_Print
(
-
2
,
"
\t
-N <num> : the max support of the collapsed node [default = %d]
\n
"
,
nNodeSizeMax
);
Abc_Print
(
-
2
,
"
\t
-C <num> : the max support of the containing cone [default = %d]
\n
"
,
nConeSizeMax
);
//
Abc_Print( -2, "\t-C <num> : the max support of the containing cone [default = %d]\n", nConeSizeMax );
Abc_Print
(
-
2
,
"
\t
-l : toggle preserving the number of levels [default = %s]
\n
"
,
fUpdateLevel
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-z : toggle using zero-cost replacements [default = %s]
\n
"
,
fUseZeros
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-d : toggle using don't-cares [default = %s]
\n
"
,
fUseDcs
?
"yes"
:
"no"
);
//
Abc_Print( -2, "\t-d : toggle using don't-cares [default = %s]\n", fUseDcs? "yes": "no" );
Abc_Print
(
-
2
,
"
\t
-v : toggle verbose printout [default = %s]
\n
"
,
fVerbose
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-h : print the command usage
\n
"
);
return
1
;
src/base/abci/abcRefactor.c
View file @
41d18ca0
This diff is collapsed.
Click to expand it.
src/base/io/ioReadEqn.c
View file @
41d18ca0
...
...
@@ -27,8 +27,6 @@ ABC_NAMESPACE_IMPL_START
/// DECLARATIONS ///
////////////////////////////////////////////////////////////////////////
#ifdef ABC_USE_CUDD
static
Abc_Ntk_t
*
Io_ReadEqnNetwork
(
Extra_FileReader_t
*
p
);
static
void
Io_ReadEqnStrCompact
(
char
*
pStr
);
static
int
Io_ReadEqnStrFind
(
Vec_Ptr_t
*
vTokens
,
char
*
pName
);
...
...
@@ -235,11 +233,6 @@ void Io_ReadEqnStrCutAt( char * pStr, char * pStop, int fUniqueOnly, Vec_Ptr_t *
Vec_PtrPush
(
vTokens
,
pToken
);
}
#else
Abc_Ntk_t
*
Io_ReadEqn
(
char
*
pFileName
,
int
fCheck
)
{
return
NULL
;
}
#endif
////////////////////////////////////////////////////////////////////////
/// END OF FILE ///
...
...
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