Re: Setting of enum values

Henry Gomersall <[email protected]> Thu, 21 Jan 2016 17:09:31 +0000
Newsgroups gmane.comp.python.myhdl
Message-ID <[email protected]>
On 21/01/16 17:04, Christopher Felton wrote:
>>>> >>> You should be able to use constant values in an object,
>>>> >>> this code snip might help:
>>> >>
>>> >> Is this a relatively recent fix?
>>> >>
>> >
>> > Not sure and it depends on your definition
>> > of recent.
>> >
>> > Yes, there was a fix for constants in an object
>> > at some point I don't recall the time frame.
>> >
> Looks like it was fixed for VHDL (always worked
> for Verilog) here:
> https://github.com/jandecaluwe/myhdl/pull/64

Ok, great, thanks. I think namespace encapsulation of constants goes a
long way to solving this problem.

Henry

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140