Jump to content


  • Content Count

  • Joined

  • Last visited

About Hook

  • Rank

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hook

    Array when declare port for model

    @David Black @Roman Popov Thank for your info. I'm using systemc 2.3.2.
  2. Hook

    Array when declare port for model

    I tried above code ,but it's not working , Can you share me docs about "SC_NAMED" ? Thank @Roman Popov
  3. Hook

    Array when declare port for model

    Thank you so much @Roman Popov
  4. Hook

    Array when declare port for model

    @David Black Thank you so much !! I see some projects . They use code as bellow: //exxe.h class EXXE { public: sc_in<sc_dt::uint64> *clock[3]; sc_in<bool> *input[5]; EXXE(); ~EXXE(); } //exxe.cpp ///Constructor EXXE::EXXE() { std::ostringstream name; for (unsigned int index = 0; index < 5; index++) { name.str(""); name << "input" << index; input[index] = new sc_in<bool>(name.str().c_str()); } for (unsigned int index = 0; index < 3; index++) { name.str(""); name << "clock" << index; clock[index] = new sc_in<sc_dt::uint64>(name.str().c_str()); } } But you said that: "None of your three attempted examples appear ´╗┐correct´╗┐,...." Are they incorrect? Thank @David Black
  5. Hi all, I'm a new member, I am training systemc language, I'm not clear how to declare "ports" sc_in<bool> *input; sc_in<bool> *input[5]; sc_in<bool> input[5]; Can you explain how to use in each case? (When ?, how to initialize ?, difference?,....) Thank all.
  6. Hook

    Scope of SC_HAS_PROCESS

    Dear @AmeyaVS I appreciate all of your help . Thanks
  7. Hook

    Scope of SC_HAS_PROCESS

    Dear @David Black Thanks for your support , I have a question: " Why haven't you never used <systems.h> ?" What is different between <systemc> and <systemc.h> ? Thanks.
  8. Hook

    A SystemC installl problem on Ubuntu

    refer to : https://stackoverflow.com/questions/38352801/systemc-error-with-the-library
  9. Hook

    When exactly an event is servicd

    Hi @David Black event.cancel(); event.notify(SC_ZERO_TIME); Can you explain it mean when use cancel() above code ?
  10. Hook

    sc_spawn and anthoer process

    This is it means: sc_spawn can use for function have parameter and SC_* it not. Right or wrong?
  11. Can you explain the difference between sc_spawn and another process (SC_METHOD, SC_THREAD, SC_CTHREAD )? How to use sc_spawn? Thanks all
  12. Hi @Philipp A Hartmann what is the purpose? Thanks.
  13. Hi , can you explain the diffrence between " eoc.initialize(false) and eoc .write ( false) "?
  14. I don't know what is "argc" and "argv []" , Can you explain about this?And when does it change ? #include "systemc.h" int sc_main (int argc, char* argv[]) { cout<<"Value of argc="<<argc<<endl; cout <<"Value of argc[]="<<hex<<argc<<endl; return 0; }
  15. Hook

    Timing Annotation

    Thanks @Eyck I want to understand clearly in figure 26 above, The initiator sends to target with timing annotation is 10ns, when targets received the request, it is delay 10ns (timing annotation) then the target begin handing request I understand is right or wrong????