Jump to content

Connecting two Bi-directional ports


Recommended Posts

I have been working on connection of two module having bi-directional ports, Is there any special signal required to connect two bi-directional ports? or anything else. 

Suggestions are welcome

This is the error what I'm getting :

Error: (E115) sc_signal<T> cannot have more than one driver:
signal `Mila.signal_0' (sc_signal)
first driver `Mila.Memory.port_4' (sc_inout)
second driver `Mila.Alloc.port_3' (sc_inout)
In file: ../../../../src/sysc/communication/sc_signal.cpp:73

Link to comment
Share on other sites

22 hours ago, David Black said:

sc_signal is not really a good channel for bi-directional signaling since by design it is intended for single driver (writer) multiple reader use.

You should use sc_signal_rv<T> or sc_signal_resolved for multiple drivers so that contention can be properly modeled.


Can you please see my code and tell me where I am doing wrong ? As using sc_signal_rv is not working.


Many thanks ,


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.

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...