From 3c6fe6d0e322fe399d2b08ec6c06cb6524aa806c Mon Sep 17 00:00:00 2001 From: dragonmux Date: Wed, 17 Apr 2024 14:23:20 +0100 Subject: [PATCH] gateware.interface.ulpi: Fixed the initialisation of a few Record objects --- sol_usb/gateware/interface/ulpi.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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