diff --git a/sol_usb/gateware/interface/ulpi.py b/sol_usb/gateware/interface/ulpi.py index c1dfec57..556c6d98 100644 --- a/sol_usb/gateware/interface/ulpi.py +++ b/sol_usb/gateware/interface/ulpi.py @@ -22,9 +22,21 @@ class UPLIDataRecord(Record): o: Signal oe: Signal + def __init__(self): + super().__init__([ + ('i', 8, DIR_FANIN), + ('o', 8, DIR_FANOUT), + ('oe', 8, DIR_FANOUT), + ]) + class UPLIDirRecord(Record): i: Signal + def __init__(self): + super().__init__([ + ('i', 1, DIR_FANIN), + ]) + class ULPIInterface(Record): ''' Record that represents a standard ULPI interface. ''' @@ -770,6 +782,8 @@ def __init__(self, *, ulpi, use_platform_registers = True, handle_clocking = Tru ''' + super().__init__() + self.use_platform_registers = use_platform_registers self.handle_clocking = handle_clocking