Srctrl and memory

I am having trouble getting the SRCTRL simulating correctly in Modelsim with a 32Kx8 PROM and 2MBx8 MRAM on the 8-bit PROM interface and a 512Kx32 SRAM on the 32-bit data bus. I can get the SRAM working fine but the MRAM and PROM seem to not correctly when reading and writing. I have prom8en set to 1. Three bytes of every work are not written correctly (reading back 0).

Is this possible to interface these 3 memories with the SRCTRL or the MCTRL?

Hello, when PROM is in 8-bit mode you need to make sure you write to the PROM using 8-bit AHB access. The controller will not automatically convert a 32-bit write into separate byte writes into the PROM area.