Jump to content

pablomtz

Members
  • Content Count

    2
  • Joined

  • Last visited

About pablomtz

  • Rank
    Member

Profile Information

  • Gender
    Male
  • Location
    Córdoba, Argentina

Contact Methods

  • Skype
    pabloa.mar
  1. Dear Philipp, If I am using a sc_vector for clock inputs. How can I get the difference between pos and neg? Suppose I have the following code: sc_vector<sc_in_clk > port_vec; //ports .... SC_METHOD(do_sth); for( unsigned i= 0; i<port_vec.size(); ++i ) sensitive << port_vec[i]; // Id like to do sth like this: sensitive << port_vec[i].pos(); ... void Producer::do_sth(void) { for( unsigned clk_id= 0; clk_id<port_vec.size(); ++clk_id ) if(port_vec[clk_id]->event()) //or like this: port_vec[clk_id]->pos() std::cout << "in_vec[" << clk_id << "] triggered." << std::endl; } Regards Pablo
×
×
  • Create New...