Source code for hwt.hdl.types.function

from hwt.doc_markers import internal
from hwt.hdl.const import HConst
from hwt.hdl.types.hdlType import HdlType
from hwt.pyUtils.typingFuture import override


[docs] class HFunction(HdlType): """ A type which represent reference to HDL function. :note: For compatibility with HDL only. It is not meant to be used as a function pointer to call a function in synthetisable code. """ _PRECOMPUTE_CONSTANT_SIGNALS = False
[docs] def all_mask(self): return 1
[docs] @internal @override @classmethod def getConstCls(cls): return HFunctionConst
[docs] class HFunctionConst(HConst): pass