update naxriscv comments
This commit is contained in:
parent
14160ce7e3
commit
6367fc6cab
|
@ -471,11 +471,11 @@ class NaxRiscv(CPU):
|
||||||
|
|
||||||
# Generate memory map from CPU perspective
|
# Generate memory map from CPU perspective
|
||||||
# naxriscv modes:
|
# naxriscv modes:
|
||||||
# r,w : regular memory load/store
|
# r,w,x,c : readable, writeable, executable, caching allowed
|
||||||
# i,o : peripheral memory load/store
|
# io : IO region (Implies P bus, preserve memory order, no dcache)
|
||||||
# x : instruction fetchable (execute)
|
# naxriscv bus:
|
||||||
# litex modes:
|
# p : peripheral
|
||||||
# rwx : load, store, execute (everything is peripheral per default)
|
# m : memory
|
||||||
NaxRiscv.memory_regions = []
|
NaxRiscv.memory_regions = []
|
||||||
for name, region in self.soc.bus.io_regions.items():
|
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
|
NaxRiscv.memory_regions.append( (region.origin, region.size, "io", "p") ) # IO is only allowed on the p bus
|
||||||
|
|
Loading…
Reference in New Issue