summaryrefslogtreecommitdiff
path: root/io/model.h
diff options
context:
space:
mode:
authorJulian Blake Kongslie2022-10-16 16:24:49 -0700
committerJulian Blake Kongslie2022-10-16 16:24:49 -0700
commita59407a215d6112c2e20b1a746b33742209e5f87 (patch)
tree64ba2fc875ad1985be10d7b8e6d23deb39d49b3e /io/model.h
parentStrip the leader from palbart output (diff)
downloadbiggolf-a59407a215d6112c2e20b1a746b33742209e5f87.tar.xz
Support for log-based event model
Diffstat (limited to 'io/model.h')
-rw-r--r--io/model.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/io/model.h b/io/model.h
new file mode 100644
index 0000000..86fb086
--- /dev/null
+++ b/io/model.h
@@ -0,0 +1,15 @@
1#pragma once
2
3#include <array>
4#include <cstdint>
5
6#include "io/event.h"
7#include "isa/isa.h"
8
9struct iomodel {
10 static constexpr unsigned int TT_OUTPUT_DELAY = 100;
11
12 event_log log;
13 std::uint64_t time = 0;
14 bool interact(std::array<unsigned int, NUM_CTLREGS> &ctlregs);
15};