diff options
Diffstat (limited to 'cpu8/cpu_add/cpu_and.hpp')
-rw-r--r-- | cpu8/cpu_add/cpu_and.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cpu8/cpu_add/cpu_and.hpp b/cpu8/cpu_add/cpu_and.hpp index a547f5d..0c78dc0 100644 --- a/cpu8/cpu_add/cpu_and.hpp +++ b/cpu8/cpu_add/cpu_and.hpp @@ -5,13 +5,13 @@ SC_MODULE (cpu_and) { - sc_in <bool> in_a; - sc_in <bool> in_b; - sc_out <bool> out_c; + sc_port<sc_signal_in_if<bool>,0> in_a; + sc_port<sc_signal_in_if<bool>,0> in_b; + sc_port<sc_signal_out_if<bool>,0> out_c; void do_and() { - out_c.write( in_a.read() && in_b.read() ); + out_c[0]->write( in_a[0]->read() && in_b[0]->read() ); } SC_CTOR(cpu_and) |