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/id.cc | |
parent | 561f7a6e6c24b05383b6db86b48125ee80a8355f (diff) |
Added pipeline to GUI
Diffstat (limited to 'src/sim/id.cc')
-rw-r--r-- | src/sim/id.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/sim/id.cc b/src/sim/id.cc index 0c0be91..46694ad 100644 --- a/src/sim/id.cc +++ b/src/sim/id.cc @@ -142,3 +142,12 @@ void ID::decode_J_type(signed int &s1, signed int &s2, signed int &s3) this->status = this->read_guard(*&s1); } + +std::vector<int> ID::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; +} |