Jump to content
Ahr

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
 

Share this post


Link to post
Share on other sites

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.

 

Share this post


Link to post
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.

https://www.edaplayground.com/x/3aQC

Many thanks ,

Asif

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

×