soc_core: expose CSR paging
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Mon, 17 Feb 2020 07:34:10 +0000 (08:34 +0100)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Mon, 17 Feb 2020 07:34:10 +0000 (08:34 +0100)
litex/soc/integration/soc_core.py

index d58b9f0fe631b3d8396708b756bc7288b7d86d3b..7ba7b49ec46f07a56880eca53d1a4e866688656a 100644 (file)
@@ -78,6 +78,7 @@ class SoCCore(LiteXSoC):
         csr_data_width           = 8,
         csr_alignment            = 32,
         csr_address_width        = 14,
+        csr_paging               = 0x800,
         # Identifier parameters
         ident                    = "",
         ident_version            = False,
@@ -106,7 +107,7 @@ class SoCCore(LiteXSoC):
             csr_data_width       = csr_data_width,
             csr_address_width    = csr_address_width,
             csr_alignment        = csr_alignment,
-            csr_paging           = 0x800,
+            csr_paging           = csr_paging,
             csr_reserved_csrs    = self.csr_map,
 
             irq_n_irqs           = 32,
@@ -271,6 +272,8 @@ def soc_core_args(parser):
                         help="CSR bus data-width (8 or 32, default=8)")
     parser.add_argument("--csr-address-width", default=14, type=int,
                         help="CSR bus address-width")
+    parser.add_argument("--csr-paging", default=0x800, type=int,
+                        help="CSR bus paging")
     # Identifier parameters
     parser.add_argument("--ident", default=None, type=str,
                         help="SoC identifier (default=\"\"")