summaryrefslogtreecommitdiff
path: root/cpu8/cpu_nand
diff options
context:
space:
mode:
Diffstat (limited to 'cpu8/cpu_nand')
-rw-r--r--cpu8/cpu_nand/cpu_nand.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/cpu8/cpu_nand/cpu_nand.hpp b/cpu8/cpu_nand/cpu_nand.hpp
index 5e5e517..8194998 100644
--- a/cpu8/cpu_nand/cpu_nand.hpp
+++ b/cpu8/cpu_nand/cpu_nand.hpp
@@ -5,13 +5,13 @@
SC_MODULE (cpu_nand)
{
- 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_nand()
{
- out_c.write( !(in_a.read() && in_b.read()) );
+ out_c[0]->write( !(in_a[0]->read() && in_b[0]->read()) );
}
SC_CTOR(cpu_nand)