From: Jean THOMAS Date: Fri, 10 Jul 2020 13:07:31 +0000 (+0200) Subject: Fix code styling X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6846c90409e8e4665bbf2a9a931467a75ca7ac0f;p=gram.git Fix code styling --- diff --git a/gram/core/bankmachine.py b/gram/core/bankmachine.py index 0589416..3b85ddd 100644 --- a/gram/core/bankmachine.py +++ b/gram/core/bankmachine.py @@ -129,8 +129,7 @@ class BankMachine(Elaboratable): cmd_buffer.source.valid), ] - slicer = _AddressSlicer( - self.settings.geom.colbits, self._address_align) + slicer = _AddressSlicer(self.settings.geom.colbits, self._address_align) # Row tracking ----------------------------------------------------------------------------- row = Signal(self.settings.geom.rowbits) diff --git a/gram/core/controller.py b/gram/core/controller.py index a7e376e..d9ade1e 100644 --- a/gram/core/controller.py +++ b/gram/core/controller.py @@ -75,10 +75,10 @@ class gramController(Elaboratable): nbanks = 2**self.settings.geom.bankbits # Refresher -------------------------------------------------------------------------------- - m.submodules.refresher = self.settings.refresh_cls(self.settings, - clk_freq=self._clk_freq, - zqcs_freq=self.settings.refresh_zqcs_freq, - postponing=self.settings.refresh_postponing) + m.submodules.refresher = Refresher(self.settings, + clk_freq=self._clk_freq, + zqcs_freq=self.settings.refresh_zqcs_freq, + postponing=self.settings.refresh_postponing) # Bank Machines ---------------------------------------------------------------------------- bank_machines = [] diff --git a/gram/core/refresher.py b/gram/core/refresher.py index 3673908..91d1d76 100644 --- a/gram/core/refresher.py +++ b/gram/core/refresher.py @@ -340,8 +340,7 @@ class Refresher(Elaboratable): ] # Refresh Sequencer ------------------------------------------------------------------------ - sequencer = RefreshSequencer( - self._abits, self._babits, settings.timing.tRP, settings.timing.tRFC, self._postponing) + sequencer = RefreshSequencer(self._abits, self._babits, settings.timing.tRP, settings.timing.tRFC, self._postponing) m.submodules.sequencer = sequencer if settings.timing.tZQCS is not None: @@ -353,8 +352,7 @@ class Refresher(Elaboratable): m.d.comb += wants_zqcs.eq(zqcs_timer.done) # ZQCS Executer ------------------------------------------------------------------------ - zqcs_executer = ZQCSExecuter( - self._abits, self._babits, settings.timing.tRP, settings.timing.tZQCS) + zqcs_executer = ZQCSExecuter(self._abits, self._babits, settings.timing.tRP, settings.timing.tZQCS) m.submodules.zqs_executer = zqcs_executer m.d.comb += zqcs_timer.wait.eq(~zqcs_executer.done)