From: Jean THOMAS Date: Fri, 7 Aug 2020 15:28:41 +0000 (+0200) Subject: gram.core.bankmachine: Make condition code cleaner X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4c8c4352317dc7e1e2f1a7944e67bcebf2e2ff63;p=gram.git gram.core.bankmachine: Make condition code cleaner --- diff --git a/gram/core/bankmachine.py b/gram/core/bankmachine.py index a1839e9..2cdffba 100644 --- a/gram/core/bankmachine.py +++ b/gram/core/bankmachine.py @@ -171,7 +171,7 @@ class BankMachine(Elaboratable): if self.settings.with_auto_precharge: with m.If(cmd_buffer_lookahead.source.valid & cmd_buffer.source.valid): with m.If(lookahead_slicer.row != current_slicer.row): - m.d.comb += auto_precharge.eq(row_close == 0) + m.d.comb += auto_precharge.eq(~row_close) # Control and command generation FSM ------------------------------------------------------- # Note: tRRD, tFAW, tCCD, tWTR timings are enforced by the multiplexer