From a59407a215d6112c2e20b1a746b33742209e5f87 Mon Sep 17 00:00:00 2001 From: Julian Blake Kongslie Date: Sun, 16 Oct 2022 16:24:49 -0700 Subject: Support for log-based event model --- io/model.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 io/model.h (limited to 'io/model.h') 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 @@ +#pragma once + +#include +#include + +#include "io/event.h" +#include "isa/isa.h" + +struct iomodel { + static constexpr unsigned int TT_OUTPUT_DELAY = 100; + + event_log log; + std::uint64_t time = 0; + bool interact(std::array &ctlregs); +}; -- cgit v1.2.3