Re-apply part of 180026c72f0e1d3ef365b2214288d4a543a238dd
authorRaptor Engineering Development Team <support@raptorengineering.com>
Thu, 7 Apr 2022 20:23:22 +0000 (15:23 -0500)
committerRaptor Engineering Development Team <support@raptorengineering.com>
Thu, 7 Apr 2022 20:23:22 +0000 (15:23 -0500)
The rank decoder inversion was incorrectly removed in
commit 03e79da11c95b3fa3a2e55a4c08af8521c4d2283

Tested to give valid memtest output over UART bridge

gram/core/multiplexer.py

index fe5fc6faa7c9510441c798a739c1fad01063de77..87ea8a9c58c6c2dfdd24f4e67b7ebcdf37c5673a 100644 (file)
@@ -173,9 +173,9 @@ class _Steerer(Elaboratable):
                     with m.If(sel == STEER_REFRESH):
                         m.d.sync += phase.cs_n.eq(0)
                     with m.Else():
-                        m.d.sync += phase.cs_n.eq(rank_decoder.o)
+                        m.d.sync += phase.cs_n.eq(~rank_decoder.o)
                 else:
-                    m.d.sync += phase.cs_n.eq(rank_decoder.o)
+                    m.d.sync += phase.cs_n.eq(~rank_decoder.o)
                 m.d.sync += phase.bank.eq(Array(cmd.ba[:-rankbits] for cmd in self.commands)[sel])
             else:
                 m.d.sync += [