Skip to content

Commit

Permalink
backwards compatibility with python3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
dayjaby committed Dec 21, 2024
1 parent 57333ee commit 9f5c3d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion litex/soc/cores/clock/xilinx_usp.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ def compute_config(self) -> Dict[str, Any]:

dividers = list(clkdiv_range(*self.clkout_divide_range))
# Add specific range dividers if they exist
if specific_div_range := getattr(self, f"clkout{n}_divide_range", None):
specific_div_range = getattr(self, f"clkout{n}_divide_range", None)
if specific_div_range:
dividers.extend(clkdiv_range(*specific_div_range))

# For clkout0, CLKOUT[0]_DIVIDE_F also has range 2.0 to 128.0 with step 0.125
Expand Down

0 comments on commit 9f5c3d0

Please sign in to comment.