soc_core/sdram: Don't blow up if _wb_sdram_ifs or _csr_masters are empty
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 24 Sep 2019 06:40:22 +0000 (08:40 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Tue, 24 Sep 2019 06:41:59 +0000 (08:41 +0200)
commit0ea7a1fd05182bd7c6ecb4e1ebc7ae3b5e949750
tree62496b31668ea5db1b818a7de9b0c6ceb4dba627
parent742da31bc0e84fa63c8193b5ae11cf61e26c2d1e
soc_core/sdram: Don't blow up if _wb_sdram_ifs or _csr_masters are empty

For example a standalone controller with no exposed CSRs (probably not
a very useful configuration but I really don't like python backtraces)

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
litex/soc/integration/soc_core.py
litex/soc/integration/soc_sdram.py