Jump to content

Deferred Port binding


Recommended Posts

Hi,

 

As per the section 4.1.3 of standard 1666-2011, 

Quote

Since a port may be bound to another port that has not yet itself been bound, the implementation may defer the completion of port binding until a later time during elaboration, whereas exports shall be bound immediately. Such deferred port binding shall be completed by the implementation before the callbacks to function end_of_elaboration.

I am looking for example on deferred port binding and how it can be avoided.

Thanks !

Link to comment
Share on other sites

20 minutes ago, SystemCInDepth said:

I am looking for example on deferred port binding and how it can be avoided.

I don't fully understand why you'd want to avoid deferred port binding. Note that when the specification says, "the implementation may defer the completion", "implementation" here refers to the SystemC simulator itself - not the model implementation.

Assume you have a module M that has a port 'p'. It can bind the port to that of a child module (say, in module 'M's constructor). At this point in time, the parent port may not bound to a channel (yet). The paragraph quoted just says that the SystemC simulator should take care of such a situation.

 

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.

 Share

×
×
  • Create New...