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
1 changed files with 3 additions and 3 deletions

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,