summaryrefslogtreecommitdiffstats
path: root/cpu8/cpu_and/notes.txt
diff options
context:
space:
mode:
Diffstat (limited to 'cpu8/cpu_and/notes.txt')
-rw-r--r--cpu8/cpu_and/notes.txt24
1 files changed, 24 insertions, 0 deletions
diff --git a/cpu8/cpu_and/notes.txt b/cpu8/cpu_and/notes.txt
new file mode 100644
index 0000000..62e8b7e
--- /dev/null
+++ b/cpu8/cpu_and/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
+ }
+};
+