#ifndef __SYSC_CPU_NAND_HPP #define __SYSC_CPU_NAND_HPP #include "systemc.h" SC_MODULE (cpu_nand) { sc_in in_a; sc_in in_b; sc_out out_c; void do_nand() { out_c.write( !(in_a.read() && in_b.read()) ); } SC_CTOR(cpu_nand) { SC_METHOD(do_nand); sensitive << in_a << in_b; } }; #endif