Skip to content

Commit

Permalink
gateware/timeout: Fixed a couple of mistakes in the timeout block
Browse files Browse the repository at this point in the history
  • Loading branch information
dragonmux committed Dec 14, 2023
1 parent 9ea015f commit 187528d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gateware/dragonBoot/timeout.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: BSD-3-Clause
from torii import Elaboratable, Module, Signal, ClockDomain
from torii import Elaboratable, Module, Signal
from torii.build import Platform

__all__ = (
Expand Down Expand Up @@ -47,7 +47,7 @@ def elaborate(self, platform: Platform) -> Module:
m.d.comb += self.triggerReboot.eq(0)

# This doesn't _need_ to be a state machine, but it's much simpler for it to be..
with m.FSM():
with m.FSM(domain = 'usb'):
# Start out in the counting state, going up from 0 to the timeout value
with m.State('COUNT'):
m.d.usb += counter.eq(counter + 1)
Expand Down

0 comments on commit 187528d

Please sign in to comment.