Source code for hwtLib.examples.errors.inconsistentIntfDirection
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from hwt.hwModule import HwModule
from hwt.pyUtils.typingFuture import override
from hwtLib.amba.axi4s import Axi4Stream
[docs]
class InconsistentIntfDirection(HwModule):
@override
def hwDeclr(self):
self.a = Axi4Stream()._m()
@override
def hwImpl(self):
# missing drivers of self.a
pass
if __name__ == "__main__":
from hwt.synth import to_rtl_str
m = InconsistentIntfDirection()
# expecting hwt.synthesizer.exceptions.IntfLvlConfErr
print(to_rtl_str(m))