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
f7a13e11
Commit
f7a13e11
authored
Apr 17, 2019
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix naming problem in converting a logic network into a netlist.
parent
d1b6413d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
src/base/abc/abcNetlist.c
+4
-1
No files found.
src/base/abc/abcNetlist.c
View file @
f7a13e11
...
...
@@ -216,10 +216,13 @@ Abc_Ntk_t * Abc_NtkLogicToNetlist( Abc_Ntk_t * pNtk )
// create the missing nets
Abc_NtkForEachNode
(
pNtk
,
pObj
,
i
)
{
char
Buffer
[
1000
];
if
(
pObj
->
pCopy
->
pCopy
)
// the net of the new object is already created
continue
;
// create the new net
pNet
=
Abc_NtkFindOrCreateNet
(
pNtkNew
,
Abc_ObjName
(
pObj
)
);
// here we create ridiculous names net line "n48", where 48 is the ID of the node
sprintf
(
Buffer
,
"new_%s_"
,
Abc_ObjName
(
pObj
)
);
//pNet = Abc_NtkFindOrCreateNet( pNtkNew, Abc_ObjName(pObj) ); // here we create net names such as "n48", where 48 is the ID of the node
pNet
=
Abc_NtkFindOrCreateNet
(
pNtkNew
,
Buffer
);
Abc_ObjAddFanin
(
pNet
,
pObj
->
pCopy
);
pObj
->
pCopy
->
pCopy
=
pNet
;
}
...
...
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