mirror of https://github.com/m-labs/artiq.git
LaneDistributor: try equivalent spread logic
This commit is contained in:
parent
2cbd597416
commit
8b70db5f17
|
@ -176,10 +176,10 @@ class LaneDistributor(Module):
|
||||||
|
|
||||||
# current lane has been full, spread events by switching to the next.
|
# current lane has been full, spread events by switching to the next.
|
||||||
if enable_spread:
|
if enable_spread:
|
||||||
current_lane_writable_r = Signal(reset=1)
|
do_write_r = Signal()
|
||||||
self.sync += [
|
self.sync += [
|
||||||
current_lane_writable_r.eq(current_lane_writable),
|
do_write_r.eq(do_write),
|
||||||
If(~current_lane_writable_r & current_lane_writable,
|
If(do_write_r & ~current_lane_writable,
|
||||||
force_laneB.eq(1)
|
force_laneB.eq(1)
|
||||||
),
|
),
|
||||||
If(do_write,
|
If(do_write,
|
||||||
|
|
Loading…
Reference in New Issue