Skip to content

Commit 1644a45

Browse files
author
Rui Espinha Ribeiro
committed
1st
0 parents  commit 1644a45

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

124 files changed

+6711
-0
lines changed

Doxyfile

Lines changed: 694 additions & 0 deletions
Large diffs are not rendered by default.

GUI/MIPS_datapathPipe3.png

8.13 KB
Loading

GUI/MIPS_datapathPipe4.png

13.9 KB
Loading

GUI/MIPS_datapathPipe4.vsd

89.5 KB
Binary file not shown.

GUI/MIPSarch.cpp

Lines changed: 502 additions & 0 deletions
Large diffs are not rendered by default.

GUI/MIPSarch.h

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
//MIPSarch.h
2+
3+
/**
4+
* \file MIPSarch.h
5+
*
6+
* Interface of widget that displays architecture.
7+
*/
8+
9+
#ifndef MIPSARCH_H
10+
#define MIPSARCH_H
11+
12+
#include <vector>
13+
#include <q3canvas.h>
14+
//Added by qt3to4:
15+
#include <QMouseEvent>
16+
#include <QCloseEvent>
17+
18+
using std::vector;
19+
20+
struct mips;
21+
22+
class QCloseEvent;
23+
class QCursor;
24+
25+
class PortValItem;
26+
class PortValRead;
27+
28+
29+
/**
30+
* MIPSarchCanvas is the Canvas that includes the MIPS architecture and is
31+
* viewed in MIPSarch Widget.
32+
*/
33+
34+
class MIPSarchCanvas: public Q3Canvas
35+
{
36+
public:
37+
MIPSarchCanvas(mips &m, QObject *parent);
38+
virtual ~MIPSarchCanvas(void);
39+
void updateArch(void);
40+
private:
41+
mips &mips1;
42+
vector < PortValItem * > portValVec;
43+
vector < Q3CanvasText * > instStage;
44+
vector < PortValRead * > pcStage;
45+
vector < PortValRead * > validpcStage;
46+
};
47+
48+
/**
49+
* MIPSarch is the Widget that displays the MIPS architecture.
50+
* MIPSarch is the Canvas View where the MIPSarchCanvas is displayed.
51+
* MIPSarch manages the user interface with the architecture visualization.
52+
*/
53+
54+
class MIPSarch : public Q3CanvasView
55+
{
56+
Q_OBJECT
57+
58+
public:
59+
MIPSarch( mips &m, QWidget* parent = 0, const char* name = 0, Qt::WFlags fl = 0 );
60+
virtual ~MIPSarch();
61+
62+
public slots:
63+
void updateArch(void);
64+
signals:
65+
void imemClicked(void);
66+
void dmemClicked(void);
67+
void regfileClicked(void);
68+
69+
protected:
70+
virtual void closeEvent(QCloseEvent *e);
71+
virtual void contentsMousePressEvent(QMouseEvent *e);
72+
virtual void contentsMouseMoveEvent(QMouseEvent *e);
73+
private:
74+
MIPSarchCanvas *archCanvas;
75+
QCursor *cursor;
76+
};
77+
78+
#endif // MIPSARCH_H

0 commit comments

Comments
 (0)