Re: [myhdl-list] Setting of enum values
Brought to you by:
jandecaluwe
From: Jan D. <ja...@ja...> - 2015-01-10 08:55:14
|
On 12/28/2014 06:44 PM, Henry Gomersall wrote: > 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? Sure - the enum factory function is intended to create a brand new type, like in VHDL. -- 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 |