-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmain.cc
More file actions
28 lines (22 loc) · 815 Bytes
/
main.cc
File metadata and controls
28 lines (22 loc) · 815 Bytes
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
#include <iostream>
#include "proc.h"
using namespace std;
static string banner = "\
************************************************************\n\
* Kite: Architecture Simulator for RISC-V Instruction Set *\n\
* Developed by William J. Song *\n\
* Computer Architecture and Systems Lab, Yonsei University *\n\
* Version: 1.13 *\n\
************************************************************\n\
";
int main(int argc, char **argv) {
cout << banner << endl;
if(argc != 2) {
cerr << "Usage: " << argv[0] << " [program_code]" << endl;
exit(1);
}
proc_t proc; // Kite processor
proc.init(argv[1]); // Processor initialization
proc.run(); // Processor runs.
return 0;
}