soc/cores/spi_mmap: Fix clock divider
This commit is contained in:
parent
405296b7fd
commit
d494e30166
|
@ -124,7 +124,7 @@ class SPIMaster(LiteXModule):
|
|||
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)
|
||||
),
|
||||
|
|
Loading…
Reference in New Issue