Source code for hwt.interfaces.differential
from hwt.hdl.types.bits import Bits
from hwt.interfaces.std import Signal
from hwt.synthesizer.interface import Interface
[docs]class DifferentialSig(Interface):
"""
Interface of differential pair
"""
[docs] def _declr(self):
self.n = Signal(dtype=Bits(1, negated=True))
self.p = Signal()