From 21da0f6723f3887d200917b4720dd22261e4420a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sun, 17 Dec 2017 13:44:26 +0100 Subject: Implement alu for coreview --- qtmips_gui/coreview.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'qtmips_gui/coreview.cpp') diff --git a/qtmips_gui/coreview.cpp b/qtmips_gui/coreview.cpp index 6630ad1..b7c17fc 100644 --- a/qtmips_gui/coreview.cpp +++ b/qtmips_gui/coreview.cpp @@ -11,17 +11,20 @@ CoreView::CoreView(QWidget *parent, machine::QtMipsMachine *machine) : QGraphics scene.addLine(0, 400, 800, 400); pc = new coreview::ProgramCounter(machine); + alu = new coreview::Alu(); pc_multiplexer = new coreview::Multiplexer(4); testlatch = new coreview::Latch(machine, 300); pc2pc = new coreview::Connection(pc_multiplexer->connector_out(), pc->connector_in()); scene.addItem(pc); + scene.addItem(alu); scene.addItem(pc_multiplexer); scene.addItem(testlatch); scene.addItem(pc2pc); pc->setPos(100,100); + alu->setPos(200, 100); pc_multiplexer->setPos(60, 100); pc_multiplexer->set(2); -- cgit v1.2.3