Jump to content

How to invoke a function/sc_method for two sensitive becomes true

Recommended Posts

Actually this is not going to work  as it is quite unlikely that both events fire at the same delta cycle. So you would write something like

void do_dff(){

    sensitive << clk;

The only option to concatenate events is to use sc_core::sc_event_and_list and sc_core::sc_event_or_list but those can only use in dynamic sensitivity (wait() for SC_THREADs and next_trigger() for SC_METHODs).


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now