Menu

#42 Using len(signal) is wrongly detected as reading the signal

Development
closed-fixed
None
5
2013-09-15
2013-08-25
No

When one uses len(signal) the MyHDL code analysis thinks that the signal is being read. This is obviously not true, only the bit depth is queried.

Attaching a small example where things either break (when using @always_comb) or an erroneous warning is printed.

1 Attachments

Discussion

  • Benjamin Berg

    Benjamin Berg - 2013-08-30

    Patch which fixes it by setting the access type to UNKNOWN.
    I wonder if it would make sense to add a new type called QUERY or something.

     
  • Jan Decaluwe

    Jan Decaluwe - 2013-09-15
    • status: open --> closed-fixed
    • assigned_to: Jan Decaluwe
     
  • Jan Decaluwe

    Jan Decaluwe - 2013-09-15

    Fixed in development

     

Log in to post a comment.

Auth0 Logo