Skip to content

Commit 777e58e

Browse files
committed
vendor._siliconblue: fix off-by-1 with default_clk = "SB_LFOSC".
1 parent 3a3bf81 commit 777e58e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

amaranth/vendor/_siliconblue.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ def create_missing_domain(self, name):
408408

409409
# Power-on-reset domain
410410
m.domains += ClockDomain("por", reset_less=True, local=True)
411-
timer = Signal(range(delay))
411+
timer = Signal(range(delay + 1))
412412
ready = Signal()
413413
m.d.comb += ClockSignal("por").eq(clk_i)
414414
with m.If(timer == delay):

0 commit comments

Comments
 (0)