Source code for hwtLib.amba.axis_comp.splitSelect
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from hwtLib.amba.axis_comp.base import AxiSCompBase
from hwtLib.handshaked.splitSelect import HsSplitSelect
[docs]class AxiSSpliSelect(AxiSCompBase, HsSplitSelect):
"""
Send input frame to one of N output streams as specified
by selectOneHot interface
:see: :class:`hwtLib.handshaked.splitSelect.HsSplitSelect`
.. hwt-autodoc::
"""
[docs] def _select_consume_en(self):
return self.dataIn.last
if __name__ == "__main__":
from hwt.synthesizer.utils import to_rtl_str
u = AxiSSpliSelect()
print(to_rtl_str(u))