aboutsummaryrefslogtreecommitdiff
path: root/qtmips_gui
diff options
context:
space:
mode:
authorPavel Pisa <pisa@cmp.felk.cvut.cz>2019-01-31 01:13:14 +0100
committerPavel Pisa <pisa@cmp.felk.cvut.cz>2019-01-31 01:13:14 +0100
commit644d250ff08bbc7342b570c8684a3a15019df33c (patch)
tree8ce7363e153b7bc708dd016f362f0ed47daba04b /qtmips_gui
parent4154f8e31896c90cba67ac5044425df7f8fed821 (diff)
downloadqtmips-644d250ff08bbc7342b570c8684a3a15019df33c.tar.gz
qtmips-644d250ff08bbc7342b570c8684a3a15019df33c.tar.bz2
qtmips-644d250ff08bbc7342b570c8684a3a15019df33c.zip
Display rs, rt, rd and write register number in all stages.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Diffstat (limited to 'qtmips_gui')
-rw-r--r--qtmips_gui/coreview.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/qtmips_gui/coreview.cpp b/qtmips_gui/coreview.cpp
index 0f10628..897f92e 100644
--- a/qtmips_gui/coreview.cpp
+++ b/qtmips_gui/coreview.cpp
@@ -140,6 +140,13 @@ CoreViewScene::CoreViewScene(machine::QtMipsMachine *machine) : QGraphicsScene()
// Write back stage
NEW_V(710, 330, writeback_value, true); // Write back value
+ NEW_V(205, 250, decode_rs_num_value, false, 2);
+ NEW_V(205, 270, decode_rt_num_value, false, 2);
+
+ NEW_V(320, 380, decode_rt_num_value, false, 2);
+ NEW_V(320, 390, decode_rd_num_value, false, 2);
+ NEW_V(320, 500, writeback_regw_num_value, false, 2);
+
connect(regs, SIGNAL(open_registers()), this, SIGNAL(request_registers()));
connect(mem_program, SIGNAL(open_mem()), this, SIGNAL(request_program_memory()));
connect(mem_data, SIGNAL(open_mem()), this, SIGNAL(request_data_memory()));
@@ -392,7 +399,10 @@ CoreViewScenePipelined::CoreViewScenePipelined(machine::QtMipsMachine *machine)
NEW_V(460, 45, writeback_regw_value, false, 1);
NEW_V(360, 105, decode_regw_value, false, 1);
NEW_V(460, 105, execute_regw_value, false, 1);
- NEW_V(560, 105, execute_regw_value, false, 1);
+ NEW_V(560, 105, memory_regw_value, false, 1);
+
+ NEW_V(500, 385, execute_regw_num_value, false, 2);
+ NEW_V(610, 385, memory_regw_num_value, false, 2);
if (machine->config().hazard_unit() == machine::MachineConfig::HU_STALL_FORWARD) {
NEW_V(448, 460, execute_reg1_ff_value, false, 1); // Register 1 forward