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
99b408fc
Commit
99b408fc
authored
Jan 28, 2012
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Generation of dual-rail miter.
parent
5aeab257
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
10 deletions
+16
-10
src/aig/saig/saig.h
+1
-1
src/base/abci/abc.c
+15
-9
No files found.
src/aig/saig/saig.h
View file @
99b408fc
...
@@ -164,7 +164,7 @@ extern void Saig_ManDetectConstrFuncTest( Aig_Man_t * p, int nFrame
...
@@ -164,7 +164,7 @@ extern void Saig_ManDetectConstrFuncTest( Aig_Man_t * p, int nFrame
extern
Aig_Man_t
*
Saig_ManDupFoldConstrsFunc
(
Aig_Man_t
*
pAig
,
int
fCompl
,
int
fVerbose
);
extern
Aig_Man_t
*
Saig_ManDupFoldConstrsFunc
(
Aig_Man_t
*
pAig
,
int
fCompl
,
int
fVerbose
);
extern
Aig_Man_t
*
Saig_ManDupUnfoldConstrsFunc
(
Aig_Man_t
*
pAig
,
int
nFrames
,
int
nConfs
,
int
nProps
,
int
fOldAlgo
,
int
fVerbose
);
extern
Aig_Man_t
*
Saig_ManDupUnfoldConstrsFunc
(
Aig_Man_t
*
pAig
,
int
nFrames
,
int
nConfs
,
int
nProps
,
int
fOldAlgo
,
int
fVerbose
);
/*=== saigDual.c ==========================================================*/
/*=== saigDual.c ==========================================================*/
extern
Aig_Man_t
*
Saig_ManDupDual
(
Aig_Man_t
*
pAig
,
int
nDualPis
,
int
fDualFfs
,
int
fComplPo
);
extern
Aig_Man_t
*
Saig_ManDupDual
(
Aig_Man_t
*
pAig
,
int
nDualPis
,
int
fDualFfs
,
int
f
MiterFfs
,
int
f
ComplPo
);
extern
void
Saig_ManBlockPo
(
Aig_Man_t
*
pAig
,
int
nCycles
);
extern
void
Saig_ManBlockPo
(
Aig_Man_t
*
pAig
,
int
nCycles
);
/*=== saigDup.c ==========================================================*/
/*=== saigDup.c ==========================================================*/
extern
Aig_Man_t
*
Saig_ManDupOrpos
(
Aig_Man_t
*
p
);
extern
Aig_Man_t
*
Saig_ManDupOrpos
(
Aig_Man_t
*
p
);
...
...
src/base/abci/abc.c
View file @
99b408fc
...
@@ -21098,12 +21098,13 @@ int Abc_CommandDualRail( Abc_Frame_t * pAbc, int argc, char ** argv )
...
@@ -21098,12 +21098,13 @@ int Abc_CommandDualRail( Abc_Frame_t * pAbc, int argc, char ** argv )
Abc_Ntk_t
*
pNtk
,
*
pNtkNew
=
NULL
;
Abc_Ntk_t
*
pNtk
,
*
pNtkNew
=
NULL
;
Aig_Man_t
*
pAig
,
*
pAigNew
;
Aig_Man_t
*
pAig
,
*
pAigNew
;
int
c
;
int
c
;
int
nDualPis
=
0
;
int
nDualPis
=
0
;
int
fDualFfs
=
0
;
int
fDualFfs
=
0
;
int
fComplPo
=
0
;
int
fMiterFfs
=
0
;
int
fVerbose
=
0
;
int
fComplPo
=
0
;
int
fVerbose
=
0
;
Extra_UtilGetoptReset
();
Extra_UtilGetoptReset
();
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"Ifcvh"
)
)
!=
EOF
)
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"I
t
fcvh"
)
)
!=
EOF
)
{
{
switch
(
c
)
switch
(
c
)
{
{
...
@@ -21118,9 +21119,12 @@ int Abc_CommandDualRail( Abc_Frame_t * pAbc, int argc, char ** argv )
...
@@ -21118,9 +21119,12 @@ int Abc_CommandDualRail( Abc_Frame_t * pAbc, int argc, char ** argv )
if
(
nDualPis
<
0
)
if
(
nDualPis
<
0
)
goto
usage
;
goto
usage
;
break
;
break
;
case
'
f
'
:
case
'
t
'
:
fDualFfs
^=
1
;
fDualFfs
^=
1
;
break
;
break
;
case
'f'
:
fMiterFfs
^=
1
;
break
;
case
'c'
:
case
'c'
:
fComplPo
^=
1
;
fComplPo
^=
1
;
break
;
break
;
...
@@ -21150,7 +21154,7 @@ int Abc_CommandDualRail( Abc_Frame_t * pAbc, int argc, char ** argv )
...
@@ -21150,7 +21154,7 @@ int Abc_CommandDualRail( Abc_Frame_t * pAbc, int argc, char ** argv )
// tranform
// tranform
pAig
=
Abc_NtkToDar
(
pNtk
,
0
,
1
);
pAig
=
Abc_NtkToDar
(
pNtk
,
0
,
1
);
pAigNew
=
Saig_ManDupDual
(
pAig
,
nDualPis
,
fDualFfs
,
fComplPo
);
pAigNew
=
Saig_ManDupDual
(
pAig
,
nDualPis
,
fDualFfs
,
f
MiterFfs
,
f
ComplPo
);
Aig_ManStop
(
pAig
);
Aig_ManStop
(
pAig
);
pNtkNew
=
Abc_NtkFromAigPhase
(
pAigNew
);
pNtkNew
=
Abc_NtkFromAigPhase
(
pAigNew
);
pNtkNew
->
pName
=
Extra_UtilStrsav
(
pNtk
->
pName
);
pNtkNew
->
pName
=
Extra_UtilStrsav
(
pNtk
->
pName
);
...
@@ -21161,11 +21165,13 @@ int Abc_CommandDualRail( Abc_Frame_t * pAbc, int argc, char ** argv )
...
@@ -21161,11 +21165,13 @@ int Abc_CommandDualRail( Abc_Frame_t * pAbc, int argc, char ** argv )
return
0
;
return
0
;
usage:
usage:
Abc_Print
(
-
2
,
"usage: dualrail [-I num] [-fcvh]
\n
"
);
Abc_Print
(
-
2
,
"usage: dualrail [-I num] [-
t
fcvh]
\n
"
);
Abc_Print
(
-
2
,
"
\t
transforms the current AIG into a dual-rail miter
\n
"
);
Abc_Print
(
-
2
,
"
\t
transforms the current AIG into a dual-rail miter
\n
"
);
Abc_Print
(
-
2
,
"
\t
expressing the property
\"
at least one PO has ternary value
\"\n
"
);
Abc_Print
(
-
2
,
"
\t
expressing the property
\"
at least one PO has ternary value
\"\n
"
);
Abc_Print
(
-
2
,
"
\t
(to compute an initialization sequence, use switches
\"
-tfc
\"
)
\n
"
);
Abc_Print
(
-
2
,
"
\t
-I num : the number of first PIs interpreted as ternary [default = %d]
\n
"
,
nDualPis
);
Abc_Print
(
-
2
,
"
\t
-I num : the number of first PIs interpreted as ternary [default = %d]
\n
"
,
nDualPis
);
Abc_Print
(
-
2
,
"
\t
-f : toggle ternary flop init values [default = %s]
\n
"
,
fDualFfs
?
"yes"
:
"const0 init values"
);
Abc_Print
(
-
2
,
"
\t
-t : toggle ternary flop init values [default = %s]
\n
"
,
fDualFfs
?
"yes"
:
"const0 init values"
);
Abc_Print
(
-
2
,
"
\t
-f : toggle mitering flops instead of POs [default = %s]
\n
"
,
fMiterFfs
?
"flops"
:
"POs"
);
Abc_Print
(
-
2
,
"
\t
-c : toggle complementing the miter output [default = %s]
\n
"
,
fComplPo
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-c : toggle complementing the miter output [default = %s]
\n
"
,
fComplPo
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-v : toggle printing optimization summary [default = %s]
\n
"
,
fVerbose
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-v : toggle printing optimization summary [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
"
);
...
...
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