pyGHDL.libghdl._decorator#

Functions

  • EnumLookupTable(): Decorator to precalculate an enum lookup table (LUT) for enum position to


Functions

pyGHDL.libghdl._decorator.EnumLookupTable(cls)[source]#

Decorator to precalculate an enum lookup table (LUT) for enum position to enum literal name.

Parameters:

cls – Enumerator class for which a LUT shall be pre-calculated.

Return type:

Callable