lasmicon: drive ODT and RESET_N
authorSebastien Bourdeauducq <sb@m-labs.hk>
Fri, 8 Aug 2014 13:55:34 +0000 (21:55 +0800)
committerSebastien Bourdeauducq <sb@m-labs.hk>
Fri, 8 Aug 2014 13:55:34 +0000 (21:55 +0800)
misoclib/lasmicon/multiplexer.py

index 2ca99c1e4786bfbb8e67e70e90757f04045fac42..525f22df3c6f485bd016a61b234b2f6401e4f580 100644 (file)
@@ -74,6 +74,10 @@ class _Steerer(Module):
                                phase.cke.eq(1),
                                phase.cs_n.eq(0)
                        ]
+                       if hasattr(phase, "odt"):
+                               self.comb += phase.odt.eq(1)
+                       if hasattr(phase, "reset_n"):
+                               self.comb += phase.reset_n.eq(0)
                        self.sync += [
                                phase.address.eq(Array(cmd.a for cmd in commands)[sel]),
                                phase.bank.eq(Array(cmd.ba for cmd in commands)[sel]),