scratchpad memory module for gem5 simulator