summaryrefslogtreecommitdiff
path: root/inc/instrDTO.h
blob: 86cec050cf4da9f6502a14d13eb426315c34e152 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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 */