Skip to content

Commit

Permalink
PH1 and PH2 simulation
Browse files Browse the repository at this point in the history
  • Loading branch information
sunipkm committed Feb 18, 2021
1 parent bbf1036 commit cfea328
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,9 @@ void *CPUThread(void *id)
cpu_running = false;
total_cycles++;
}
usleep(cpu_time); // 60 Hz
usleep(cpu_time / 2); // 60 Hz
// other devices can read from memory here
usleep(cpu_time / 2);
}
return NULL;
}
Expand Down

0 comments on commit cfea328

Please sign in to comment.