Updated the gen script to correct the key mem range. Fixed key data mux.