mirror of https://github.com/m-labs/artiq.git
rtio/sed: fix output network cmp_wrap
This commit is contained in:
parent
bce8fa3ec5
commit
4120105e3a
|
@ -45,7 +45,7 @@ def latency(lane_count):
|
|||
|
||||
|
||||
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):
|
||||
|
|
Loading…
Reference in New Issue