minicon: remove unused signals and fix indent
authorSebastien Bourdeauducq <sb@m-labs.hk>
Thu, 27 Nov 2014 14:12:05 +0000 (22:12 +0800)
committerSebastien Bourdeauducq <sb@m-labs.hk>
Thu, 27 Nov 2014 14:12:05 +0000 (22:12 +0800)
misoclib/gensoc/__init__.py
misoclib/sdram/minicon/__init__.py

index d605a1a6d829bdb971ff1b0ebd9280d885ee506d..7d63ee4edeb86e51cb911b5c1df91467d6b362fb 100644 (file)
@@ -177,7 +177,6 @@ class SDRAMSoC(GenSoC):
                        self.add_cpu_memory_region("sdram", 0x40000000,
                                2**self.lasmicon.lasmic.aw*self.lasmicon.lasmic.dw*self.lasmicon.lasmic.nbanks//8)
                elif self.ramcon_type == "minicon":
-                       rdphase = phy_settings.rdphase
                        self.submodules.minicon = sdramcon = Minicon(phy_settings, sdram_geom, sdram_timing)
                        self.submodules.dficon1 = dfi.Interconnect(sdramcon.dfi, self.dfii.slave)
                        sdram_width = flen(sdramcon.bus.dat_r)
index 6cd36744f62a5b25fc745507aaa195aff6116e40..a90f15719fe123c6799e628658a9a194d0119a16 100755 (executable)
@@ -57,7 +57,6 @@ class Minicon(Module):
 
                self.bus = bus = wishbone.Interface(data_width=phy_settings.nphases*flen(dfi.phases[rdphase].rddata))
                slicer = _AddressSlicer(geom_settings.col_a, geom_settings.bank_a, geom_settings.row_a, address_align)
-               req_addr = Signal(geom_settings.col_a + geom_settings.bank_a + geom_settings.row_a)
                refresh_req = Signal()
                refresh_ack = Signal()
                wb_access = Signal()
@@ -67,7 +66,6 @@ class Minicon(Module):
                row_closeall = Signal()
                addr_sel = Signal(max=3, reset=A10_ENABLED)
                has_curbank_openrow = Signal()
-               cl_counter = Signal(max=phy_settings.cl+1)
 
                # Extra bit means row is active when asserted
                self.openrow = openrow = Array(Signal(geom_settings.row_a + 1) for b in nbanks)
@@ -122,19 +120,19 @@ class Minicon(Module):
                        If(refresh_req,
                                NextState("PRECHARGEALL")
                        ).Elif(wb_access,
-                                If(hit & bus.we,
-                                        NextState("WRITE"),
-                                ),
-                                If(hit & ~bus.we,
-                                        NextState("READ"),
-                                ),
-                                If(has_curbank_openrow & ~hit,
-                                        NextState("PRECHARGE")
-                                ),
-                                If(~has_curbank_openrow,
-                                        NextState("ACTIVATE")
-                                ),
-                        )
+                               If(hit & bus.we,
+                                               NextState("WRITE"),
+                               ),
+                               If(hit & ~bus.we,
+                                               NextState("READ"),
+                               ),
+                               If(has_curbank_openrow & ~hit,
+                                               NextState("PRECHARGE")
+                               ),
+                               If(~has_curbank_openrow,
+                                               NextState("ACTIVATE")
+                               ),
+                       )
                )
                fsm.act("READ",
                        # We output Column bits at address pins so that A10 is 0