Jump to content

ruwan2

Members
  • Content Count

    17
  • Joined

  • Last visited

  1. Hi, A class can have several constructors. Can a module have two constructors? I try to do that, but it fails. I don't know whether it is allowed or the code is wrong: #include <systemc.h> SC_MODULE(myclk) { sc_in<bool> reset, sig; sc_in<bool> input_valid; sc_in<bool> CLK; SC_CTOR(myclk) { SC_METHOD(outp); sensitive << CLK.pos(); } SC_CTOR(myclk, sig) { input_valid = sig; SC_METHOD(outq); sensitive << CLK.pos(); }
×
×
  • Create New...