Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion luna/gateware/usb/usb2/packet.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class HandshakeExchangeInterface(Record):
"""

def __init__(self, *, is_detector):
direction = DIR_FANOUT if is_detector else DIR_FANOUT
direction = DIR_FANOUT if is_detector else DIR_FANIN

super().__init__([
('ack', 1, direction),
Expand Down
4 changes: 2 additions & 2 deletions luna/gateware/usb/usb2/request.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ def __init__(self):
self.rx_invalid = Signal()

self.tx = USBInStreamInterface()
self.handshakes_out = HandshakeExchangeInterface(is_detector=True)
self.handshakes_in = HandshakeExchangeInterface(is_detector=False)
self.handshakes_out = HandshakeExchangeInterface(is_detector=False)
self.handshakes_in = HandshakeExchangeInterface(is_detector=True)
self.tx_data_pid = Signal(init=1)


Expand Down