From b4424fd21ee6aee66d58b10ebc36a9997f812ae9 Mon Sep 17 00:00:00 2001 From: Jean THOMAS Date: Thu, 11 Jun 2020 12:12:20 +0200 Subject: [PATCH] Remove old commented code --- gram/core/multiplexer.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/gram/core/multiplexer.py b/gram/core/multiplexer.py index d53177a..90c5668 100644 --- a/gram/core/multiplexer.py +++ b/gram/core/multiplexer.py @@ -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. -- 2.30.2