Re: [myhdl-list] Another typo in docs
Brought to you by:
jandecaluwe
From: Henry G. <he...@ca...> - 2015-01-04 17:30:02
|
On 24/05/14 01:52, Christopher Felton wrote: > Here are the merged changes - I don't know if this is > the final version/format desired but it is a starting > point, I merged it to the 0.9dev branch: > > https://bitbucket.org/cfelton/myhdl_09dev_doctest/overview Did you ever had this working? I'm getting a problem in which inspect.getsource is unable to return the correct source of the function inside always_comb. Specifically, the source of muxLogic in comb1 in rtl.rst is given as: def test(): print "z a b sel" for i in range(8): a.next, b.next, sel.next = randrange(8), randrange(8), randrange(2) yield delay(10) print "%s %s %s %s" % (z, a, b, sel) i.e. the source of test(). Clearly, this means the sensitivity list is not found properly with a resultant error raised by myhdl. The test code works fine in a standalone .py file, so it's some interaction with sphinx doctest. Cheers, Henry |