Re: [myhdl-list] Setting of enum values
Brought to you by:
jandecaluwe
From: Jan D. <ja...@ja...> - 2015-01-10 11:44:59
|
On 01/10/2015 11:41 AM, Henry Gomersall wrote: > > There is an argument to be made (which I'm trying to make :) ) that > enums should be handled and enforced at the MyHDL level, and converted > to whatever types make sense at the HDL level. Requiring that MyHDL > enums map to VHDL enums rather limits their scope. That is not the requirement. The enum was modeled after the VHDL enums because I consider that a better model than alternatives in other languages that I know of. The fact that they map naturally to VHDL enums is simply a consequence of that modeling decision. Jan -- 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 |