Jump to content

Triggering a method upon change in value of port


Karthik Rao

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

Link to comment
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-> ?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...