some issue
<[email protected]> Thu, 23 Jun 2016 00:45:54 +0800
| Newsgroups | gmane.comp.python.myhdl |
|---|---|
| Message-ID | <[email protected]> |
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
------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
myhdl-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/myhdl-list