Fix code styling
authorJean THOMAS <git0@pub.jeanthomas.me>
Fri, 10 Jul 2020 13:07:31 +0000 (15:07 +0200)
committerJean THOMAS <git0@pub.jeanthomas.me>
Fri, 10 Jul 2020 13:08:51 +0000 (15:08 +0200)
gram/core/bankmachine.py
gram/core/controller.py
gram/core/refresher.py

index 0589416bf86dd6455c08874ec5a65fd983317341..3b85ddd98377c4048ca1ff27715bf5d0b855672b 100644 (file)
@@ -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)
index a7e376e7f3b70ff9ea380240dc954dede24e1c9b..d9ade1e8c97153b2d1ecc4157bb6490a57c3997a 100644 (file)
@@ -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 = []
index 36739080fa3c3250265e635db5d0a0d22de421c9..91d1d7630672ebeb2060a7098e4b96d9f4a11ded 100644 (file)
@@ -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)