summaryrefslogtreecommitdiffstats
path: root/cpu8/hello_world/hello_world.cpp
blob: 4a1e336c04c782a3fd6cbe030f1f5f8efb803e3f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

#include "systemc.h"

SC_MODULE (hello_world) {
	SC_CTOR(hello_world) {

	}

	void say_hello() {
		cout << "Hello world\n";
	}
};

int sc_main(int argc, char **argv) {
	hello_world hello("HELLO");
	hello.say_hello();
	return(0);
}