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
675437b2
Commit
675437b2
authored
May 14, 2012
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Preventing 'show' from unmapping the network.
parent
e37fb952
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
src/base/abc/abcShow.c
+12
-7
No files found.
src/base/abc/abcShow.c
View file @
675437b2
...
...
@@ -179,25 +179,23 @@ void Abc_NodeShowCut( Abc_Obj_t * pNode, int nNodeSizeMax, int nConeSizeMax )
SeeAlso []
***********************************************************************/
void
Abc_NtkShow
(
Abc_Ntk_t
*
pNtk
,
int
fGateNames
,
int
fSeq
,
int
fUseReverse
)
void
Abc_NtkShow
(
Abc_Ntk_t
*
pNtk
0
,
int
fGateNames
,
int
fSeq
,
int
fUseReverse
)
{
FILE
*
pFile
;
Abc_Ntk_t
*
pNtk
;
Abc_Obj_t
*
pNode
;
Vec_Ptr_t
*
vNodes
;
char
FileNameDot
[
200
];
int
i
;
assert
(
Abc_NtkIsStrash
(
pNtk
)
||
Abc_NtkIsLogic
(
pNtk
)
);
if
(
Abc_NtkIsStrash
(
pNtk
)
&&
Abc_NtkGetChoiceNum
(
pNtk
)
)
assert
(
Abc_NtkIsStrash
(
pNtk
0
)
||
Abc_NtkIsLogic
(
pNtk0
)
);
if
(
Abc_NtkIsStrash
(
pNtk
0
)
&&
Abc_NtkGetChoiceNum
(
pNtk0
)
)
{
printf
(
"Temporarily visualization of AIGs with choice nodes is disabled.
\n
"
);
return
;
}
// convert to logic SOP
if
(
Abc_NtkIsLogic
(
pNtk
)
)
Abc_NtkToSop
(
pNtk
,
0
);
// create the file name
Abc_ShowGetFileName
(
pNtk
->
pName
,
FileNameDot
);
Abc_ShowGetFileName
(
pNtk
0
->
pName
,
FileNameDot
);
// check that the file can be opened
if
(
(
pFile
=
fopen
(
FileNameDot
,
"w"
))
==
NULL
)
{
...
...
@@ -206,6 +204,12 @@ void Abc_NtkShow( Abc_Ntk_t * pNtk, int fGateNames, int fSeq, int fUseReverse )
}
fclose
(
pFile
);
// convert to logic SOP
pNtk
=
Abc_NtkDup
(
pNtk0
);
if
(
Abc_NtkIsLogic
(
pNtk
)
&&
!
Abc_NtkHasMapping
(
pNtk
)
)
Abc_NtkToSop
(
pNtk
,
0
);
// collect all nodes in the network
vNodes
=
Vec_PtrAlloc
(
100
);
Abc_NtkForEachObj
(
pNtk
,
pNode
,
i
)
...
...
@@ -219,6 +223,7 @@ void Abc_NtkShow( Abc_Ntk_t * pNtk, int fGateNames, int fSeq, int fUseReverse )
// visualize the file
Abc_ShowFile
(
FileNameDot
);
Abc_NtkDelete
(
pNtk
);
}
...
...
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