[myhdl-list] Block return values (myhdl.BlockError)
Brought to you by:
jandecaluwe
|
From: Jos H. <jos...@gm...> - 2016-03-29 13:54:56
|
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
|