amaranth-lang / amaranth-soc

System on Chip toolkit for Amaranth HDL
BSD 2-Clause "Simplified" License
83 stars 31 forks source link

memory: fix address translation of resources located in dense windows. #85

Closed jfng closed 5 months ago

jfng commented 5 months ago

As a breaking change, MemoryMap.add_window(self, window, sparse=False) will fail if self.data_width // window.data_width isn't a power-of-2 or is greater than 2 ** window.alignment.