asmicon/bankmachine/selector: fix round-robin CE
authorSebastien Bourdeauducq <sebastien@milkymist.org>
Fri, 3 Aug 2012 20:33:52 +0000 (22:33 +0200)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Fri, 3 Aug 2012 20:33:52 +0000 (22:33 +0200)
milkymist/asmicon/bankmachine.py

index 187a904d41f6c0595b02a990986c85f42987bc71..ead10ca3cddbf864d785311c790370cde7af69ca 100644 (file)
@@ -62,7 +62,7 @@ class _Selector:
                        self.stb.eq(
                                (self.slicer.bank(self.adr) == self.bankn) \
                                & (state == SLOT_PENDING)),
-                       rr.ce.eq(self.ack),
+                       rr.ce.eq(self.ack | ~self.stb),
                        self.tag.eq(rr.grant)
                ]
                comb += [If((rr.grant == i) & self.stb & self.ack, slot.process.eq(1))