Source code for hwt.hdl.types.slice
from hwt.doc_markers import internal
from hwt.hdl.types.hdlType import HdlType
from hwt.pyUtils.typingFuture import override
[docs]
class HSlice(HdlType):
"""
Slice type, used for selecting items from arrays or vectors
"""
[docs]
@internal
@classmethod
def getConstCls(cls):
try:
return cls._constCls
except AttributeError:
from hwt.hdl.types.sliceConst import HSliceConst
cls._constCls = HSliceConst
return cls._constCls
[docs]
@internal
@override
@classmethod
def getRtlSignalCls(cls):
try:
return cls._rtlSignalCls
except AttributeError:
from hwt.hdl.types.sliceConst import HSliceRtlSignal
cls._rtlSignalCls = HSliceRtlSignal
return cls._rtlSignalCls