summaryrefslogtreecommitdiff
path: root/cpu8/cpu_add/notes.txt
diff options
context:
space:
mode:
authorFreeArtMan <dos21h@gmail.com>2018-10-14 14:07:48 +0100
committerFreeArtMan <dos21h@gmail.com>2018-10-14 14:07:48 +0100
commit7369b3610373baffa47c049eb7e7c637c02ff9ef (patch)
treedfe8580d75afe2cc10e308bc2fb2a97ecc945636 /cpu8/cpu_add/notes.txt
parent4ea2be2ca3a5945abd6f36d2ac0cb1eb05613a45 (diff)
downloadcpu8-7369b3610373baffa47c049eb7e7c637c02ff9ef.tar.gz
cpu8-7369b3610373baffa47c049eb7e7c637c02ff9ef.zip
Added hello world example
Diffstat (limited to 'cpu8/cpu_add/notes.txt')
-rw-r--r--cpu8/cpu_add/notes.txt24
1 files changed, 24 insertions, 0 deletions
diff --git a/cpu8/cpu_add/notes.txt b/cpu8/cpu_add/notes.txt
new file mode 100644
index 0000000..62e8b7e
--- /dev/null
+++ b/cpu8/cpu_add/notes.txt
@@ -0,0 +1,24 @@
+https://www.doulos.com/knowhow/systemc/tutorial/modules_and_processes/
+https://www.doulos.com/knowhow/systemc/tutorial/debugging/
+
+
+
+
+#include "systemc.h"
+SC_MODULE(nand2) // declare nand2 sc_module
+{
+ sc_in<bool> A, B; // input signal ports
+ sc_out<bool> F; // output signal ports
+
+ void do_nand2() // a C++ function
+ {
+ F.write( !(A.read() && B.read()) );
+ }
+
+ SC_CTOR(nand2) // constructor for nand2
+ {
+ SC_METHOD(do_nand2); // register do_nand2 with kernel
+ sensitive << A << B; // sensitivity list
+ }
+};
+