Skip to content

Commit

Permalink
soc/cores/spi_mmap: Fix clock divider
Browse files Browse the repository at this point in the history
  • Loading branch information
Radek Pesina authored and Andrew Dennison committed Sep 1, 2023
1 parent 405296b commit d494e30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion litex/soc/cores/spi/spi_mmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def __init__(self, pads, data_width, sys_clk_freq, clk_settle_time=20e-9):
self.sync += [
If(clk_enable,
clk_count.eq(clk_count + 1),
If(clk_count == self.clk_divider[2:],
If(clk_count == self.clk_divider[1:],
clk.eq(~clk),
clk_count.eq(0)
),
Expand Down

0 comments on commit d494e30

Please sign in to comment.