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
aeb7f7ea
Commit
aeb7f7ea
authored
Oct 02, 2012
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Combined old reparametrization command with the new one.
parent
9d6f7fa4
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
26 additions
and
68 deletions
+26
-68
abclib.dsp
+4
-4
src/aig/gia/gia.h
+0
-2
src/aig/gia/module.make
+0
-1
src/base/abci/abc.c
+12
-54
src/proof/abs/abs.h
+4
-0
src/proof/abs/absRpmOld.c
+5
-7
src/proof/abs/module.make
+1
-0
No files found.
abclib.dsp
View file @
aeb7f7ea
...
@@ -3503,10 +3503,6 @@ SOURCE=.\src\aig\gia\giaPat.c
...
@@ -3503,10 +3503,6 @@ SOURCE=.\src\aig\gia\giaPat.c
# End Source File
# End Source File
# Begin Source File
# Begin Source File
SOURCE=.\src\aig\gia\giaReparam.c
# End Source File
# Begin Source File
SOURCE=.\src\aig\gia\giaRetime.c
SOURCE=.\src\aig\gia\giaRetime.c
# End Source File
# End Source File
# Begin Source File
# Begin Source File
...
@@ -4411,6 +4407,10 @@ SOURCE=.\src\proof\abs\absRpm.c
...
@@ -4411,6 +4407,10 @@ SOURCE=.\src\proof\abs\absRpm.c
# End Source File
# End Source File
# Begin Source File
# Begin Source File
SOURCE=.\src\proof\abs\absRpmOld.c
# End Source File
# Begin Source File
SOURCE=.\src\proof\abs\absUtil.c
SOURCE=.\src\proof\abs\absUtil.c
# End Source File
# End Source File
# Begin Source File
# Begin Source File
...
...
src/aig/gia/gia.h
View file @
aeb7f7ea
...
@@ -857,8 +857,6 @@ extern void Gia_MmStepEntryRecycle( Gia_MmStep_t * p, char * pEnt
...
@@ -857,8 +857,6 @@ extern void Gia_MmStepEntryRecycle( Gia_MmStep_t * p, char * pEnt
extern
int
Gia_MmStepReadMemUsage
(
Gia_MmStep_t
*
p
);
extern
int
Gia_MmStepReadMemUsage
(
Gia_MmStep_t
*
p
);
/*=== giaPat.c ===========================================================*/
/*=== giaPat.c ===========================================================*/
extern
void
Gia_SatVerifyPattern
(
Gia_Man_t
*
p
,
Gia_Obj_t
*
pRoot
,
Vec_Int_t
*
vCex
,
Vec_Int_t
*
vVisit
);
extern
void
Gia_SatVerifyPattern
(
Gia_Man_t
*
p
,
Gia_Obj_t
*
pRoot
,
Vec_Int_t
*
vCex
,
Vec_Int_t
*
vVisit
);
/*=== giaReparam.c ===========================================================*/
extern
Gia_Man_t
*
Gia_ManReparam
(
Gia_Man_t
*
p
,
int
fVerbose
);
/*=== giaRetime.c ===========================================================*/
/*=== giaRetime.c ===========================================================*/
extern
Gia_Man_t
*
Gia_ManRetimeForward
(
Gia_Man_t
*
p
,
int
nMaxIters
,
int
fVerbose
);
extern
Gia_Man_t
*
Gia_ManRetimeForward
(
Gia_Man_t
*
p
,
int
nMaxIters
,
int
fVerbose
);
/*=== giaSat.c ============================================================*/
/*=== giaSat.c ============================================================*/
...
...
src/aig/gia/module.make
View file @
aeb7f7ea
...
@@ -28,7 +28,6 @@ SRC += src/aig/gia/gia.c \
...
@@ -28,7 +28,6 @@ SRC += src/aig/gia/gia.c \
src/aig/gia/giaMan.c
\
src/aig/gia/giaMan.c
\
src/aig/gia/giaMem.c
\
src/aig/gia/giaMem.c
\
src/aig/gia/giaPat.c
\
src/aig/gia/giaPat.c
\
src/aig/gia/giaReparam.c
\
src/aig/gia/giaRetime.c
\
src/aig/gia/giaRetime.c
\
src/aig/gia/giaScl.c
\
src/aig/gia/giaScl.c
\
src/aig/gia/giaShrink.c
\
src/aig/gia/giaShrink.c
\
...
...
src/base/abci/abc.c
View file @
aeb7f7ea
...
@@ -342,7 +342,6 @@ static int Abc_CommandAbc9Trace ( Abc_Frame_t * pAbc, int argc, cha
...
@@ -342,7 +342,6 @@ static int Abc_CommandAbc9Trace ( Abc_Frame_t * pAbc, int argc, cha
static
int
Abc_CommandAbc9Speedup
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandAbc9Speedup
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandAbc9Era
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandAbc9Era
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandAbc9Dch
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandAbc9Dch
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandAbc9Reparam
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandAbc9Rpm
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandAbc9Rpm
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandAbc9BackReach
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandAbc9BackReach
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandAbc9Posplit
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandAbc9Posplit
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
...
@@ -791,7 +790,6 @@ void Abc_Init( Abc_Frame_t * pAbc )
...
@@ -791,7 +790,6 @@ void Abc_Init( Abc_Frame_t * pAbc )
Cmd_CommandAdd
(
pAbc
,
"ABC9"
,
"&speedup"
,
Abc_CommandAbc9Speedup
,
0
);
Cmd_CommandAdd
(
pAbc
,
"ABC9"
,
"&speedup"
,
Abc_CommandAbc9Speedup
,
0
);
Cmd_CommandAdd
(
pAbc
,
"ABC9"
,
"&era"
,
Abc_CommandAbc9Era
,
0
);
Cmd_CommandAdd
(
pAbc
,
"ABC9"
,
"&era"
,
Abc_CommandAbc9Era
,
0
);
Cmd_CommandAdd
(
pAbc
,
"ABC9"
,
"&dch"
,
Abc_CommandAbc9Dch
,
0
);
Cmd_CommandAdd
(
pAbc
,
"ABC9"
,
"&dch"
,
Abc_CommandAbc9Dch
,
0
);
Cmd_CommandAdd
(
pAbc
,
"ABC9"
,
"&reparam"
,
Abc_CommandAbc9Reparam
,
0
);
Cmd_CommandAdd
(
pAbc
,
"ABC9"
,
"&rpm"
,
Abc_CommandAbc9Rpm
,
0
);
Cmd_CommandAdd
(
pAbc
,
"ABC9"
,
"&rpm"
,
Abc_CommandAbc9Rpm
,
0
);
Cmd_CommandAdd
(
pAbc
,
"ABC9"
,
"&back_reach"
,
Abc_CommandAbc9BackReach
,
0
);
Cmd_CommandAdd
(
pAbc
,
"ABC9"
,
"&back_reach"
,
Abc_CommandAbc9BackReach
,
0
);
Cmd_CommandAdd
(
pAbc
,
"ABC9"
,
"&posplit"
,
Abc_CommandAbc9Posplit
,
0
);
Cmd_CommandAdd
(
pAbc
,
"ABC9"
,
"&posplit"
,
Abc_CommandAbc9Posplit
,
0
);
...
@@ -26736,61 +26734,15 @@ usage:
...
@@ -26736,61 +26734,15 @@ usage:
SeeAlso []
SeeAlso []
***********************************************************************/
***********************************************************************/
int
Abc_CommandAbc9Reparam
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
)
{
Gia_Man_t
*
pTemp
=
NULL
;
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
(
pAbc
->
pGia
==
NULL
)
{
Abc_Print
(
-
1
,
"Abc_CommandAbc9Reparam(): There is no AIG.
\n
"
);
return
0
;
}
pTemp
=
Gia_ManReparam
(
pAbc
->
pGia
,
fVerbose
);
Abc_CommandUpdate9
(
pAbc
,
pTemp
);
return
0
;
usage:
Abc_Print
(
-
2
,
"usage: &reparam [-vh]
\n
"
);
Abc_Print
(
-
2
,
"
\t
performs input trimming and reparameterization
\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*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
***********************************************************************/
int
Abc_CommandAbc9Rpm
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
)
int
Abc_CommandAbc9Rpm
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
)
{
{
extern
Gia_Man_t
*
Abs_RpmPerform
(
Gia_Man_t
*
p
,
int
nCutMax
,
int
fVerbose
,
int
fVeryVerbose
);
Gia_Man_t
*
pTemp
;
Gia_Man_t
*
pTemp
;
int
c
,
nCutMax
=
6
;
int
c
,
nCutMax
=
6
;
int
fUseOldAlgo
=
0
;
int
fVerbose
=
0
;
int
fVerbose
=
0
;
int
fVeryVerbose
=
0
;
int
fVeryVerbose
=
0
;
Extra_UtilGetoptReset
();
Extra_UtilGetoptReset
();
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"Cvwh"
)
)
!=
EOF
)
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"C
a
vwh"
)
)
!=
EOF
)
{
{
switch
(
c
)
switch
(
c
)
{
{
...
@@ -26805,6 +26757,9 @@ int Abc_CommandAbc9Rpm( Abc_Frame_t * pAbc, int argc, char ** argv )
...
@@ -26805,6 +26757,9 @@ int Abc_CommandAbc9Rpm( Abc_Frame_t * pAbc, int argc, char ** argv )
if
(
nCutMax
<
0
)
if
(
nCutMax
<
0
)
goto
usage
;
goto
usage
;
break
;
break
;
case
'a'
:
fUseOldAlgo
^=
1
;
break
;
case
'v'
:
case
'v'
:
fVerbose
^=
1
;
fVerbose
^=
1
;
break
;
break
;
...
@@ -26822,15 +26777,18 @@ int Abc_CommandAbc9Rpm( Abc_Frame_t * pAbc, int argc, char ** argv )
...
@@ -26822,15 +26777,18 @@ int Abc_CommandAbc9Rpm( Abc_Frame_t * pAbc, int argc, char ** argv )
Abc_Print
(
-
1
,
"Abc_CommandAbc9Rpm(): There is no AIG.
\n
"
);
Abc_Print
(
-
1
,
"Abc_CommandAbc9Rpm(): There is no AIG.
\n
"
);
return
0
;
return
0
;
}
}
pTemp
=
Abs_RpmPerform
(
pAbc
->
pGia
,
nCutMax
,
fVerbose
,
fVeryVerbose
);
if
(
fUseOldAlgo
)
if
(
pTemp
)
pTemp
=
Abs_RpmPerformOld
(
pAbc
->
pGia
,
fVerbose
);
Abc_CommandUpdate9
(
pAbc
,
pTemp
);
else
pTemp
=
Abs_RpmPerform
(
pAbc
->
pGia
,
nCutMax
,
fVerbose
,
fVeryVerbose
);
Abc_CommandUpdate9
(
pAbc
,
pTemp
);
return
0
;
return
0
;
usage:
usage:
Abc_Print
(
-
2
,
"usage: &rpm [-C num] [-vwh]
\n
"
);
Abc_Print
(
-
2
,
"usage: &rpm [-C num] [-
a
vwh]
\n
"
);
Abc_Print
(
-
2
,
"
\t
performs structural reparametrization
\n
"
);
Abc_Print
(
-
2
,
"
\t
performs structural reparametrization
\n
"
);
Abc_Print
(
-
2
,
"
\t
-C num : max cut size for testing range equivalence [default = %d]
\n
"
,
nCutMax
);
Abc_Print
(
-
2
,
"
\t
-C num : max cut size for testing range equivalence [default = %d]
\n
"
,
nCutMax
);
Abc_Print
(
-
2
,
"
\t
-a : toggle using old algorithm [default = %s]
\n
"
,
fUseOldAlgo
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-v : toggle printing verbose information [default = %s]
\n
"
,
fVerbose
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-v : toggle printing verbose information [default = %s]
\n
"
,
fVerbose
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-w : toggle printing more verbose information [default = %s]
\n
"
,
fVeryVerbose
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-w : toggle printing more verbose information [default = %s]
\n
"
,
fVeryVerbose
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-h : print the command usage
\n
"
);
Abc_Print
(
-
2
,
"
\t
-h : print the command usage
\n
"
);
...
...
src/proof/abs/abs.h
View file @
aeb7f7ea
...
@@ -123,6 +123,10 @@ extern Vec_Int_t * Gia_GlaConvertToFla( Gia_Man_t * p, Vec_Int_t * vGla );
...
@@ -123,6 +123,10 @@ extern Vec_Int_t * Gia_GlaConvertToFla( Gia_Man_t * p, Vec_Int_t * vGla );
extern
int
Gia_GlaCountFlops
(
Gia_Man_t
*
p
,
Vec_Int_t
*
vGla
);
extern
int
Gia_GlaCountFlops
(
Gia_Man_t
*
p
,
Vec_Int_t
*
vGla
);
extern
int
Gia_GlaCountNodes
(
Gia_Man_t
*
p
,
Vec_Int_t
*
vGla
);
extern
int
Gia_GlaCountNodes
(
Gia_Man_t
*
p
,
Vec_Int_t
*
vGla
);
/*=== absRpm.c =========================================================*/
extern
Gia_Man_t
*
Abs_RpmPerform
(
Gia_Man_t
*
p
,
int
nCutMax
,
int
fVerbose
,
int
fVeryVerbose
);
/*=== absRpmOld.c =========================================================*/
extern
Gia_Man_t
*
Abs_RpmPerformOld
(
Gia_Man_t
*
p
,
int
fVerbose
);
/*=== absOldCex.c ==========================================================*/
/*=== absOldCex.c ==========================================================*/
extern
Vec_Int_t
*
Saig_ManCbaFilterFlops
(
Aig_Man_t
*
pAig
,
Abc_Cex_t
*
pAbsCex
,
Vec_Int_t
*
vFlopClasses
,
Vec_Int_t
*
vAbsFfsToAdd
,
int
nFfsToSelect
);
extern
Vec_Int_t
*
Saig_ManCbaFilterFlops
(
Aig_Man_t
*
pAig
,
Abc_Cex_t
*
pAbsCex
,
Vec_Int_t
*
vFlopClasses
,
Vec_Int_t
*
vAbsFfsToAdd
,
int
nFfsToSelect
);
...
...
src/
aig/gia/giaReparam
.c
→
src/
proof/abs/absRpmOld
.c
View file @
aeb7f7ea
/**CFile****************************************************************
/**CFile****************************************************************
FileName [
gia
.c]
FileName [
absRpmOld
.c]
SystemName [ABC: Logic synthesis and verification system.]
SystemName [ABC: Logic synthesis and verification system.]
PackageName [Scalable AIG package.]
PackageName [Scalable AIG package.]
Synopsis []
Synopsis [
Old min-cut-based reparametrization.
]
Author [Alan Mishchenko]
Author [Alan Mishchenko]
...
@@ -14,13 +14,11 @@
...
@@ -14,13 +14,11 @@
Date [Ver. 1.0. Started - June 20, 2005.]
Date [Ver. 1.0. Started - June 20, 2005.]
Revision [$Id:
gia
.c,v 1.00 2005/06/20 00:00:00 alanmi Exp $]
Revision [$Id:
absRpmOld
.c,v 1.00 2005/06/20 00:00:00 alanmi Exp $]
***********************************************************************/
***********************************************************************/
#include "gia.h"
#include "abs.h"
#include "giaAig.h"
#include "aig/saig/saig.h"
ABC_NAMESPACE_IMPL_START
ABC_NAMESPACE_IMPL_START
...
@@ -140,7 +138,7 @@ Gia_Man_t * Gia_ManDupFf2In( Gia_Man_t * p, int nFlopsOld )
...
@@ -140,7 +138,7 @@ Gia_Man_t * Gia_ManDupFf2In( Gia_Man_t * p, int nFlopsOld )
SeeAlso []
SeeAlso []
***********************************************************************/
***********************************************************************/
Gia_Man_t
*
Gia_ManReparam
(
Gia_Man_t
*
p
,
int
fVerbose
)
Gia_Man_t
*
Abs_RpmPerformOld
(
Gia_Man_t
*
p
,
int
fVerbose
)
{
{
// extern Aig_Man_t * Saig_ManRetimeMinArea( Aig_Man_t * p, int nMaxIters, int fForwardOnly, int fBackwardOnly, int fInitial, int fVerbose );
// extern Aig_Man_t * Saig_ManRetimeMinArea( Aig_Man_t * p, int nMaxIters, int fForwardOnly, int fBackwardOnly, int fInitial, int fVerbose );
Aig_Man_t
*
pMan
,
*
pTemp
;
Aig_Man_t
*
pMan
,
*
pTemp
;
...
...
src/proof/abs/module.make
View file @
aeb7f7ea
...
@@ -12,5 +12,6 @@ SRC += src/proof/abs/abs.c \
...
@@ -12,5 +12,6 @@ SRC += src/proof/abs/abs.c \
src/proof/abs/absRef.c
\
src/proof/abs/absRef.c
\
src/proof/abs/absRefSelect.c
\
src/proof/abs/absRefSelect.c
\
src/proof/abs/absRpm.c
\
src/proof/abs/absRpm.c
\
src/proof/abs/absRpmOld.c
\
src/proof/abs/absVta.c
\
src/proof/abs/absVta.c
\
src/proof/abs/absUtil.c
src/proof/abs/absUtil.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