aboutsummaryrefslogtreecommitdiff
path: root/qtmips_gui/coreview.h
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2018-01-09 11:53:50 +0100
committerKarel Kočí <cynerd@email.cz>2018-01-09 11:54:48 +0100
commit91e52cafc2fc9a9cd990685ede1a530831bd084e (patch)
tree3704baf4883ae1f00749ec753cededcef10963e6 /qtmips_gui/coreview.h
parent3c4b94c0812ef9a1afd08934afa412cdff61f438 (diff)
downloadqtmips-91e52cafc2fc9a9cd990685ede1a530831bd084e.tar.gz
qtmips-91e52cafc2fc9a9cd990685ede1a530831bd084e.tar.bz2
qtmips-91e52cafc2fc9a9cd990685ede1a530831bd084e.zip
Clean and simplify how we add items to coreview
Diffstat (limited to 'qtmips_gui/coreview.h')
-rw-r--r--qtmips_gui/coreview.h17
1 files changed, 11 insertions, 6 deletions
diff --git a/qtmips_gui/coreview.h b/qtmips_gui/coreview.h
index 7439888..e214fad 100644
--- a/qtmips_gui/coreview.h
+++ b/qtmips_gui/coreview.h
@@ -40,16 +40,21 @@ signals:
void request_program_memory();
private:
- coreview::ProgramCounter *pc;
- coreview::Latch *pc_latch;
- coreview::Adder *pc_adder;
- coreview::Constant *pc_adder_4;
- coreview::Junction *pc_junction;
+ struct {
+ coreview::ProgramCounter *pc;
+ coreview::Latch *latch;
+ coreview::Adder *adder;
+ coreview::Constant *adder_4;
+ coreview::Junction *junction;
+ coreview::Multiplexer *multiplex;
+ } pc;
coreview::Alu *alu;
coreview::Memory *mem;
coreview::Registers *regs;
- coreview::Multiplexer *pc_multiplexer, *mem_or_reg;
+ coreview::Multiplexer *mem_or_reg;
+ QVector<coreview::Connection*> connections;
+ coreview::Connection *new_connection(const coreview::Connector*, const coreview::Connector*);
coreview::Connection *pc2pc_latch;
coreview::Connection *pc_latch2pc_joint, *pc_joint2pc_adder, *pc_joint2mem;
coreview::Connection *pc_multiplexer2pc;