Re: [myhdl-list] Driving constants
Brought to you by:
jandecaluwe
From: Sébastien B. <seb...@mi...> - 2011-09-06 13:42:58
|
On 09/06/2011 03:39 PM, Jan Decaluwe wrote: >> The signals are created by the __init__ method of the parent class. I >> could of course add parameters to this __init__ method to define the >> initial value of the signals, but it's quite messy and inelegant. > > No, just use overloading, it works for constructors also. Well, yes, but it's still inelegant. > I infer that some signals may have constant values that are > different depending on the subclass. Yes. How about my proposition of yielding a special object "empty sensitivity list/constant driver" in the generators? |