diff options
| author | bd <bdunahu@operationnull.com> | 2025-03-26 12:21:52 -0400 | 
|---|---|---|
| committer | bd <bdunahu@operationnull.com> | 2025-03-26 12:21:52 -0400 | 
| commit | b81c86b438123457be86af2e7c24375856afa742 (patch) | |
| tree | 74f271585bce27de2434d8cd826fee09f6a71738 /inc/instrDTO.h | |
| parent | 9eeea1ab8bf4eb17e5da46d57a6c1d455a0a262e (diff) | |
Add fetch stage implementation, tests, program loading, DTO object
Diffstat (limited to 'inc/instrDTO.h')
| -rw-r--r-- | inc/instrDTO.h | 39 | 
1 files changed, 39 insertions, 0 deletions
| 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 */ | 
