projects
/
gram.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c17734
)
gram.core.bankmachine: Make condition code cleaner
author
Jean THOMAS
<git0@pub.jeanthomas.me>
Fri, 7 Aug 2020 15:28:41 +0000
(17:28 +0200)
committer
Jean THOMAS
<git0@pub.jeanthomas.me>
Fri, 7 Aug 2020 15:28:41 +0000
(17:28 +0200)
gram/core/bankmachine.py
patch
|
blob
|
history
diff --git
a/gram/core/bankmachine.py
b/gram/core/bankmachine.py
index a1839e92e935fd41dae43c57c8a889b089dcb0cc..2cdffbac201e5af32deba719720d1dc377896475 100644
(file)
--- 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