update naxriscv comments

This commit is contained in:
Christian Klarhorst 2022-09-09 13:19:36 +02:00
parent 14160ce7e3
commit 6367fc6cab
1 changed files with 5 additions and 5 deletions

View File

@ -471,11 +471,11 @@ class NaxRiscv(CPU):
# Generate memory map from CPU perspective
# naxriscv modes:
# r,w : regular memory load/store
# i,o : peripheral memory load/store
# x : instruction fetchable (execute)
# litex modes:
# rwx : load, store, execute (everything is peripheral per default)
# r,w,x,c : readable, writeable, executable, caching allowed
# io : IO region (Implies P bus, preserve memory order, no dcache)
# naxriscv bus:
# p : peripheral
# m : memory
NaxRiscv.memory_regions = []
for name, region in self.soc.bus.io_regions.items():
NaxRiscv.memory_regions.append( (region.origin, region.size, "io", "p") ) # IO is only allowed on the p bus