forked from Kirosamurai/RISCV-32I-Implementation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.txt
117 lines (98 loc) · 2.5 KB
/
README.txt
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
108
109
110
111
112
113
114
115
116
117
# RISCV-32I-Implementation
--------------------------------------------------------
A C++ implementation of RISCV-32I Processor
--------------------------------------------------------
README
Table of contents:
1. Developer Details
2. Directory Structure
3. How to build
4. How to execute
5. How to view output/GUI
Developer Details
-----------------
Developer's Name: Rhitvik Anand
Developer's Entry Number: 2021csb1127
Developer's Mail: [email protected] / [email protected]
Developer's Name: Niti Shyamsukha
Developer's Entry Number: 2021csb1118
Developer's Mail: [email protected]
Developer's Name: Ihita Sinha
Developer's Entry Number: 2021csb1095
Developer's Mail: [email protected]
Directory Structure
-------------------
RISCV-32I-Implementation
|
|- bin
|- RISCV
|- Data Memory.mc
|- doc
|- Design Doc.docx
|- include
|- Core.h
|- CacheFile.h
|- GUI.h
|- Pipeline.h
|- RISCV.h
|- src
|- Core.cpp
|- CacheFile.cpp
|- GUI.cpp
|- Pipeline.cpp
|- main.cpp
|- Makefile
|- RISCV.cpp
|- test
|- array_sum.s
|- array_sum.mc
|- bubblesort.s
|- bubblesort.mc
|- fibonacci.s
|- fibonacci.mc
|- LFU.s
|- LFU.mc
|- gui
|- public
|- index.html
|- styles.css
|- src
|- App.jsx
|- index.js
|- components
|- filedata.json
How to build
------------
For compiling:
$cd src
$make
For cleaning the project:
$cd src
$make clean
How to execute
--------------
Command to execute program:
../bin/RISCV <knobs>
<knobs> --
| -test <filename.mc>
| -n <value of N>
| -pipeline
| -forward
| -trace [<instruction number>]
| -registers
| -h (or) -help
(compulsory knob: -test <filename.mc>)
(all other knobs are optional:
| -h (or) -help will show how to execute
| default value of N is 5
| default setting of pipelining, forwarding, tracing, and showing register values is off
| if forward/trace is called without calling pipeline, it doesn't do anything
| providing instruction number after -trace knob will activate tracing for that particular instruction only, otherwise for all instructions
| -registers knob will show values in register file after every cycle)
How to view output/GUI
----------------------
All data memory is stored in file ../bin/Data Memory.mc
Run the following commands to view GUI:
$cd ../gui
$npm i react-scripts
$npm start