summaryrefslogtreecommitdiff
path: root/io/model.h
diff options
context:
space:
mode:
Diffstat (limited to 'io/model.h')
-rw-r--r--io/model.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/io/model.h b/io/model.h
index be16283..16e7ca7 100644
--- a/io/model.h
+++ b/io/model.h
@@ -12,13 +12,12 @@ struct iomodel {
12 static constexpr unsigned int TT_OUTPUT_DELAY = 10; 12 static constexpr unsigned int TT_OUTPUT_DELAY = 10;
13 13
14 event_log log; 14 event_log log;
15 std::uint64_t time = 0; 15 bool interact(std::uint64_t icount, std::array<std::uint_fast32_t, NUM_CTLREGS> &ctlregs, bool replay=false);
16 bool interact(std::array<std::uint_fast32_t, NUM_CTLREGS> &ctlregs); 16 bool done(std::uint64_t icount) {
17 bool done() { 17 return log.lower_bound(icount) == log.end();
18 return log.lower_bound(time) == log.end();
19 } 18 }
20 19
21 std::uint64_t load_time = 0; 20 std::uint64_t load_icount = 0;
22 void load_evt(std::istream &fh); 21 void load_evt(std::istream &fh);
23 22
24 std::ostream & write_evt(std::ostream &fh); 23 std::ostream & write_evt(std::ostream &fh);