diff options
author | FreeArtMan <dos21h@gmail.com> | 2018-12-05 20:31:42 +0000 |
---|---|---|
committer | FreeArtMan <dos21h@gmail.com> | 2018-12-05 20:31:42 +0000 |
commit | 50aef2bd1584af9a47938f5670f825d22c7ea006 (patch) | |
tree | 41a01741c2ec3ae20efceb211fb137e56fd895ef /cpu8/cpu_add/cpu_and.hpp | |
parent | 3e1eb700dd4fc8dc47772ff7942990e61dcde32e (diff) | |
download | cpu8-50aef2bd1584af9a47938f5670f825d22c7ea006.tar.gz cpu8-50aef2bd1584af9a47938f5670f825d22c7ea006.zip |
Fixes in cpu_add module
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) |