Remove old commented code
authorJean THOMAS <git0@pub.jeanthomas.me>
Thu, 11 Jun 2020 10:12:20 +0000 (12:12 +0200)
committerJean THOMAS <git0@pub.jeanthomas.me>
Thu, 11 Jun 2020 10:12:20 +0000 (12:12 +0200)
gram/core/multiplexer.py

index d53177aac40de8c77625182fde4ca78c4027fd1c..90c566853b49a495e76133c04458fc05faa80242 100644 (file)
@@ -91,10 +91,8 @@ class _CommandChooser(Elaboratable):
                 m.d.comb += getattr(self.cmd, name).eq(choices[arbiter.grant])
 
         for i, request in enumerate(self._requests):
-            # with m.If(self.cmd.valid & self.cmd.ready & (arbiter.grant == i)):
-            # m.d.comb += request.ready.eq(1) # TODO: this shouldn't be commented
-            self.ready[i].eq(self.cmd.valid & self.cmd.ready &
-                             (arbiter.grant == i))
+            with m.If(self.cmd.valid & self.cmd.ready & (arbiter.grant == i)):
+                m.d.comb += self.ready[i].eq(1)
 
         # Arbitrate if a command is being accepted or if the command is not valid to ensure a valid
         # command is selected when cmd.ready goes high.