dvisampler/dma: reverse slot allocation order
This commit is contained in:
parent
2df4ff0ad9
commit
fe87221d2b
|
@ -46,7 +46,7 @@ class _SlotArray(Module, AutoCSR):
|
||||||
|
|
||||||
change_slot = Signal()
|
change_slot = Signal()
|
||||||
current_slot = Signal(max=nslots)
|
current_slot = Signal(max=nslots)
|
||||||
self.sync += If(change_slot, [If(slot.address_valid, current_slot.eq(n)) for n, slot in enumerate(slots)])
|
self.sync += If(change_slot, [If(slot.address_valid, current_slot.eq(n)) for n, slot in reversed(list(enumerate(slots)))])
|
||||||
self.comb += change_slot.eq(~self.address_valid | self.address_done)
|
self.comb += change_slot.eq(~self.address_valid | self.address_done)
|
||||||
|
|
||||||
self.comb += [
|
self.comb += [
|
||||||
|
|
Loading…
Reference in New Issue