summaryrefslogtreecommitdiff
path: root/src/sim/instrDTO.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/sim/instrDTO.cc')
-rw-r--r--src/sim/instrDTO.cc15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/sim/instrDTO.cc b/src/sim/instrDTO.cc
new file mode 100644
index 0000000..6427b1a
--- /dev/null
+++ b/src/sim/instrDTO.cc
@@ -0,0 +1,15 @@
+#include "instrDTO.h"
+
+InstrDTO::InstrDTO()
+{
+ this->if_cycle = 0;
+ this->instr_bits = 0;
+}
+
+int InstrDTO::get_if_cycle() { return this->if_cycle; }
+
+signed int InstrDTO::get_instr_bits() { return this->instr_bits; }
+
+void InstrDTO::set_if_cycle(int cycle) { this->if_cycle = cycle; }
+
+void InstrDTO::set_instr_bits(signed int instr) { this->instr_bits = instr; }