bitreverse: fhdl/tools -> genlib/misc
bus/csr/SRAM: better handling of writes to memories larger than the CSR width