Re: [myhdl-list] Modules interface information
Brought to you by:
jandecaluwe
From: Tom D. <td...@di...> - 2011-05-05 15:18:27
|
On 05/05/2011 10:12 AM, Christopher Lozinski wrote: > On 5/5/11 4:17 AM, Christopher Felton wrote: >> > In traditional HDL you have a well-defined interface in the modules: > In Zope 3, they solve this kind of problem by having both > implementation files, and interface files. MyHDL already has > implementation files. Obviously the interface files define the > interfaces. Then two different classes can share the same interface. > For example there may be two different implementations of a floating > point multiplier, that share no code, but have the same interface. Or > you may have two different implementations of an adder that have the > same interface. In Python and MyHDL this is easily handled in the module. If you have two (or more) different implementations of the same module, you just return the appropriate generator based upon either parameters or I/O types. |