Re: [myhdl-list] Driving constants
Brought to you by:
jandecaluwe
From: Jan D. <ja...@ja...> - 2011-09-05 08:02:14
|
On 09/04/2011 11:26 AM, Sébastien Bourdeauducq wrote: > On 09/03/2011 10:16 PM, Jan Decaluwe wrote: >> I don't see what's messy about it. > > Ok, then here is some more background: > > I have an abstract class FunctionalUnit which implements dataflow > processing units. This abstract class creates handshaking signals (ack, > strobe) common to all functional units which are used to control the > flow of data. > The method ImplementControl is overloaded by derived classes to > implement the actual handshaking logic, and returns instances. Now, when > some functional units need to drive handshaking signals constants, and > if it is not possible to build "constant drivers" instances, it becomes > messy. What would probably work is if such a method returns an empty list, explicitly indicating that it has no generators to contribute. -- Jan Decaluwe - Resources bvba - http://www.jandecaluwe.com Python as a HDL: http://www.myhdl.org VHDL development, the modern way: http://www.sigasi.com World-class digital design: http://www.easics.com |