forked from M-Labs/artiq
serwb: fix case when rtm fpga is not loaded, lvds input can be 0 or 1
This commit is contained in:
parent
2e3bf8602f
commit
cd4477864a
|
@ -215,4 +215,5 @@ class KUSSerdes(Module):
|
|||
idle_timer = WaitTimer(32)
|
||||
self.submodules += idle_timer
|
||||
self.comb += idle_timer.wait.eq(1)
|
||||
self.sync += self.rx_idle.eq(idle_timer.done & (rx_bitslip.o == 0))
|
||||
self.sync += self.rx_idle.eq(idle_timer.done &
|
||||
((rx_bitslip.o == 0) | (rx_bitslip.o == (2**40-1))))
|
||||
|
|
|
@ -226,4 +226,5 @@ class S7Serdes(Module):
|
|||
idle_timer = WaitTimer(32)
|
||||
self.submodules += idle_timer
|
||||
self.comb += idle_timer.wait.eq(1)
|
||||
self.sync += self.rx_idle.eq(idle_timer.done & (rx_bitslip.o == 0))
|
||||
self.sync += self.rx_idle.eq(idle_timer.done &
|
||||
((rx_bitslip.o == 0) | (rx_bitslip.o == (2**40-1))))
|
||||
|
|
Loading…
Reference in New Issue