Source code for hwtLib.uart.intf

from hwt.interfaces.std import D, Signal
from hwt.serializer.ip_packager.interfaces.intfConfig import IntfConfig
from hwt.synthesizer.interface import Interface


[docs]class Uart(Interface):
[docs] def _declr(self): self.rx = Signal(masterDir=D.IN) self.tx = Signal()
[docs] def _getIpCoreIntfClass(self): return IP_Uart
[docs]class IP_Uart(IntfConfig):
[docs] def __init__(self): super().__init__() self.name = "iic" self.version = "1.0" self.vendor = "xilinx.com" self.library = "interface" self.map = {'rx': "RxD", 'tx': "TxD" }