[myhdl-list] Setting of enum values
Brought to you by:
jandecaluwe
From: Henry G. <he...@ca...> - 2014-12-28 11:42:22
|
Is there a way to set an enum to have a specific value? 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. The use case is to interface with a library block that has the states already defined, and I don't really want to implement every enumeration for my usage. I suppose the simple workaround is to wrap the library with the state logic and let the synthesis tools worry about any optimisations. Cheers, Henry |