Skip to content

Commit

Permalink
cpu/soc_core: automatically set csr mapping to 0x00000000 when using …
Browse files Browse the repository at this point in the history
…CPUNone, remove csr_base parameter that was used for that.
  • Loading branch information
enjoy-digital committed May 13, 2020
1 parent 5ea3bae commit 9d1443c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions litex/soc/cores/cpu/__init__.py
Expand Up @@ -28,6 +28,7 @@ class CPUNone(CPU):
io_regions = {0x00000000: 0x100000000} # origin, length
periph_buses = []
memory_buses = []
mem_map = {"csr": 0x00000000}

CPU_GCC_TRIPLE_RISCV32 = (
"riscv64-unknown-elf",
Expand Down
3 changes: 1 addition & 2 deletions litex/soc/integration/soc_core.py
Expand Up @@ -85,7 +85,6 @@ def __init__(self, platform, clk_freq,
csr_alignment = 32,
csr_address_width = 14,
csr_paging = 0x800,
csr_base = None,
# Identifier parameters
ident = "",
ident_version = False,
Expand Down Expand Up @@ -185,7 +184,7 @@ def __init__(self, platform, clk_freq,
self.add_timer(name="timer0")

# Add CSR bridge
self.add_csr_bridge(self.mem_map["csr"] if csr_base is None else csr_base)
self.add_csr_bridge(self.mem_map["csr"])

# Methods --------------------------------------------------------------------------------------

Expand Down

0 comments on commit 9d1443c

Please sign in to comment.