Permalink
Browse files

asmicon: bring full_selector param to top-level

  • Loading branch information...
sbourdeauducq committed Aug 3, 2012
1 parent eb751f6 commit bf8f387324d58fc43671537a1364de9739e95ad7
Showing with 5 additions and 3 deletions.
  1. +4 −2 milkymist/asmicon/__init__.py
  2. +1 −1 milkymist/asmicon/bankmachine.py
@@ -35,10 +35,11 @@ def __init__(self, tRP, tRCD, tWR, tREFI, tRFC, CL, rd_delay, read_time, write_t
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 @@ def finalize(self):
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)
@@ -178,7 +178,7 @@ def get_fragment(self):
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

0 comments on commit bf8f387

Please sign in to comment.