Skip to content

Commit

Permalink
Merge pull request #126 from ronyrus/bugfix/USBDevice_speed
Browse files Browse the repository at this point in the history
gateware.usb2: USBDevice should have only one 'speed' signal
  • Loading branch information
miek authored Nov 19, 2021
2 parents 4ab2b38 + ae31798 commit adfd104
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions luna/gateware/usb/usb2/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,6 @@ def elaborate(self, platform):
# Stores the device's current configuration. Defaults to unconfigured.
configuration = Signal(8, reset=0)

# Stores the device's current speed (a USBSpeed value).
speed = Signal(2, reset=USBSpeed.FULL)


#
# Internal interconnections.
Expand Down Expand Up @@ -271,8 +268,8 @@ def elaborate(self, platform):
data_crc.rx_valid .eq(self.utmi.rx_valid),

# Connect our state signals to our subordinate components.
token_detector.speed .eq(speed),
timer.speed .eq(speed)
token_detector.speed .eq(self.speed),
timer.speed .eq(self.speed)
]

#
Expand All @@ -293,7 +290,7 @@ def elaborate(self, platform):
handshake_detector.detected .connect(endpoint_collection.handshakes_in),

# Device state.
endpoint_collection.speed .eq(speed),
endpoint_collection.speed .eq(self.speed),
endpoint_collection.active_config .eq(configuration),
endpoint_collection.active_address .eq(address),

Expand Down

0 comments on commit adfd104

Please sign in to comment.