Ahr Posted May 29, 2019 Report Share Posted May 29, 2019 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 Quote Link to comment Share on other sites More sharing options...
David Black Posted May 29, 2019 Report Share Posted May 29, 2019 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. Ahr 1 Quote Link to comment Share on other sites More sharing options...
Ahr Posted May 29, 2019 Author Report Share Posted May 29, 2019 Hi David, So, I just need to replace sc_signal with sc_signal_rv and it will work. Am I getting it correctly? Quote Link to comment Share on other sites More sharing options...
Ahr Posted May 30, 2019 Author Report Share Posted May 30, 2019 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.