summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2019-04-17 11:50:16 -0700
committerAlan Mishchenko <alanmi@berkeley.edu>2019-04-17 11:50:16 -0700
commitf7a13e11ad95051a4890f333503876ac635fc4cf (patch)
tree98733772397ccbe4561ec83fee06178bc109a8e8 /src
parentd1b6413d1cafdd302ad6f45eb366320f758fa716 (diff)
downloadabc-f7a13e11ad95051a4890f333503876ac635fc4cf.tar.gz
abc-f7a13e11ad95051a4890f333503876ac635fc4cf.tar.bz2
abc-f7a13e11ad95051a4890f333503876ac635fc4cf.zip
Fix naming problem in converting a logic network into a netlist.
Diffstat (limited to 'src')
-rw-r--r--src/base/abc/abcNetlist.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/base/abc/abcNetlist.c b/src/base/abc/abcNetlist.c
index 0a5f623b..75aa51ad 100644
--- a/src/base/abc/abcNetlist.c
+++ b/src/base/abc/abcNetlist.c
@@ -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;
}