#ifndef __SYSC_CPU_NAND_HPP #define __SYSC_CPU_NAND_HPP #include "systemc.h" SC_MODULE (cpu_not) { sc_in in_a; sc_out out_b; void do_not() { out_b.write( !in_a.read() ); } SC_CTOR(cpu_not) { SC_METHOD(do_not); sensitive << in_a; } }; #endif