Jump to content

PARVINDER PAL SINGH

Members
  • Content Count

    1
  • Joined

  • Last visited

About PARVINDER PAL SINGH

  • Rank
    Member
  • Birthday 05/17/1989

Contact Methods

  • Yahoo
    palparvinder@yahoo.com

Profile Information

  • Gender
    Male
  • Location
    New Delhi
  1. PARVINDER PAL SINGH

    Get period of sc_clock

    Hello VanTeo, Asuming your modue A have sc_in<bbol> port you can do something like : SC_MODULE(A) { sc_in<bool> inPort; ..... void before_end_of_elaboration() { sc_interface* i_f = clock.get_interface(); sc_clock* clk = dynamic_cast<sc_clock*>(i_f); sc_time t = clk->period(); // Call method of clock object to which port is bound ... } ... };
×