Re: [myhdl-list] always_comb exception
Brought to you by:
jandecaluwe
From: Christopher F. <chr...@gm...> - 2013-10-09 21:42:52
|
<snip> > And got this dump from ipython: > <snip> > --------------------------------------------------------------------------- > IOError Traceback (most recent call last) > <snip> That is odd, I receive no such error. Python 2.7.3 |EPD 7.3-2 (64-bit)| (default, Apr 11 2012, 17:52:16) Type "copyright", "credits" or "license" for more information. IPython 0.12.1 -- An enhanced Interactive Python. In [3]: from myhdl import * ...: def Mux(z, a, b, sel): ...: @always_comb ...: def muxLogic(): ...: if sel == 1: ...: z.next = a ...: else: ...: z.next = b ...: return muxLogic ...: z, a, b, sel = [Signal(0) for i in range(4)] ...: mux_1 = Mux(z,a,b,sel) ...: print(z,a,b,sel,mux_1) ...: (Signal(0), Signal(0), Signal(0), Signal(0), <myhdl._always_comb._AlwaysComb object at 0x0000000006383278>) I also tried it on ipython 1.0.0 on windoze and no error, hmmm. I am also running myhdl 0.8.1 with the above. .chris |