Re: [myhdl-list] Setting of enum values
Brought to you by:
jandecaluwe
From: Henry G. <he...@ca...> - 2016-01-21 17:09:39
|
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 |