refactored register file to must ram resources.