Re: [myhdl-list] Small buglet
Brought to you by:
jandecaluwe
From: Jan D. <ja...@ja...> - 2008-09-15 12:09:00
|
Jan Decaluwe wrote: > Thomas Heller wrote: >> While working with Python generators in a testbench to supply test data to my instances, >> I found that the myhdl.instances() function not only returns MyHDL instances but also >> these generators. > > Right. Sometimes I think that myhdl.instances() is a result > of me trying to be too clever, and therefore not really a good > idea. Suppose it would be required to always return instances > explicitly, would anyone have missed it? > > Anyway. I think that you expect that the function only finds > instances created by the MyHDL decorators @instance, @always > and @always_comb (and also the "hierarchical" instances of > course.) In development the behavior of instances() has been changed. It now works as suggested above. Jan -- Jan Decaluwe - Resources bvba - http://www.jandecaluwe.com Kaboutermansstraat 97, B-3000 Leuven, Belgium From Python to silicon: http://myhdl.jandecaluwe.com |