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
28cbb280
Commit
28cbb280
authored
May 04, 2016
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update to &show to show AIGs with XORs and MUXes (derived by &st -m).
parent
11f1a249
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
4 deletions
+30
-4
src/aig/gia/giaShow.c
+28
-2
src/base/abci/abc.c
+2
-2
No files found.
src/aig/gia/giaShow.c
View file @
28cbb280
...
...
@@ -65,6 +65,10 @@ void Gia_WriteDotAig( Gia_Man_t * pMan, char * pFileName, Vec_Int_t * vBold )
if
(
vBold
)
Gia_ManForEachObjVec
(
vBold
,
pMan
,
pNode
,
i
)
pNode
->
fMark0
=
1
;
else
if
(
pMan
->
nXors
||
pMan
->
nMuxes
)
Gia_ManForEachObj
(
pMan
,
pNode
,
i
)
if
(
Gia_ObjIsXor
(
pNode
)
||
Gia_ObjIsMux
(
pMan
,
pNode
)
)
pNode
->
fMark0
=
1
;
// compute levels
LevelMax
=
1
+
Gia_ManLevelNum
(
pMan
);
...
...
@@ -203,8 +207,14 @@ void Gia_WriteDotAig( Gia_Man_t * pMan, char * pFileName, Vec_Int_t * vBold )
*/
fprintf
(
pFile
,
" Node%d [label =
\"
%d
\"
"
,
i
,
i
);
fprintf
(
pFile
,
", shape = ellipse"
);
if
(
vBold
&&
pNode
->
fMark0
)
if
(
Gia_ObjIsXor
(
pNode
)
)
fprintf
(
pFile
,
", shape = doublecircle"
);
else
if
(
Gia_ObjIsMux
(
pMan
,
pNode
)
)
fprintf
(
pFile
,
", shape = trapezium"
);
else
fprintf
(
pFile
,
", shape = ellipse"
);
if
(
pNode
->
fMark0
)
fprintf
(
pFile
,
", style = filled"
);
fprintf
(
pFile
,
"];
\n
"
);
}
...
...
@@ -289,6 +299,20 @@ void Gia_WriteDotAig( Gia_Man_t * pMan, char * pFileName, Vec_Int_t * vBold )
// fprintf( pFile, ", label = \"%s\"", Seq_ObjFaninGetInitPrintable(pNode,1) );
fprintf
(
pFile
,
"]"
);
fprintf
(
pFile
,
";
\n
"
);
if
(
!
Gia_ObjIsMux
(
pMan
,
pNode
)
)
continue
;
// generate the edge from this node to the next
fprintf
(
pFile
,
"Node%d"
,
i
);
fprintf
(
pFile
,
" -> "
);
fprintf
(
pFile
,
"Node%d"
,
Gia_ObjFaninId2
(
pMan
,
i
)
);
fprintf
(
pFile
,
" ["
);
fprintf
(
pFile
,
"style = %s"
,
Gia_ObjFaninC2
(
pMan
,
pNode
)
?
"dotted"
:
"bold"
);
// if ( Gia_NtkIsSeq(pNode->pMan) && Seq_ObjFaninL1(pNode) > 0 )
// fprintf( pFile, ", label = \"%s\"", Seq_ObjFaninGetInitPrintable(pNode,1) );
fprintf
(
pFile
,
"]"
);
fprintf
(
pFile
,
";
\n
"
);
/*
// generate the edges between the equivalent nodes
if ( fHaig && pNode->pEquiv && Gia_ObjRefs(pNode) > 0 )
...
...
@@ -322,6 +346,8 @@ void Gia_WriteDotAig( Gia_Man_t * pMan, char * pFileName, Vec_Int_t * vBold )
if
(
vBold
)
Gia_ManForEachObjVec
(
vBold
,
pMan
,
pNode
,
i
)
pNode
->
fMark0
=
0
;
else
if
(
pMan
->
nXors
||
pMan
->
nMuxes
)
Gia_ManCleanMark0
(
pMan
);
Vec_IntFreeP
(
&
pMan
->
vLevels
);
}
...
...
src/base/abci/abc.c
View file @
28cbb280
...
...
@@ -39357,7 +39357,7 @@ usage:
Abc_Print
(
-
2
,
" performs heuristic exclusive sum-of-project minimization
\n
"
);
Abc_Print
(
-
2
,
" -Q N : minimization quality [default = 0]
\n
"
);
Abc_Print
(
-
2
,
" increasing this number improves quality and adds to runtime
\n
"
);
Abc_Print
(
-
2
,
" -
Q
N : verbosity level [default = 0]
\n
"
);
Abc_Print
(
-
2
,
" -
V
N : verbosity level [default = 0]
\n
"
);
Abc_Print
(
-
2
,
" 0 = no output; 1 = outline; 2 = verbose
\n
"
);
Abc_Print
(
-
2
,
" <file>: the output file name in ESOP-PLA format
\n
"
);
Abc_Print
(
-
2
,
"
\n
"
);
...
...
@@ -40948,7 +40948,7 @@ int Abc_CommandAbc9Test( Abc_Frame_t * pAbc, int argc, char ** argv )
// Jf_ManTestCnf( pAbc->pGia );
// Gia_ManCheckFalseTest( pAbc->pGia, nFrames );
// Gia_ParTest( pAbc->pGia, nWords, nProcs );
Gia_
Iso3Test
(
pAbc
->
pGia
);
Gia_
PolynExplore
(
pAbc
->
pGia
);
// printf( "\nThis command is currently disabled.\n\n" );
return
0
;
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