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 A, B; // input signal ports sc_out 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 } };