Rework memory readout to suppress ISE synthesis warning