Jump to content
Sign in to follow this  

Executing Modules More than Once

Recommended Posts


I want to run the diagram given below. I am executing the modules with the respective processes but it only execute once and then the loop dies. I am providing the static sensitivity to the processes inside the modules e.g.  sensitive<< sig1; and so on. How to make the execution multiple times as mentioned in the STEPS in the Diagram. I need help in running the STEPS multiple times before we proceed to the next step in System C code. Thanks

SystemC Running in Loop.png

Share this post

Link to post
Share on other sites

Q1: How are you declaring the processes? [Note: Seeing actual code would help a lot. Your descriptions are completely inadequate for anybody to understand exactly what you are asking.]

Q2: What book are you using to get trained on using SystemC?


Share this post

Link to post
Share on other sites

Hello @wasim6691,

I totally agree with @David Black, Can you provide a minimal example of what your are trying to achieve?

From your minimal description all I could figure out are the following scenarios:

  1. You are not generating enough transactions/events in your simulation models and the simulation is exiting with the error message: Stopping simulation due to starvation
  2. You are yourself stopping the simulation with a call to sc_stop() before the next iteration can begin.

Post more details about the issue you are facing so that more community members can help you figure it out faster.


Ameya Vikram Singh

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
Sign in to follow this