interconnect/csr_bus: add separators.
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Wed, 27 May 2020 16:13:57 +0000 (18:13 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Wed, 27 May 2020 16:13:57 +0000 (18:13 +0200)
litex/soc/interconnect/csr_bus.py

index 2e804c8dfc59c13c896bacef23988b0224667c8c..888d3b90f4e38f34047136e849adfafed89a91fe 100644 (file)
@@ -22,6 +22,7 @@ from migen.util.misc import xdir
 from litex.soc.interconnect import csr
 from litex.soc.interconnect.csr import CSRStorage
 
+# CSR Definition -----------------------------------------------------------------------------------
 
 _layout = [
     ("adr",  "address_width", DIR_M_TO_S),
@@ -61,6 +62,7 @@ class Interface(Record):
         yield
         return (yield self.dat_r)
 
+# CSR Interconnect ---------------------------------------------------------------------------------
 
 class Interconnect(Module):
     def __init__(self, master, slaves):
@@ -79,6 +81,7 @@ class InterconnectShared(Module):
             self.comb += masters[i].dat_r.eq(intermediate.dat_r)
         self.comb += intermediate.connect(*slaves)
 
+# CSR SRAM -----------------------------------------------------------------------------------------
 
 class SRAM(Module):
     def __init__(self, mem_or_size, address, read_only=None, init=None, bus=None, paging=0x800, soc_bus_data_width=32):
@@ -163,6 +166,7 @@ class SRAM(Module):
         else:
             return [self._page]
 
+# CSR Bank -----------------------------------------------------------------------------------------
 
 class CSRBank(csr.GenericBank):
     def __init__(self, description, address=0, bus=None, paging=0x800, soc_bus_data_width=32):