diff options
author | Siddarth Suresh <155843085+SiddarthSuresh98@users.noreply.github.com> | 2025-03-26 22:05:46 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-26 22:05:46 -0400 |
commit | 7abc8926670c1701db8011cacc9c5e2e2ca95be8 (patch) | |
tree | fd3263d2754d662fdad6d69851f14a84f44db4d1 /src/sim/instrDTO.cc | |
parent | 9eeea1ab8bf4eb17e5da46d57a6c1d455a0a262e (diff) | |
parent | 8d37d15ebd1221e3b1698abb3b051d9d0c044c93 (diff) |
Merge pull request #36 from bdunahu/bdunahu
Add fetch stage implementation, tests, program loading, DTO object
Base classes plus base tests for Instruction Fetch stage with a default program
Diffstat (limited to 'src/sim/instrDTO.cc')
-rw-r--r-- | src/sim/instrDTO.cc | 15 |
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; } |