a Pin based fast hybrid scratchpad memory/ cache functional simulator