Merge pull request #1758 from motec-research/spi_mmap_fix
soc/cores/spi_mmap: Fix clock divider
This commit is contained in:
commit
14012263af
|
@ -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