global: pep8 (E225)
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Mon, 13 Apr 2015 15:01:05 +0000 (17:01 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Mon, 13 Apr 2015 15:01:05 +0000 (17:01 +0200)
misoclib/com/spi/__init__.py
misoclib/mem/sdram/phy/initsequence.py
misoclib/mem/sdram/phy/s6ddrphy.py
misoclib/soc/sdram.py

index 058cf1e3bd7bcb714e8dfc6bd164a4edc7e3ce80..a78a6db41bab46e7eb907c4c29bb11121605f0dd 100644 (file)
@@ -48,9 +48,9 @@ class SPIMaster(Module, AutoCSR):
             )
         ]
 
-        self.comb +=[
-            set_clk.eq(i==div//2-1),
-            clr_clk.eq(i==div-1)
+        self.comb += [
+            set_clk.eq(i == (div//2-1)),
+            clr_clk.eq(i == (div-1))
         ]
 
         # fsm
index 9aede1edd6bc4489c49114758d795e32f076b04b..1a4ffea03f1dc8d5e8d67bdacfd3ace45f546cfc 100644 (file)
@@ -31,7 +31,7 @@ static void command_p{n}(int cmd)
 #define command_prd(X) command_p{rdphase}(X)
 #define command_pwr(X) command_p{wrphase}(X)
 """.format(rdphase=str(sdram_phy_settings.rdphase), wrphase=str(sdram_phy_settings.wrphase))
-    r +="\n"
+    r += "\n"
 
     #
     # sdrrd/sdrwr functions utilities
@@ -54,7 +54,7 @@ const unsigned int sdram_dfii_pix_rddata_addr[{n}] = {{
     {sdram_dfii_pix_rddata_addr}
 }};
 """.format(n=nphases, sdram_dfii_pix_rddata_addr=",\n\t".join(sdram_dfii_pix_rddata_addr))
-    r +="\n"
+    r += "\n"
 
     # init sequence
     cmds = {
index c270305a7f11043545bd75d2f702f74a60c9aef6..86208d5fbbffeb568ac7220d3a66a49e278aa64c 100644 (file)
@@ -87,7 +87,7 @@ class S6DDRPHY(Module):
         # register dfi cmds on half_rate clk
         r_dfi = Array(Record(phase_cmd_description(addressbits, bankbits)) for i in range(nphases))
         for n, phase in enumerate(self.dfi.phases):
-            sd_sdram_half +=[
+            sd_sdram_half += [
                 r_dfi[n].address.eq(phase.address),
                 r_dfi[n].bank.eq(phase.bank),
                 r_dfi[n].cs_n.eq(phase.cs_n),
index 2977bd05e8f5ab05045e3ca1ab36c774c39e2430..4ef8a6f350eb981b66246fe7f605c1094ef9544a 100644 (file)
@@ -39,8 +39,8 @@ class SDRAMSoC(SoC):
 
         dfi_databits_divisor = 1 if phy.settings.memtype == "SDR" else 2
         sdram_width = phy.settings.dfi_databits//dfi_databits_divisor
-        main_ram_size = 2**(phy.module.geom_settings.bankbits+
-                            phy.module.geom_settings.rowbits+
+        main_ram_size = 2**(phy.module.geom_settings.bankbits +
+                            phy.module.geom_settings.rowbits +
                             phy.module.geom_settings.colbits)*sdram_width//8
         # XXX: Limit main_ram_size to 256MB, we should modify mem_map to allow larger memories.
         main_ram_size = min(main_ram_size, 256*1024*1024)