diff options
Diffstat (limited to 'grc/python/flow_graph.tmpl')
-rw-r--r-- | grc/python/flow_graph.tmpl | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/grc/python/flow_graph.tmpl b/grc/python/flow_graph.tmpl index bee9c68af5..b07c296d09 100644 --- a/grc/python/flow_graph.tmpl +++ b/grc/python/flow_graph.tmpl @@ -90,8 +90,8 @@ class $(class_name)(gr.top_block): def __init__($param_str): gr.top_block.__init__(self, "$title") #elif $generate_options == 'hb' - #set $in_sigs = $flow_graph.get_io_signaturev('in') - #set $out_sigs = $flow_graph.get_io_signaturev('out') + #set $in_sigs = $flow_graph.get_hier_block_stream_io('in') + #set $out_sigs = $flow_graph.get_hier_block_stream_io('out') class $(class_name)(gr.hier_block2): #def make_io_sig($io_sigs) #set $size_strs = ['%s*%s'%(io_sig['size'], io_sig['vlen']) for io_sig in $io_sigs] @@ -110,6 +110,12 @@ gr.io_signaturev($(len($io_sigs)), $(len($io_sigs)), [$(', '.join($size_strs))]) $make_io_sig($in_sigs), $make_io_sig($out_sigs), ) + #for $pad in $flow_graph.get_hier_block_message_io('in') + self.message_port_register_hier_out("$pad['label']") + #end for + #for $pad in $flow_graph.get_hier_block_message_io('out') + self.message_port_register_hier_in("$pad['label']") + #end for #end if ######################################################## ##Create Parameters @@ -208,11 +214,11 @@ gr.io_signaturev($(len($io_sigs)), $(len($io_sigs)), [$(', '.join($size_strs))]) #end for ######################################################## -##Create Asynch Message Connections +##Create Message Connections ######################################################## #if $messages2 $DIVIDER - # Asynch Message Connections + # Message Connections $DIVIDER #end if #for $msg in $messages2 |