question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Clarity on the issue of restarts

See original GitHub issue

I need to find clarity on the question of whether cocotb supports the Questa restart -f command or restart commands in any simulator.

As a definition: restart -f brings a simulation back to time zero without reelaborating the design. One would like to modify a cocotb testbench and press the GUI restart button, or type restart -f and run the simulation from the start with a modified testbench.

It’s unclear in various conversations whether cocotb intends to support this functionality. The situation is confused by the fact that cocotb works with some simulators on restart and not others.

I can see three options:

  1. cocotb is not expected to support restart on any simulator. If it works in a given simulator that is a happy accident.

  2. cocotb supports restart in simulators where someone has done the work to make it support restart.

  3. cocotb is intended to support restart in all simulators, but there is a bug with regards to Questa.

Which of the three is the correct answer? We (Siemens) need to know so we can support our customer properly.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
riteshmentorcommented, Oct 12, 2021

Hi James,

Let’s assume - Questa can detect that the current simulation (being restarted) has a CocoTb testbench. Would it be sufficient to force execute callbacks meant for “End of Simulation”, and then go to the “Start of Simulation” callbacks ? I see that the start of simulation callbacks are looking to trigger the function “embed_sim_init” - which initializes Python. During restart, we check for “pEventFn” and is found. It implies that the python interface has been initialized. However, there is some break in the flow where the rest of the python testbench does not gets executed.

0reactions
github-actions[bot]commented, Dec 12, 2021

Has your question been resolved? If so please close this issue. If it has not been resolved, you may need to provide more information. If no more activity on this issue occurs in 7 days, it will be closed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Shutting down the services and restarting sequence | Clarity
We noticed that some processes are getting hanged up and a restart of the services is fixing the problem. what is the order...
Read more >
Issue while restarting the services using command niku start
Hi All,We are getting weird error when trying to restart the services ... We are on CA Clarity 12.0.4 setup with default web...
Read more >
3 R's to Fix Most IT Problems - Clarity Business IT Solutions
Step 1 – Restart​​ If a software application is giving you trouble, you may need to reboot the whole computer or device to...
Read more >
Restart problem - Microsoft Community
For further clarity on the issue, please respond to the questions below: 1. Which build version of Windows 10 are you using currently?...
Read more >
What to do if Clarity stops collecting across all modules
There are two ways to restart Clarity if it has stopped collecting ... If this doesn't resolve the issue, follow the steps below...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found