diff options
author | Siddarth-Suresh <65844402+Siddarth-Suresh@users.noreply.github.com> | 2025-04-15 11:59:27 -0400 |
---|---|---|
committer | Siddarth-Suresh <65844402+Siddarth-Suresh@users.noreply.github.com> | 2025-04-15 11:59:27 -0400 |
commit | f9e5214e87a935e1311b886e44bdfe1f8bfbdf56 (patch) | |
tree | 481b94886edf89f3bf08d06b96092298d1cdbf8c /src/sim/if.cc | |
parent | 561f7a6e6c24b05383b6db86b48125ee80a8355f (diff) |
Added pipeline to GUI
Diffstat (limited to 'src/sim/if.cc')
-rw-r--r-- | src/sim/if.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/sim/if.cc b/src/sim/if.cc index 4ab7f3e..fb49749 100644 --- a/src/sim/if.cc +++ b/src/sim/if.cc @@ -23,6 +23,15 @@ InstrDTO *IF::advance(Response p) return r; } +std::vector<int> IF::stage_info() { + std::vector<int> info; + if(this->curr_instr){ + info.push_back(this->curr_instr->get_pc()); + info.push_back(this->curr_instr->get_instr_bits()); + } + return info; +} + void IF::advance_helper() { Response r; |