asmicon: bring full_selector param to top-level
authorSebastien Bourdeauducq <sebastien@milkymist.org>
Fri, 3 Aug 2012 19:23:54 +0000 (21:23 +0200)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Fri, 3 Aug 2012 19:23:54 +0000 (21:23 +0200)
milkymist/asmicon/__init__.py
milkymist/asmicon/bankmachine.py

index b0a8484b56ccc8a8e0658993e4b06c49c9bae1db..9f93a5e13e495254bf8fe724aa9fee12456fee6b 100644 (file)
@@ -35,10 +35,11 @@ class TimingSettings:
                self.slot_time = slot_time
 
 class ASMIcon:
-       def __init__(self, phy_settings, geom_settings, timing_settings):
+       def __init__(self, phy_settings, geom_settings, timing_settings, full_selector=False):
                self.phy_settings = phy_settings
                self.geom_settings = geom_settings
                self.timing_settings = timing_settings
+               self.full_selector = full_selector
                self.finalized = False
                
                self.dfi = dfi.Interface(self.geom_settings.mux_a,
@@ -59,7 +60,8 @@ class ASMIcon:
                slots = self.hub.get_slots()
                self.refresher = Refresher(self.geom_settings.mux_a, self.geom_settings.bank_a,
                        self.timing_settings.tRP, self.timing_settings.tREFI, self.timing_settings.tRFC)
-               self.bank_machines = [BankMachine(self.geom_settings, self.timing_settings, self.address_align, i, slots) for i in range(2**self.geom_settings.bank_a)]
+               self.bank_machines = [BankMachine(self.geom_settings, self.timing_settings, self.address_align, i, slots, self.full_selector)
+                       for i in range(2**self.geom_settings.bank_a)]
                self.multiplexer = Multiplexer(self.phy_settings, self.geom_settings, self.timing_settings,
                        self.bank_machines, self.refresher,
                        self.dfi, self.hub)
index 96a60952176cf7e5117b3c9cf8205761aedfdde6..a42c6a732808ecb6df6d104d78946f6418a46a20 100644 (file)
@@ -178,7 +178,7 @@ class _Buffer:
                return Fragment(comb, sync)
        
 class BankMachine:
-       def __init__(self, geom_settings, timing_settings, address_align, bankn, slots, full_selector=False):
+       def __init__(self, geom_settings, timing_settings, address_align, bankn, slots, full_selector):
                self.geom_settings = geom_settings
                self.timing_settings = timing_settings
                self.address_align = address_align