forked from M-Labs/artiq
1
0
Fork 0

rtio/sed: fix output network cmp_wrap

This commit is contained in:
Sebastien Bourdeauducq 2018-05-02 12:03:50 +08:00
parent bce8fa3ec5
commit 4120105e3a
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ def latency(lane_count):
def cmp_wrap(a, b): def cmp_wrap(a, b):
return Mux(a[-2:] == ~b[-2:], a[0], a[:-2] < b[:-2]) return Mux((a[-2] == a[-1]) & (b[-2] == b[-1]) & (a[-1] != b[-1]), a[-1], a < b)
class OutputNetwork(Module): class OutputNetwork(Module):