-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
58 lines (53 loc) · 1.89 KB
/
index.html
File metadata and controls
58 lines (53 loc) · 1.89 KB
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
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>RISC-V CPU Visualizer</title>
<link rel="stylesheet" href="styles.css">
<script src="https://d3js.org/d3.v7.min.js"></script>
</head>
<body>
<div class="container">
<div class="header">
<h1>RISC-V CPU Visualizer</h1>
<div class="controls">
<button id="prev" disabled>Previous Cycle</button>
<span id="cycle-display">Cycle: 0</span>
<button id="next">Next Cycle</button>
<button id="play-pause">Play</button>
<select id="speed">
<option value="1000">1x Speed</option>
<option value="200">5x Speed</option>
<option value="100">10x Speed</option>
<option value="20">50x Speed</option>
</select>
</div>
</div>
<div class="main-view">
<div class="left-sidebar">
<div class="panel">
<h3>Instruction</h3>
<div id="instruction-info"></div>
</div>
<div class="panel">
<h3>Control Signals</h3>
<div id="control-signals"></div>
</div>
</div>
<div id="cpu-diagram"></div>
<div class="right-sidebar">
<div class="panel">
<h3>Registers</h3>
<div id="register-view"></div>
</div>
<div class="panel">
<h3>Memory</h3>
<div id="memory-view"></div>
</div>
</div>
</div>
</div>
<script src="cpu-data.js"></script>
<script src="visualizer.js"></script>
</body>
</html>