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
3abd9773
Commit
3abd9773
authored
Mar 23, 2012
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enabled demitering dual-output miters.
parent
1c31dbe7
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
35 deletions
+17
-35
src/base/abci/abc.c
+15
-33
src/base/abci/abcDar.c
+1
-1
src/base/abci/abcDress2.c
+1
-1
No files found.
src/base/abci/abc.c
View file @
3abd9773
...
@@ -5666,30 +5666,21 @@ usage:
...
@@ -5666,30 +5666,21 @@ usage:
***********************************************************************/
***********************************************************************/
int
Abc_CommandDemiter
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
)
int
Abc_CommandDemiter
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
)
{
{
Abc_Ntk_t
*
pNtk
=
Abc_FrameReadNtk
(
pAbc
);
//, * pNtkRes;
Abc_Ntk_t
*
pNtk
=
Abc_FrameReadNtk
(
pAbc
);
int
fDual
,
fSeq
,
fVerbose
;
int
c
,
fDual
,
fVerbose
;
int
c
;
extern
int
Abc_NtkDemiter
(
Abc_Ntk_t
*
pNtk
);
extern
int
Abc_NtkDarDemiter
(
Abc_Ntk_t
*
pNtk
);
extern
int
Abc_NtkDarDemiter
(
Abc_Ntk_t
*
pNtk
);
extern
int
Abc_NtkDarDemiterDual
(
Abc_Ntk_t
*
pNtk
,
int
fVerbose
);
extern
int
Abc_NtkDarDemiterDual
(
Abc_Ntk_t
*
pNtk
,
int
fVerbose
);
extern
int
Abc_NtkDarDemiterNew
(
Abc_Ntk_t
*
pNtk
);
// set defaults
// set defaults
fDual
=
0
;
fDual
=
0
;
fSeq
=
1
;
fVerbose
=
1
;
fVerbose
=
1
;
Extra_UtilGetoptReset
();
Extra_UtilGetoptReset
();
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"d
s
vh"
)
)
!=
EOF
)
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"dvh"
)
)
!=
EOF
)
{
{
switch
(
c
)
switch
(
c
)
{
{
case
'd'
:
case
'd'
:
fDual
^=
1
;
fDual
^=
1
;
break
;
break
;
case
's'
:
fSeq
^=
1
;
break
;
case
'v'
:
case
'v'
:
fVerbose
^=
1
;
fVerbose
^=
1
;
break
;
break
;
...
@@ -5710,9 +5701,6 @@ int Abc_CommandDemiter( Abc_Frame_t * pAbc, int argc, char ** argv )
...
@@ -5710,9 +5701,6 @@ int Abc_CommandDemiter( Abc_Frame_t * pAbc, int argc, char ** argv )
return
1
;
return
1
;
}
}
// Abc_NtkDarDemiterNew( pNtk );
// return 0;
if
(
fDual
)
if
(
fDual
)
{
{
if
(
(
Abc_NtkPoNum
(
pNtk
)
&
1
)
)
if
(
(
Abc_NtkPoNum
(
pNtk
)
&
1
)
)
...
@@ -5727,18 +5715,7 @@ int Abc_CommandDemiter( Abc_Frame_t * pAbc, int argc, char ** argv )
...
@@ -5727,18 +5715,7 @@ int Abc_CommandDemiter( Abc_Frame_t * pAbc, int argc, char ** argv )
}
}
return
0
;
return
0
;
}
}
/*
// get the new network
if
(
fSeq
)
{
if
(
!
Abc_NtkDarDemiter
(
pNtk
)
)
{
Abc_Print
(
-
1
,
"Demitering has failed.
\n
"
);
return
1
;
}
}
else
{
if ( Abc_NtkPoNum(pNtk) != 1 )
if ( Abc_NtkPoNum(pNtk) != 1 )
{
{
Abc_Print( -1, "The network is not a single-output miter.\n" );
Abc_Print( -1, "The network is not a single-output miter.\n" );
...
@@ -5754,16 +5731,21 @@ int Abc_CommandDemiter( Abc_Frame_t * pAbc, int argc, char ** argv )
...
@@ -5754,16 +5731,21 @@ int Abc_CommandDemiter( Abc_Frame_t * pAbc, int argc, char ** argv )
Abc_Print( -1, "Demitering has failed.\n" );
Abc_Print( -1, "Demitering has failed.\n" );
return 1;
return 1;
}
}
*/
// get the new network
if
(
!
Abc_NtkDarDemiter
(
pNtk
)
)
{
Abc_Print
(
-
1
,
"Demitering has failed.
\n
"
);
return
1
;
}
}
// replace the current network
// replace the current network
// Abc_FrameReplaceCurrentNetwork( pAbc, pNtkRes );
// Abc_FrameReplaceCurrentNetwork( pAbc, pNtkRes );
return
0
;
return
0
;
usage:
usage:
Abc_Print
(
-
2
,
"usage: demiter [-dsvh]
\n
"
);
Abc_Print
(
-
2
,
"usage: demiter [-dvh]
\n
"
);
Abc_Print
(
-
2
,
"
\t
removes topmost XOR from the miter to create two POs
\n
"
);
Abc_Print
(
-
2
,
"
\t
splits sequential miter into two circuits
\n
"
);
Abc_Print
(
-
2
,
"
\t
-d : demiters a dual-output miter (without XORs) [default = %s]
\n
"
,
fSeq
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-d : expects a dual-output miter (without XORs) [default = %s]
\n
"
,
fDual
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-s : applies a multi-output algorithm [default = %s]
\n
"
,
fSeq
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-v : toggles outputting verbose information [default = %s]
\n
"
,
fVerbose
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-v : toggles outputting verbose information [default = %s]
\n
"
,
fVerbose
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-h : print the command usage
\n
"
);
Abc_Print
(
-
2
,
"
\t
-h : print the command usage
\n
"
);
return
1
;
return
1
;
...
@@ -24370,7 +24352,7 @@ int Abc_CommandAbc9Miter( Abc_Frame_t * pAbc, int argc, char ** argv )
...
@@ -24370,7 +24352,7 @@ int Abc_CommandAbc9Miter( Abc_Frame_t * pAbc, int argc, char ** argv )
usage:
usage:
Abc_Print
(
-
2
,
"usage: &miter [-dstvh] <file>
\n
"
);
Abc_Print
(
-
2
,
"usage: &miter [-dstvh] <file>
\n
"
);
Abc_Print
(
-
2
,
"
\t
creates miter of two designs (current AIG vs. <file>)
\n
"
);
Abc_Print
(
-
2
,
"
\t
creates miter of two designs (current AIG vs. <file>)
\n
"
);
Abc_Print
(
-
2
,
"
\t
-d : toggle creating dual
output miter [default = %s]
\n
"
,
fDualOut
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-d : toggle creating dual
-
output miter [default = %s]
\n
"
,
fDualOut
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-s : toggle creating sequential miter [default = %s]
\n
"
,
fSeq
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-s : toggle creating sequential miter [default = %s]
\n
"
,
fSeq
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-t : toggle XORing pair-wise POs of the miter [default = %s]
\n
"
,
fTrans
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-t : toggle XORing pair-wise POs of the miter [default = %s]
\n
"
,
fTrans
?
"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"
);
...
@@ -25034,7 +25016,7 @@ int Abc_CommandAbc9Srm( Abc_Frame_t * pAbc, int argc, char ** argv )
...
@@ -25034,7 +25016,7 @@ int Abc_CommandAbc9Srm( Abc_Frame_t * pAbc, int argc, char ** argv )
usage:
usage:
Abc_Print
(
-
2
,
"usage: &srm [-drsfvh]
\n
"
);
Abc_Print
(
-
2
,
"usage: &srm [-drsfvh]
\n
"
);
Abc_Print
(
-
2
,
"
\t
writes speculatively reduced model into file
\"
%s
\"\n
"
,
pFileName
);
Abc_Print
(
-
2
,
"
\t
writes speculatively reduced model into file
\"
%s
\"\n
"
,
pFileName
);
Abc_Print
(
-
2
,
"
\t
-d : toggle creating dual
output miter [default = %s]
\n
"
,
fDualOut
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-d : toggle creating dual
-
output miter [default = %s]
\n
"
,
fDualOut
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-r : toggle writing reduced network for synthesis [default = %s]
\n
"
,
fSynthesis
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-r : toggle writing reduced network for synthesis [default = %s]
\n
"
,
fSynthesis
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-s : toggle using speculation at the internal nodes [default = %s]
\n
"
,
fSpeculate
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-s : toggle using speculation at the internal nodes [default = %s]
\n
"
,
fSpeculate
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-f : toggle filtering to remove redundant equivalences [default = %s]
\n
"
,
fSkipSome
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-f : toggle filtering to remove redundant equivalences [default = %s]
\n
"
,
fSkipSome
?
"yes"
:
"no"
);
...
...
src/base/abci/abcDar.c
View file @
3abd9773
...
@@ -2186,7 +2186,7 @@ int Abc_NtkDarDemiter( Abc_Ntk_t * pNtk )
...
@@ -2186,7 +2186,7 @@ int Abc_NtkDarDemiter( Abc_Ntk_t * pNtk )
return
0
;
return
0
;
}
}
// create file names
// create file names
pFileNameGeneric
=
Extra_FileNameGeneric
(
pNtk
->
pSpec
);
pFileNameGeneric
=
Extra_FileNameGeneric
(
pNtk
->
pSpec
?
pNtk
->
pSpec
:
pNtk
->
pName
);
sprintf
(
pFileName0
,
"%s%s"
,
pFileNameGeneric
,
"_part0.aig"
);
sprintf
(
pFileName0
,
"%s%s"
,
pFileNameGeneric
,
"_part0.aig"
);
sprintf
(
pFileName1
,
"%s%s"
,
pFileNameGeneric
,
"_part1.aig"
);
sprintf
(
pFileName1
,
"%s%s"
,
pFileNameGeneric
,
"_part1.aig"
);
ABC_FREE
(
pFileNameGeneric
);
ABC_FREE
(
pFileNameGeneric
);
...
...
src/base/abci/abcDress2.c
View file @
3abd9773
...
@@ -70,7 +70,7 @@ extern void Dch_ComputeEquivalences( Aig_Man_t * pAig, Dch_Pars_t * pPar
...
@@ -70,7 +70,7 @@ extern void Dch_ComputeEquivalences( Aig_Man_t * pAig, Dch_Pars_t * pPar
/**Function*************************************************************
/**Function*************************************************************
Synopsis [Creates the dual
output miter.]
Synopsis [Creates the dual
-
output miter.]
Description []
Description []
...
...
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