Skip to content

Commit 47851c2

Browse files
committed
vendor.GowinPlatform: fix fencepost error in oscillator range.
Python ranges are half-open (exclusive).
1 parent bfd6256 commit 47851c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

amaranth/vendor/_gowin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def _osc_base_freq(self):
161161

162162
@property
163163
def _osc_div(self):
164-
div_range = range(2, 128, 2)
164+
div_range = range(2, 130, 2)
165165
div_frac = Fraction(self._osc_base_freq, self.osc_frequency)
166166

167167
if div_frac.denominator != 1 or div_frac not in div_range:

0 commit comments

Comments
 (0)