diff options
author | Karel Kočí <cynerd@email.cz> | 2017-12-17 13:44:26 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2017-12-17 13:44:26 +0100 |
commit | 21da0f6723f3887d200917b4720dd22261e4420a (patch) | |
tree | 2146344bc1966cd248e21000c922cf0a127b0bde /qtmips_gui/coreview.cpp | |
parent | 63163510aecfe19d976a9125ff2151698c4efb51 (diff) | |
download | qtmips-21da0f6723f3887d200917b4720dd22261e4420a.tar.gz qtmips-21da0f6723f3887d200917b4720dd22261e4420a.tar.bz2 qtmips-21da0f6723f3887d200917b4720dd22261e4420a.zip |
Implement alu for coreview
Diffstat (limited to 'qtmips_gui/coreview.cpp')
-rw-r--r-- | qtmips_gui/coreview.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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); |