Fix adapter sel

Signed-off-by: Andrew Butt <andrewb1999@gmail.com>
This commit is contained in:
Andrew Butt 2021-05-01 17:42:07 -04:00
parent 63358ee666
commit e97ff4aaa0
1 changed files with 3 additions and 1 deletions

View File

@ -204,7 +204,9 @@ class LiteDRAMNativePortUpConverter(Module):
).Else( # Acknowledge incomming commands, while filling `sel`. ).Else( # Acknowledge incomming commands, while filling `sel`.
port_from.cmd.ready.eq(port_from.cmd.valid), port_from.cmd.ready.eq(port_from.cmd.valid),
NextValue(cmd_last, port_from.cmd.last), NextValue(cmd_last, port_from.cmd.last),
NextValue(sel, sel | 1 << port_from.cmd.addr[:log2_int(ratio)]), If(port_from.cmd.valid,
NextValue(sel, sel | 1 << port_from.cmd.addr[:log2_int(ratio)])
)
) )
) )
fsm.act("COMMIT", fsm.act("COMMIT",