tidyup on gramWishbone class, add comments
[gram.git] / gram / core / multiplexer.py
index 69d9fb4fc627803f481f5232c0cb1a488e3f1668..9e9b40d26b8bbdc72f0b1a38a4b8b061494f4ba9 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 += [