blob: 8c0701e35aa03a23c4d2556825df890f907cb48f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#ifndef COREVIEW_H
#define COREVIEW_H
#include <QGraphicsView>
#include <QGraphicsScene>
#include "qtmipsmachine.h"
#include "coreview/connection.h"
#include "coreview/programcounter.h"
#include "coreview/multiplexer.h"
#include "coreview/latch.h"
#include "coreview/alu.h"
class CoreView : public QGraphicsView {
Q_OBJECT
public:
CoreView(QWidget *parent, machine::QtMipsMachine *machine);
private:
void resizeEvent(QResizeEvent *event);
QGraphicsScene scene;
machine::QtMipsMachine *machine;
coreview::ProgramCounter *pc;
coreview::Alu *alu;
coreview::Multiplexer *pc_multiplexer;
coreview::Connection *pc2pc;
coreview::Latch *testlatch;
};
#else
class CoreView;
class CoreViewBlock;
#endif // COREVIEW_H
|