Re: [myhdl-list] some issue
Brought to you by:
jandecaluwe
From: Christopher F. <chr...@gm...> - 2016-06-22 17:30:32
|
Chriss, Thanks for the input, couple things. Most discussions have been moved to discourse.myhdl.org (forum) and gitter. You might get more responses on discourse. Error reporting can always use improvement but finding the resources and a useful method is a little trickier. One of our GSoC students also ran into "C" and it is difficult to debug. Maybe we can encourage him to add some additional reporting. Regards, Chris On Wed, Jun 22, 2016 at 11:45 AM, <chr...@si...> wrote: > 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? > > Regards > Chriss > > > > ------------------------------------------------------------------------------ > 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 > myh...@li... > https://lists.sourceforge.net/lists/listinfo/myhdl-list > > |