Skip to content

Commit

Permalink
soc/integration: Allow 0x400 CSR paging
Browse files Browse the repository at this point in the history
It's a convenient way to get more CSR locations without changing
the whole address space layout (i.e. more space for CSR).

It still leaves 256 full 32b registers in each location which
I've never encountered a device even coming close to this, so
it should be fairly safe to do.

This doesn't change the default, just allow the user to select it.

Signed-off-by: Sylvain Munaut <[email protected]>
  • Loading branch information
smunaut committed Feb 5, 2024
1 parent a59b67e commit 3127e50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion litex/soc/integration/soc.py
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ class SoCCSRHandler(SoCLocHandler):
supported_data_width = [8, 32]
supported_address_width = [14+i for i in range(4)]
supported_alignment = [32]
supported_paging = [0x800*2**i for i in range(4)]
supported_paging = [0x400*2**i for i in range(5)]
supported_ordering = ["big", "little"]

# Creation -------------------------------------------------------------------------------------
Expand Down

0 comments on commit 3127e50

Please sign in to comment.