aboutsummaryrefslogtreecommitdiff
path: root/qtmips_gui/coreview.h
blob: 7e9081a8182d1683201203e23e3bf4fbe88f46c8 (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
#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"

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::Multiplexer *pc_multiplexer;
    coreview::Connection *pc2pc;
    coreview::Latch *testlatch;
};

#else

class CoreView;
class CoreViewBlock;

#endif // COREVIEW_H