Re: some issue

Christopher Felton <[email protected]> Wed, 22 Jun 2016 12:30:24 -0500
Newsgroups gmane.comp.python.myhdl
Message-ID <CAECZzK8L447z3JsPDvh_qddp7oD15C1GhurfgVQ91y4a47amXQ@mail.gmail.com>
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, <[email protected]> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/myhdl-list
>
>

------------------------------------------------------------------------------
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