I'm new in systemc ,I'm trying to design (and gate) and create vcd file for simulation
and when build project I got on this error
Error: (E109) complete binding failed: port not bound: port 'and3.port_1' (sc_in)
In file: ../../../src/sysc/communication/sc_port.cpp:235
My code:
///////////////////////////////////////////////////////
andh2.h
Hi everyone
I'm new in systemc ,I'm trying to design (and gate) and create vcd file for simulation
and when build project I got on this error Error: (E109) complete binding failed: port not bound: port 'and3.port_1' (sc_in) In file: ../../../src/sysc/communication/sc_port.cpp:235
My code: /////////////////////////////////////////////////////// andh2.h
ifndef ANDH2H
define ANDH2H
include
SC_MODULE(andh2){ sc_in a;
sc_in b;
sc_out o;
void and_process(){
o.write(a.read()&&b.read());
};
endif / ANDH2H /
/////////////////////////////////////////////////////////////////////
and_test.cpp
include
include"andh2.h"
int sc_main(int argc, char*argv[]) { andh2 and1("and1"),and2("and2"),and3("and3");
}