interconnect/csr_bus/SRAM: allow 64-bit alignment (on 64-bit CPUs)
authorGabriel Somlo <gsomlo@gmail.com>
Fri, 3 Jan 2020 21:27:44 +0000 (16:27 -0500)
committerGabriel Somlo <gsomlo@gmail.com>
Fri, 3 Jan 2020 21:36:42 +0000 (16:36 -0500)
commitd087e2e0afbea393789a20fde4e9d59469c9fc1a
tree7dd451a911b6459182df4a6aed4a34ccb79fe274
parent690de79d8b169fd936a74af80121befec0236561
interconnect/csr_bus/SRAM: allow 64-bit alignment (on 64-bit CPUs)

Similarly to how CSRBank subregisters are aligned to the CPU word
width (see commit f4770219f), ensure SRAM word_bits are also aligned
to the CPU word width.

Additionally, fix the MMPTR() macro to access CSR subregisters as
CPU word (unsigned long) sized slices.

This fixes the functionality of the 'ident' bios command on 64-bit
CPUs (e.g., Rocket).

Signed-off-by: Gabriel Somlo <gsomlo@gmail.com>
litex/soc/interconnect/csr_bus.py
litex/soc/software/include/hw/common.h