<filename>hwtLib/examples/errors/inconsistentIntfDirection.py
from hwt.synthesizer.unit import Unit
from hwtLib.amba.axis import AxiStream


class InconsistentIntfDirection(Unit):
    def _declr(self):
        self.a = AxiStream()._m()

    def _impl(self):
        # missing drivers of self.a
        pass


if __name__ == "__main__":
    from hwt.synthesizer.utils import to_rtl_str
    u = InconsistentIntfDirection()
    # expecting hwt.synthesizer.exceptions.IntfLvlConfErr
    print(to_rtl_str(u))

<filename>hwtLib/examples/errors/inconsistentIntfDirection.py
from hwt.synthesizer.unit import Unit
from hwtLib.amba.axis import AxiStream


class InconsistentIntfDirection(Unit):
    def _declr(self):
        self.a = AxiStream()._m()

    def _impl(self):
        # missing drivers of self.a
        pass


if __name__ == "__main__":
    from hwt.synthesizer.utils import to_rtl_str
    u = InconsistentIntfDirection()
    # expecting hwt.synthesizer.exceptions.IntfLvlConfErr
    print(to_rtl_str(u))

# missing drivers of self.a # expecting hwt.synthesizer.exceptions.IntfLvlConfErr