Skip to content

Commit

Permalink
gateware.interface.ulpi: Fixed the initialisation of a few Record obj…
Browse files Browse the repository at this point in the history
…ects
  • Loading branch information
dragonmux committed Apr 17, 2024
1 parent 2a9264a commit 3c6fe6d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions sol_usb/gateware/interface/ulpi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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. '''

Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 3c6fe6d

Please sign in to comment.