2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-25 03:08:27 +08:00

LaneDistributor: try equivalent spread logic

This commit is contained in:
Robert Jördens 2018-03-07 10:28:34 +00:00
parent 2cbd597416
commit 8b70db5f17

View File

@ -176,10 +176,10 @@ class LaneDistributor(Module):
# current lane has been full, spread events by switching to the next.
if enable_spread:
current_lane_writable_r = Signal(reset=1)
do_write_r = Signal()
self.sync += [
current_lane_writable_r.eq(current_lane_writable),
If(~current_lane_writable_r & current_lane_writable,
do_write_r.eq(do_write),
If(do_write_r & ~current_lane_writable,
force_laneB.eq(1)
),
If(do_write,