From 94e57d651fb5c504550405348ea61dd96db16d39 Mon Sep 17 00:00:00 2001 From: Roselyne Chotin Date: Tue, 13 Nov 2012 19:37:00 +0000 Subject: [PATCH] add possibility to use list of net in Cat function --- stratus1/src/stratus/st_cat.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/stratus1/src/stratus/st_cat.py b/stratus1/src/stratus/st_cat.py index 4cc63fe7..ff58589b 100644 --- a/stratus1/src/stratus/st_cat.py +++ b/stratus1/src/stratus/st_cat.py @@ -66,11 +66,15 @@ def Cat ( *nets ) : netToCat = cell._TAB_NETS_CAT[nb] - if type ( nets[0] ) == types.ListType : nets = nets[0] + #if type ( nets[0] ) == types.ListType : nets = nets[0] # Creation of the inversed tab netstries = [] - for net in nets : netstries.insert ( 0, net ) + for net in nets : + if type(net) == types.ListType : + for netin in net : netstries.insert(0, netin) + else: + netstries.insert ( 0, net ) if ( "_arity" not in net.__dict__ ) or ( "_real_net" not in net.__dict__ ) or ( "_ind" not in net.__dict__ ) : err = "\n[Stratus ERROR] Cat : Problem of parameter.\n"