Block return values (myhdl.BlockError)

Jos Huisken <[email protected]> Tue, 29 Mar 2016 13:54:34 +0000 (UTC)
Newsgroups gmane.comp.python.myhdl
Message-ID <[email protected]>
Hi,

Sometimes I'm using a block like this:

def tb():
    m, clk, rst = clkrst()
    return m, clk, rst

In which 'm' is the list of instantiator objects, and 'clk'/'rst' are 
Signals.
So this way you can specify a block in general:

def unit(inputports):
    ...
    return m, outputports

Note that this could be a preferred way of design. It just happened that I 
created few such examples.

With the new block decorator this is not allowed anymore, raising a 
myhdl.BlockError.

I can imagine that also other return values may be wanted by users.
Is this something which can be taken into account?
Or: should 'block's really be constrained in returning just block or 
instantiator objects?

Thanks,
Jos


------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140