diff options
author | Karel Kočí <cynerd@email.cz> | 2018-01-17 21:35:51 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2018-01-17 21:35:51 +0100 |
commit | 6ed6360bfde189191bd976d8969c2834b33ec64e (patch) | |
tree | 0038b3c3a2fba84204647ac3113519b8255ab164 /qtmips_gui/coreview.cpp | |
parent | 4a9975f012e74022247c3e9e1c143d2b0ea21925 (diff) | |
download | qtmips-6ed6360bfde189191bd976d8969c2834b33ec64e.tar.gz qtmips-6ed6360bfde189191bd976d8969c2834b33ec64e.tar.bz2 qtmips-6ed6360bfde189191bd976d8969c2834b33ec64e.zip |
Add logicblock and Control Unit to scheme
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 8fe7432..3e860cb 100644 --- a/qtmips_gui/coreview.cpp +++ b/qtmips_gui/coreview.cpp @@ -74,6 +74,8 @@ CoreViewScene::CoreViewScene(CoreView *view, machine::QtMipsMachine *machine) : NEW_B(Constant, pc.adder_4, pc.adder->connector_in_b(), "4"); NEW(Junction, pc.junction, 80, pc_latch_pair.out->y()); NEW(Multiplexer, pc.multiplex, 60, 100, 4); + NEW(LogicBlock, ctl_block, 300, 100, {"CPU", "Control"}); + ctl_block->setSize(35, 70); NEW(Alu, alu, 470, 230); NEW(Memory, mem, 20, 510, machine); NEW(Registers, regs, 20, 0); @@ -107,6 +109,7 @@ CoreViewScene::~CoreViewScene() { delete pc.adder_4; delete pc.junction; delete pc.multiplex; + delete ctl_block; delete alu; delete mem; delete regs; |