cores/uart/RS232ClkPhaseAccum: Avoid reset on phase signal, improve timings/resources on iCE40.

This commit is contained in:
Florent Kermarrec 2021-06-20 14:33:25 +02:00
parent 4c8184fbb6
commit d6f24f2f68

View file

@ -46,7 +46,7 @@ class RS232ClkPhaseAccum(Module):
# # #
phase = Signal(32)
phase = Signal(32, reset_less=True)
self.sync += Cat(phase, self.tick).eq(tuning_word if mode == "tx" else 2**31)
self.sync += If(self.enable, Cat(phase, self.tick).eq(phase + tuning_word))