From b81c86b438123457be86af2e7c24375856afa742 Mon Sep 17 00:00:00 2001 From: bd Date: Wed, 26 Mar 2025 12:21:52 -0400 Subject: Add fetch stage implementation, tests, program loading, DTO object --- inc/instrDTO.h | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 inc/instrDTO.h (limited to 'inc/instrDTO.h') diff --git a/inc/instrDTO.h b/inc/instrDTO.h new file mode 100644 index 0000000..86cec05 --- /dev/null +++ b/inc/instrDTO.h @@ -0,0 +1,39 @@ +#ifndef INSTRDTO_H +#define INSTRDTO_H + +class InstrDTO +{ + public: + /** + * Constructor. + */ + InstrDTO(); + ~InstrDTO() = default; + + /** + * @return if_cycle + */ + int get_if_cycle(); + /** + * @return instr_bits + */ + signed int get_instr_bits(); + + /** + * @param if_cycle + */ + void set_if_cycle(int); + /** + * @param instr_bits + */ + void set_instr_bits(signed int); + + private: + /** + * The current clock cycle. + */ + int if_cycle; + signed int instr_bits; +}; + +#endif /* INSTRDTO_H_INCLUDED */ -- cgit v1.2.3