core/multiplexer: rewrite arbiter comment

This commit is contained in:
Florent Kermarrec 2019-08-14 08:59:41 +02:00
parent 37db41648e
commit 80c8ecf477

View file

@ -71,8 +71,8 @@ class _CommandChooser(Module):
If(cmd.valid & cmd.ready & (arbiter.grant == i), If(cmd.valid & cmd.ready & (arbiter.grant == i),
request.ready.eq(1) request.ready.eq(1)
) )
# Arbitrate if we're accepting commands, *or* if we are not but the current selection is not valid # Arbitrate if a command is being accepted or if the command is not valid to ensure a valid
# This is to ensure that a valid command is selected when cmd.ready goes high # command is selected when cmd.ready goes high.
self.comb += arbiter.ce.eq(cmd.ready | ~cmd.valid) self.comb += arbiter.ce.eq(cmd.ready | ~cmd.valid)
# helpers # helpers