Source code for hwtLib.examples.errors.inconsistentIntfDirection
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from hwt.synthesizer.unit import Unit
from hwtLib.amba.axis import AxiStream
[docs]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))