The AHB code now works flawlesly (to my knowledge). It has been tested with various bit patterns and for various memories.
It remains to be connected to the GUI code with an intermediate code to map the Data into hex numbers.