From bf8f387324d58fc43671537a1364de9739e95ad7 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Fri, 3 Aug 2012 21:23:54 +0200 Subject: [PATCH] asmicon: bring full_selector param to top-level --- milkymist/asmicon/__init__.py | 6 ++++-- milkymist/asmicon/bankmachine.py | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/milkymist/asmicon/__init__.py b/milkymist/asmicon/__init__.py index b0a8484b5..9f93a5e13 100644 --- a/milkymist/asmicon/__init__.py +++ b/milkymist/asmicon/__init__.py @@ -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) diff --git a/milkymist/asmicon/bankmachine.py b/milkymist/asmicon/bankmachine.py index 96a609521..a42c6a732 100644 --- a/milkymist/asmicon/bankmachine.py +++ b/milkymist/asmicon/bankmachine.py @@ -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