-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathmain.cpp
More file actions
34 lines (27 loc) · 828 Bytes
/
main.cpp
File metadata and controls
34 lines (27 loc) · 828 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
28
29
30
31
32
33
34
#include <iostream>
#include <iomanip>
#include <systemc.h>
#include "memory.h"
#include "processor.h"
#include "bus.h"
int sc_main (int, char **)
{
processor cpu0("cpu0", "stimuli1.txt", sc_time(1, SC_NS));
// TODO: add your code here
std::cout << std::endl << "Name "
<< std::setfill(' ') << std::setw(10)
<< "Time" << " "
<< std::setfill(' ') << std::setw(5)
<< "CMD" << " "
<< std::setfill(' ') << std::setw(8)
<< "Address"
<< " " << std::hex
<< std::setfill(' ') << std::setw(8)
<< "Data"
<< " " << std::endl
<< "-------------------------------------------"
<< std::endl;
sc_start();
std::cout << std::endl;
return 0;
}