Add option to override CPUIF address width. #25

This commit is contained in:
Alex Mykyta
2023-01-18 20:17:35 -08:00
parent 9db27145a3
commit c0427f5a73
4 changed files with 30 additions and 6 deletions

View File

@@ -25,9 +25,12 @@ only include the local offset.
For example, consider a fictional AXI4-Lite device that:
- Consumes 4 kB of address space (``0x000``-``0xFFF``).
- The device is instantiated in your system at global address ``0x80_0000``-``0x80_0FFF``.
- The device is instantiated in your system at global address range ``0x30_0000 - 0x50_0FFF``.
- After decoding transactions destined to the device, the system interconnect shall
ensure that AxADDR values are presented to the device as relative addresses - within
the range of ``0x000``-``0xFFF``.
- If care is taken to align the global address offset to the size of the device,
creating a relative address is as simple as pruning down address bits.
By default, the bit-width of the address bus will be the minimum size to span the contents
of the register block. If needed, the address width can be overridden to a larger range.