simplified state machine! this will help the transition to sdram.