#ifndef __SYSC_CPU_NAND_HPP #define __SYSC_CPU_NAND_HPP #include "systemc.h" SC_MODULE (cpu_nand) { sc_port,0> in_a; sc_port,0> in_b; sc_port,0> out_c; void do_nand() { out_c[0]->write( !(in_a[0]->read() && in_b[0]->read()) ); } SC_CTOR(cpu_nand) { SC_METHOD(do_nand); sensitive << in_a << in_b; } }; #endif