Re: [myhdl-list] Driving constants
Brought to you by:
jandecaluwe
From: Sébastien B. <seb...@mi...> - 2011-09-06 12:30:56
|
On 09/06/2011 02:26 PM, Jan Decaluwe wrote: > On 09/05/2011 10:48 AM, Sébastien Bourdeauducq wrote: >> On 09/05/2011 10:01 AM, Jan Decaluwe wrote: >>> What would probably work is if such a method returns >>> an empty list, explicitly indicating that it has no >>> generators to contribute. >> >> Then how will MyHDL get the constant values to use, if all it gets from >> the method is an empty list? > > From the initial value of the signals. And how do I set it? 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. |