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
3e9bc99e
Commit
3e9bc99e
authored
Apr 17, 2019
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding new command handler for experimental procedures.
parent
f7a13e11
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
107 additions
and
0 deletions
+107
-0
abclib.dsp
+4
-0
src/base/abci/abc.c
+47
-0
src/base/abci/abcRunGen.c
+55
-0
src/base/abci/module.make
+1
-0
No files found.
abclib.dsp
View file @
3e9bc99e
...
@@ -451,6 +451,10 @@ SOURCE=.\src\base\abci\abcRr.c
...
@@ -451,6 +451,10 @@ SOURCE=.\src\base\abci\abcRr.c
# End Source File
# End Source File
# Begin Source File
# Begin Source File
SOURCE=.\src\base\abci\abcRunGen.c
# End Source File
# Begin Source File
SOURCE=.\src\base\abci\abcSat.c
SOURCE=.\src\base\abci\abcSat.c
# End Source File
# End Source File
# Begin Source File
# Begin Source File
...
...
src/base/abci/abc.c
View file @
3e9bc99e
...
@@ -136,6 +136,7 @@ static int Abc_CommandTestDec ( Abc_Frame_t * pAbc, int argc, cha
...
@@ -136,6 +136,7 @@ static int Abc_CommandTestDec ( Abc_Frame_t * pAbc, int argc, cha
static
int
Abc_CommandTestNpn
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandTestNpn
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandTestRPO
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandTestRPO
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandRunEco
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandRunEco
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandRunGen
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandRewrite
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandRewrite
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandRefactor
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandRefactor
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
...
@@ -833,6 +834,7 @@ void Abc_Init( Abc_Frame_t * pAbc )
...
@@ -833,6 +834,7 @@ void Abc_Init( Abc_Frame_t * pAbc )
Cmd_CommandAdd
(
pAbc
,
"Synthesis"
,
"testnpn"
,
Abc_CommandTestNpn
,
0
);
Cmd_CommandAdd
(
pAbc
,
"Synthesis"
,
"testnpn"
,
Abc_CommandTestNpn
,
0
);
Cmd_CommandAdd
(
pAbc
,
"LogiCS"
,
"testrpo"
,
Abc_CommandTestRPO
,
0
);
Cmd_CommandAdd
(
pAbc
,
"LogiCS"
,
"testrpo"
,
Abc_CommandTestRPO
,
0
);
Cmd_CommandAdd
(
pAbc
,
"Synthesis"
,
"runeco"
,
Abc_CommandRunEco
,
0
);
Cmd_CommandAdd
(
pAbc
,
"Synthesis"
,
"runeco"
,
Abc_CommandRunEco
,
0
);
Cmd_CommandAdd
(
pAbc
,
"Synthesis"
,
"rungen"
,
Abc_CommandRunGen
,
0
);
Cmd_CommandAdd
(
pAbc
,
"Synthesis"
,
"rewrite"
,
Abc_CommandRewrite
,
1
);
Cmd_CommandAdd
(
pAbc
,
"Synthesis"
,
"rewrite"
,
Abc_CommandRewrite
,
1
);
Cmd_CommandAdd
(
pAbc
,
"Synthesis"
,
"refactor"
,
Abc_CommandRefactor
,
1
);
Cmd_CommandAdd
(
pAbc
,
"Synthesis"
,
"refactor"
,
Abc_CommandRefactor
,
1
);
...
@@ -6962,6 +6964,51 @@ usage:
...
@@ -6962,6 +6964,51 @@ usage:
}
}
/**Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
***********************************************************************/
int
Abc_CommandRunGen
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
)
{
extern
void
Acb_NtkRunGen
(
char
*
pFileNames
[
2
],
int
fVerbose
);
int
c
,
fVerbose
=
0
;
Extra_UtilGetoptReset
();
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"vh"
)
)
!=
EOF
)
{
switch
(
c
)
{
case
'v'
:
fVerbose
^=
1
;
break
;
case
'h'
:
goto
usage
;
default:
goto
usage
;
}
}
if
(
argc
-
globalUtilOptind
!=
2
)
{
Abc_Print
(
1
,
"Expecting two file names on the command line.
\n
"
);
goto
usage
;
}
Acb_NtkRunGen
(
argv
+
globalUtilOptind
,
fVerbose
);
return
0
;
usage:
Abc_Print
(
-
2
,
"usage: rungen <file1> <file2> [-vh]
\n
"
);
Abc_Print
(
-
2
,
"
\t
experimental command
\n
"
);
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
;
}
/**Function*************************************************************
/**Function*************************************************************
src/base/abci/abcRunGen.c
0 → 100644
View file @
3e9bc99e
/**CFile****************************************************************
FileName [abcRunGen.c]
SystemName [ABC: Logic synthesis and verification system.]
PackageName [Network and node package.]
Synopsis [Interface to experimental procedures.]
Author [Alan Mishchenko]
Affiliation [UC Berkeley]
Date [Ver. 1.0. Started - June 20, 2005.]
Revision [$Id: abcRunGen.c,v 1.00 2005/06/20 00:00:00 alanmi Exp $]
***********************************************************************/
#include "base/abc/abc.h"
#include "opt/cut/cut.h"
ABC_NAMESPACE_IMPL_START
////////////////////////////////////////////////////////////////////////
/// DECLARATIONS ///
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
/// FUNCTION DEFINITIONS ///
////////////////////////////////////////////////////////////////////////
/**Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
***********************************************************************/
void
Acb_NtkRunGen
(
char
*
pFileNames
[
2
],
int
fVerbose
)
{
}
////////////////////////////////////////////////////////////////////////
/// END OF FILE ///
////////////////////////////////////////////////////////////////////////
ABC_NAMESPACE_IMPL_END
src/base/abci/module.make
View file @
3e9bc99e
...
@@ -59,6 +59,7 @@ SRC += src/base/abci/abc.c \
...
@@ -59,6 +59,7 @@ SRC += src/base/abci/abc.c \
src/base/abci/abcRewrite.c
\
src/base/abci/abcRewrite.c
\
src/base/abci/abcRpo.c
\
src/base/abci/abcRpo.c
\
src/base/abci/abcRr.c
\
src/base/abci/abcRr.c
\
src/base/abci/abcRunGen.c
\
src/base/abci/abcSat.c
\
src/base/abci/abcSat.c
\
src/base/abci/abcSaucy.c
\
src/base/abci/abcSaucy.c
\
src/base/abci/abcScorr.c
\
src/base/abci/abcScorr.c
\
...
...
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