m-labs / misoc

The original high performance and small footprint system-on-chip based on Migen™
https://m-labs.hk
Other
305 stars 85 forks source link

improve SoC CSR scanning #30

Closed sbourdeauducq closed 7 years ago

sbourdeauducq commented 8 years ago

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.