summaryrefslogtreecommitdiff
path: root/io/model.h
blob: 8758a43b4c50dc48e199fb8c39a46edb86e8a5d9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once

#include <array>
#include <cstdint>
#include <istream>

#include "io/event.h"
#include "isa/isa.h"

struct iomodel {
    static constexpr unsigned int TT_OUTPUT_DELAY = 1;

    event_log log;
    std::uint64_t time = 0;
    bool interact(std::array<std::uint_fast32_t, NUM_CTLREGS> &ctlregs);

    void load_evt(std::istream &fh);
};