bsipl_h Posted August 11 Report Share Posted August 11 Hello, We recently started working with SystemC and TLM. We’ve a question around the inter-process communication/synchronization mechanism used in SystemC. Is it possible for a process in a module to notify an sc_event (or write to a sc_fifo) to another process in a different module that’s not part of the earlier module’s hierarchy (no common parent)? To the little we read so far, we couldn’t see how this would be possible if the sending and receiving processes are in two disparate modules, (here by sending we mean: event-notification or sc_fifo in the SystemC). Similarly, will such cross-module communication be possible using TLM sockets (when the modules don’t share a common parent)? Quote Link to comment Share on other sites More sharing options...
Eyck Posted August 11 Report Share Posted August 11 You have to use ports and signals or fifos. If you have a look at https://agra.informatik.uni-bremen.de/doc/lehrmat/sose03/qhe/6_sc_20.pdf slide 15 you will see a complete example. sc_signal works in a similar fashion except there are specialized ports called sc_in/so_out/sc_inout. Quote Link to comment Share on other sites More sharing options...
bsipl_h Posted August 22 Author Report Share Posted August 22 Thank you for the provided link; it offered valuable information. However, the examples presented feature modules that share a common parent. The specific requirement in question involves scenarios where processes exist in separate modules without a shared parent. The query revolves around whether it's feasible for a process in one module to signal an sc_event or write to an sc_fifo intended for another process located in a distinct module, without any hierarchical connection. Quote Link to comment Share on other sites More sharing options...
Eyck Posted September 12 Report Share Posted September 12 Eventually all modules in a common SystemC design have the same parent wiich is sc_main. So the example still aplies. If you have hierarchies you can use ports to connect up and down. 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.