Jump to content

Partha

Members
  • Content Count

    1
  • Joined

  • Last visited

  1. i am trying to implement i2c protocol using systemC. and i'm getting this error some port binding fails. cam anyone please resolve this problem ?? // Code your testbench here. // Uncomment the next line for SystemC modules. #include <systemc.h> #include <stdlib.h> class slave_if : public sc_interface { public: virtual void write(int data) = 0; virtual void read() = 0; }; SC_MODULE(Host) { sc_in<bool> scl; sc_in<bool> sda; sc_in<bool> rw; sc_port<slave_if> host_port; i
×
×
  • Create New...