-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.php
executable file
·107 lines (101 loc) · 5.43 KB
/
index.php
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<html>
<head>
<link rel="stylesheet" type="text/css" href="lib/css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="lib/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="lib/css/bootstrap-theme.css">
<link rel="stylesheet" type="text/css" href="lib/css/bootstrap-theme.min.css">
<script type="text/javascript" src="lib/js/jquery.js"></script>
<script type="text/javascript" src="lib/js/bootstrap.js"></script>
<script type="text/javascript" src="lib/js/bootstrap.min.js"></script>
<!-- Custom Libraries -->
<script type="text/javascript" src="javascript/conversion.js"></script>
<script type="text/javascript" src="javascript/control.js"></script>
<script type="text/javascript" src="javascript/execute.js"></script>
<script type="text/javascript" src="javascript/pipeline.js"></script>
<script type="text/javascript" src="javascript/detection.js"></script>
<script type="text/javascript" src="javascript/ALU_functions.js"></script>
<script type="text/javascript" src="javascript/registers/instruction_registers.js"></script>
<script type="text/javascript" src="javascript/registers/file_registers.js"></script>
<script type="text/javascript" src="javascript/registers/mem_registers.js"></script>
</head>
<body>
<div class="page-header" style="margin-left: 5px">
<h1 align="center" class="jumbotron">Team Druid</h1>
<div align="center" style="margin-top: -10px;">
<button class="btn btn-primary" style=" margin-bottom: 5px;" type="button" data-toggle="collapse" data-target="#collapseExample" aria-expanded="false" aria-controls="collapseExample">
Show Registers
</button>
<div class="collapse" id="collapseExample">
<div class="well">
<table class="table" width="100%">
<tr>
<th>Index</th> <th>Variable</th> <th>Content</th>
</tr>
<tr>
<td>001</td> <td>$v0</td> <td><input id="v0Reg" type="text" placeholder="Binary Value" onkeyup="fileRegister['001'] = this.value;" /></td>
</tr>
<tr>
<td>010</td> <td>$v1</td> <td><input id="v1Reg" type="text" placeholder="Binary Value" onkeyup="fileRegister['010'] = this.value;" /></td>
</tr>
<tr>
<td>011</td> <td>$v2</td> <td><input id="v2Reg" type="text" placeholder="Binary Value" onkeyup="fileRegister['011'] = this.value;" /></td>
</tr>
<tr>
<td>100</td> <td>$v3</td> <td><input id="v3Reg" type="text" placeholder="Binary Value" onkeyup="fileRegister['100'] = this.value;" /></td>
</tr>
<tr>
<td>101</td> <td>$t0</td> <td><input id="t0Reg" type="text" placeholder="Binary Value" onkeyup="fileRegister['101'] = this.value;" /></td>
</tr>
<tr>
<td>110</td> <td>$t1</td> <td><input id="t1Reg" type="text" placeholder="Binary Value" onkeyup="fileRegister['110'] = this.value;" /></td>
</tr>
<tr>
<td>111</td> <td>$t2</td> <td><input id="t2Reg" type="text" placeholder="Binary Value" onkeyup="fileRegister['111'] = this.value;" /></td>
</tr>
<tr>
<td>000</td> <td>$a0</td> <td><input id="a0Reg" type="text" placeholder="Binary Value" onkeyup="memRegister['000'] = this.value;" /></td>
</tr>
<tr>
<td>001</td> <td>$a1</td> <td><input id="a1Reg" type="text" placeholder="Binary Value" onkeyup="memRegister['001'] = this.value;" /></td>
</tr>
<tr>
<td>010</td> <td>$a2</td> <td><input id="a2Reg" type="text" placeholder="Binary Value" onkeyup="memRegister['010'] = this.value;" /></td>
</tr>
<tr>
<td>011</td> <td>$a3</td> <td><input id="a3Reg" type="text" placeholder="Binary Value" onkeyup="memRegister['011'] = this.value;" /></td>
</tr>
</table>
</div>
</div>
<button class="btn btn-primary" style=" margin-bottom: 5px;" type="button" onclick="pipe();">
Execute
</button>
<button id="autoBtn" class="btn btn-primary" style=" margin-bottom: 5px;" type="button" onclick="autoPipe();">
Auto Execute
</button>
</div>
</div>
<div id="registers">
<table width="100%">
<tr>
<th>Instruction</th> <th>File</th> <th>Data Memory</th>
</tr>
<tr>
<td style="padding:5px 15px 0 15px; vertical-align: text-top" id="instRegister" style="padding-left: 5px; padding-right: 5px;" width="40%"></td>
<td style="padding:5px 15px 0 15px; vertical-align: text-top" id="fileRegister" style="padding-left: 5px; padding-right: 5px;" width="30%"></td>
<td style="padding:5px 15px 0 15px; vertical-align: text-top;" id="dataRegister" style="padding-left: 5px; padding-right: 5px;" width="30%"></td>
</tr>
</table>
</div>
<br/>
<hr>
<!-- Nav tabs -->
<ul id="tabs" class="nav nav-tabs" role="tablist">
<!-- <li class="active"><a href="#cycle1" role="tab" data-toggle="tab">Home</a></li> -->
</ul>
<!-- Tab panes -->
<div id="panes" class="tab-content">
<!-- <div class="tab-pane active" id="cycle1">...</div> -->
</div>
</body>
</html>