From: Florent Kermarrec Date: Mon, 17 Feb 2020 07:34:10 +0000 (+0100) Subject: soc_core: expose CSR paging X-Git-Tag: 24jan2021_ls180~659 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5b3808cb810f8596c73fdac81f0c37781865e116;p=litex.git soc_core: expose CSR paging --- diff --git a/litex/soc/integration/soc_core.py b/litex/soc/integration/soc_core.py index d58b9f0f..7ba7b49e 100644 --- a/litex/soc/integration/soc_core.py +++ b/litex/soc/integration/soc_core.py @@ -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=\"\"")