[myhdl-list] some issue
Brought to you by:
jandecaluwe
From: <chr...@si...> - 2016-06-22 16:46:13
|
Dear all, When I using myhdl, I found some issue that could be improvement as following for discussion A) information for debug is not enough For example, I build some basic library. when something wrong (e.g multiple driven ), myhdl only report the location happens in the library in conversion, but not tell me where I call the library. I try to modify the the Error class to add a "node" property, then use "try .. exception" to catch the node information as following.class Error(Exception): def __init__(self, kind, msg="", info="",node=None): self.kind = kind self.msg = msg self.info = info self.node = node The solution is helpful, but not convenient. It's better to automatically locate the root cause of the error. B) In simulation, there is similar issue when use lot of library as issue A. But I have no ideas to add debug info (need more time to figure out the simulation mechanism, currently not document found) C) in python 3.5, the following will report a "n.signed" error ( n has no attribute of "signed") @myhdl.always_comb def rtl(): if a == True: do_something. But if I change the True to 1, that's OK. Also it's hard to debug this kind of issue, becuase the trackback not tell me where it happen. Any suggestion? RegardsChriss |