katang Posted May 7, 2017 Report Share Posted May 7, 2017 I want to share a clock between modules. If I attempt to do it like sc_core::sc_clock Clock("Clock",sc_core::sc_time(1,sc_core::SC_NS)); scProc* Proc = new scProc("MY",Clock, 100,100); then the compiler gives the message /usr/local/systemc231a/include/sysc/communication/sc_clock.h:169: error: 'sc_core::sc_clock::sc_clock(const sc_core::sc_clock&)' is private sc_clock( const sc_clock& ); ^ If I (after changing the signatures correspondingly) sc_core::sc_clock Clock("Clock",sc_core::sc_time(1,sc_core::SC_NS)); scProc* Proc = new scProc("EMPA",&Clock, 100,100); then the code compiles, but in runtime presents with the error message Error: (E109) complete binding failed: port not bound: port 'MY.My.port_0' (sc_in) In scProc I have a private member sc_core::sc_in_clk mClock; and during initialization, I use mClock(*Clock), Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.