From 7369b3610373baffa47c049eb7e7c637c02ff9ef Mon Sep 17 00:00:00 2001 From: FreeArtMan Date: Sun, 14 Oct 2018 14:07:48 +0100 Subject: Added hello world example --- cpu8/hello_world/hello_world.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 cpu8/hello_world/hello_world.cpp (limited to 'cpu8/hello_world/hello_world.cpp') diff --git a/cpu8/hello_world/hello_world.cpp b/cpu8/hello_world/hello_world.cpp new file mode 100644 index 0000000..4a1e336 --- /dev/null +++ b/cpu8/hello_world/hello_world.cpp @@ -0,0 +1,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); +} \ No newline at end of file -- cgit v1.2.3