Cycle accurate simulator