soc_core: additional CSR safety assertions
authorGabriel Somlo <gsomlo@gmail.com>
Thu, 12 Dec 2019 14:02:47 +0000 (09:02 -0500)
committerGabriel Somlo <gsomlo@gmail.com>
Thu, 12 Dec 2019 18:14:16 +0000 (13:14 -0500)
commita0dad1b071e61b707744552c7fbf266dd8deb447
tree748480f119f7eb141d624962fb578118c6c1d888
parentfb6b0786b6654202af274468e1d6e2095a423f06
soc_core: additional CSR safety assertions

Since csr_data_width=64 has probably never worked properly, remove
it as one of the possible options (to be fixed and re-added later).
Add csr_data_width=16, which has been tested and does work.

Additionally, ensure csr_data_width <= csr_alignment (we should not
attempt to create (sub)registers larger than the CPU's native word
size or XLen).

Signed-off-by: Gabriel Somlo <gsomlo@gmail.com>
litex/soc/integration/soc_core.py