Added logic for mem_state in controller stage(Scoreboard)