csr.bus.Multiplexer: fix element w_stb getting stuck.
authorwhitequark <whitequark@whitequark.org>
Sat, 26 Oct 2019 00:58:27 +0000 (00:58 +0000)
committerwhitequark <whitequark@whitequark.org>
Sat, 26 Oct 2019 01:03:59 +0000 (01:03 +0000)
commitd52d0b909b597e039ba1f8e75bff4c24d68657ed
tree60a01ee2f4639e472de67bc425ea1a5d7b10dbf0
parent8662815e1ea67341cdbcb3fdb77faccd1ed73cfd
csr.bus.Multiplexer: fix element w_stb getting stuck.

Also, don't clear shadow; this would break e.g. reading a 64-bit
CSR register through a 32-bit Wishbone bus if a code fetch happens
between the halves. Instead, clear shadow enable flag driving OR-mux.
nmigen_soc/csr/bus.py
nmigen_soc/test/test_csr_bus.py