Re: [myhdl-list] Setting of enum values
Brought to you by:
jandecaluwe
From: Henry G. <he...@ca...> - 2014-12-29 04:26:31
|
On 28/12/14 11:24, Henry Gomersall wrote: > Looking at the code, it seems the enum value is set by the argument > order, so I can't see how to do it trivially. It strikes me that the problem is that the class definition is inside the enum factory function. Is there a reason for this? AFAICT it doesn't acquire any state from the enum function so it could just as easily be at the module level, allowing more flexible usage when needing to fit the enum to an existing definition. Cheers, Henry |