amaranth-soc icon indicating copy to clipboard operation
amaranth-soc copied to clipboard

csr/bus: Take data width into account for register writes

Open kbeckmann opened this issue 4 years ago • 0 comments

When using csr.Multiplexer with a data width greater than 8, writes should be performed when chunk_addr is matched to the start of a chunk.

I came across this when using a 32 bit wide data bus for both CSR and wishbone. I added a test case to match what I was doing.

kbeckmann avatar May 14 '21 00:05 kbeckmann