Using len(signal) is wrongly detected as reading the signal
Brought to you by:
jandecaluwe
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.
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.
Fixed in development