Jump to content
Karthik Rao

Triggering a method upon change in value of port

Recommended Posts

Hi All,

I am using an input port of type double to trigger my method. Irrespective of whether I give dont_initialize() property to the method or not, the method is getting triggered once during initialization phase. It is not triggering when there is a change in the value of the port to which the method is sensitive to. 

I also tried giving

.value_changed_event()

to the port. How should I handle this? Thanks in advance for your inputs 

Best Regards,

Karthik Rao

Share this post


Link to post
Share on other sites

Show some code. [Use the code quotations <> above and specify language C/C++]

What do you mean by "input port"? Are you using the default sc_port or specialized signal port?

Have you registered the method?

Where are you using value_changed_event()?

Why are you using `operator.` rather than operator-> ?

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

×