Added dump of w mem state and added more dump during sim.