forked from M-Labs/artiq
wrpll: si549 fixes
This commit is contained in:
parent
c5dbab1929
commit
fa41c946ea
|
@ -170,7 +170,7 @@ class ADPLLProgrammer(Module):
|
||||||
self.submodules += master
|
self.submodules += master
|
||||||
|
|
||||||
self.comb += [
|
self.comb += [
|
||||||
master.cg.load.eq(self.i2c_divider.storage),
|
master.cg.load.eq(self.i2c_divider),
|
||||||
self.scl.eq(master.scl),
|
self.scl.eq(master.scl),
|
||||||
master.sda_i.eq(self.sda_i),
|
master.sda_i.eq(self.sda_i),
|
||||||
self.sda_o.eq(master.sda_o)
|
self.sda_o.eq(master.sda_o)
|
||||||
|
@ -184,7 +184,7 @@ class Si549(Module, AutoCSR):
|
||||||
self.gpio_out = CSRStorage(2)
|
self.gpio_out = CSRStorage(2)
|
||||||
self.gpio_oe = CSRStorage(2)
|
self.gpio_oe = CSRStorage(2)
|
||||||
|
|
||||||
self.i2c_divider = CSRStorage(16)
|
self.i2c_divider = CSRStorage(16, reset=2500)
|
||||||
self.i2c_address = CSRStorage(7)
|
self.i2c_address = CSRStorage(7)
|
||||||
self.errors = CSR(2)
|
self.errors = CSR(2)
|
||||||
|
|
||||||
|
@ -205,7 +205,7 @@ class Si549(Module, AutoCSR):
|
||||||
]
|
]
|
||||||
self.comb += [
|
self.comb += [
|
||||||
programmer.adpll.eq(self.adpll),
|
programmer.adpll.eq(self.adpll),
|
||||||
programmer.adpll_stb.eq(self.adpll_stb)
|
programmer.stb.eq(self.adpll_stb)
|
||||||
]
|
]
|
||||||
|
|
||||||
self.gpio_enable.storage.attr.add("no_retiming")
|
self.gpio_enable.storage.attr.add("no_retiming")
|
||||||
|
|
Loading…
Reference in New Issue