From 3230238711ad444a8172b45a516a3205494d13d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 22 Mar 2018 17:25:28 +0100 Subject: Add control signals for non-pipelined cpu --- qtmips_gui/coreview/registers.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'qtmips_gui/coreview/registers.cpp') diff --git a/qtmips_gui/coreview/registers.cpp b/qtmips_gui/coreview/registers.cpp index 2b1c1b5..ba46f53 100644 --- a/qtmips_gui/coreview/registers.cpp +++ b/qtmips_gui/coreview/registers.cpp @@ -57,9 +57,9 @@ void Registers::setPos(qreal x, qreal y) { con_read1->setPos(x + WIDTH, y + 10); con_read2->setPos(x + WIDTH, y + 30); - con_write_reg->setPos(x + WIDTH/2, y); - con_write->setPos(x, y + HEIGHT - 10); - con_ctl_write->setPos(x, y + HEIGHT - 20); + con_write_reg->setPos(x, y + HEIGHT - 10); + con_write->setPos(x, y + HEIGHT - 20); + con_ctl_write->setPos(x + WIDTH - 10, y); } const Connector *Registers::connector_read1() const { -- cgit v1.2.3