forked from M-Labs/artiq
1
0
Fork 0

serwb: fix case when rtm fpga is not loaded, lvds input can be 0 or 1

This commit is contained in:
Florent Kermarrec 2018-05-11 23:31:25 +02:00
parent 2e3bf8602f
commit cd4477864a
2 changed files with 4 additions and 2 deletions

View File

@ -215,4 +215,5 @@ class KUSSerdes(Module):
idle_timer = WaitTimer(32) idle_timer = WaitTimer(32)
self.submodules += idle_timer self.submodules += idle_timer
self.comb += idle_timer.wait.eq(1) 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))))

View File

@ -226,4 +226,5 @@ class S7Serdes(Module):
idle_timer = WaitTimer(32) idle_timer = WaitTimer(32)
self.submodules += idle_timer self.submodules += idle_timer
self.comb += idle_timer.wait.eq(1) 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))))