bus/dfi: reset active low signals to 1
authorSebastien Bourdeauducq <sebastien@milkymist.org>
Sun, 1 Apr 2012 15:43:24 +0000 (17:43 +0200)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Sun, 1 Apr 2012 15:43:24 +0000 (17:43 +0200)
migen/bus/dfi.py

index b6f407d5c82d1dd2fe316f8ae6b9f7c986e3449a..f965ecdc94b9824bd6e20b3189b0482ad7a09dae 100644 (file)
@@ -24,6 +24,11 @@ class Interface:
        def __init__(self, a, ba, d, nphases=1):
                self.pdesc = phase_description(a, ba, d)
                self.phases = [SimpleInterface(self.pdesc) for i in range(nphases)]
+               for p in self.phases:
+                       p.cas_n.reset = Constant(1)
+                       p.cs_n.reset = Constant(1)
+                       p.ras_n.reset = Constant(1)
+                       p.we_n.reset = Constant(1)
        
        # Returns pairs (DFI-mandated signal name, Migen signal object)
        def get_standard_names(self, m2s=True, s2m=True):