mirror of
https://github.com/MiSTer-devel/InputTest_MiSTer.git
synced 2026-04-19 03:04:18 +00:00
18 lines
180 B
C++
18 lines
180 B
C++
#pragma once
|
|
|
|
class SimClock
|
|
{
|
|
|
|
public:
|
|
bool clk, old;
|
|
|
|
SimClock();
|
|
SimClock(int r);
|
|
~SimClock();
|
|
void Tick();
|
|
void Reset();
|
|
bool IsRising();
|
|
|
|
private:
|
|
int ratio, count;
|
|
}; |