CSRBankArray should take a map of the peripherals it should connect to, and ignore the others. That map should be equal to the current csr_map in SoC classes.
The current mechanism uses introspection and attempts to map everything that has get_csrs & friends methods, which makes it messy to have multiple CSR banks in a SoC.
CSRBankArray should take a map of the peripherals it should connect to, and ignore the others. That map should be equal to the current
csr_map
in SoC classes.The current mechanism uses introspection and attempts to map everything that has
get_csrs
& friends methods, which makes it messy to have multiple CSR banks in a SoC.