aboutsummaryrefslogtreecommitdiff
path: root/qtmips_gui/coreview
diff options
context:
space:
mode:
Diffstat (limited to 'qtmips_gui/coreview')
-rw-r--r--qtmips_gui/coreview/alu.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/qtmips_gui/coreview/alu.cpp b/qtmips_gui/coreview/alu.cpp
index e048578..0a60600 100644
--- a/qtmips_gui/coreview/alu.cpp
+++ b/qtmips_gui/coreview/alu.cpp
@@ -1,4 +1,5 @@
#include "alu.h"
+#include <cmath>
//////////////////////
#define WIDTH 40
@@ -13,10 +14,10 @@ coreview::Alu::Alu() : QGraphicsItem(nullptr), name("ALU", this) {
font.setPointSize(7);
name.setFont(font);
- con_in_a = new Connector();
- con_in_b = new Connector();
- con_out = new Connector();
- con_ctl = new Connector();
+ con_in_a = new Connector(0);
+ con_in_b = new Connector(0);
+ con_out = new Connector(M_PI);
+ con_ctl = new Connector(-M_PI_2);
setPos(x(), y()); // set connector's position
}