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.

Testbench checking with a mock simulator?

See original GitHub issue

One of the main differences between cocotb and traditional verification setups is that the cocotb testbench may have a runtime error that only shows up after simulating to this point, which may be hours or days later. I remember (but cannot find again) a recent discussion about cocotb vs. SV and this was the major disadvantage for some people.

I wonder if we could find some of these problems early. One thing that came to mind is having some kind of a mock simulator that “immediately” returns from a Timer yield, immediately triggers a trigger, … This would not cover all code paths, but may still be useful. Or is there a way to statically check the code for (some of) the potential problems?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
eric-wiesercommented, Aug 22, 2019

Note that to enable users to get the most out of the mypy linter, cocotb would have to opt in and provide the necessary annotations. Probably something that would be much easier after a python 3 transition.

0reactions
cmarqucommented, May 11, 2020

Superseded by other PRs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Randomising Test Vectors & Self Checking Testbenches
In this screencast we explore the concept of self checking testbenches as a more feasible test solution for large designs than exhaustive ...
Read more >
Lab 3: Simulation and Testing - EECS Instructional
In this lab, you will learn how to simulate your modules and test them in software before pushing them to the board. In...
Read more >
UVM Test [uvm_test] - ChipVerify
Learn what is a UVM test (uvm_test) class, how to create a test scenario, different phases in uvm_test, and how to start a...
Read more >
Unit Testing Your Way to a Reliable Testbench
The Verification Academy will provide you with a unique opportunity to develop an understanding of how to mature your organization's processes so that...
Read more >
Virtual Test Bench for Function Tests - dSPACE
The PC-based simulation of engine effects is accurate enough to test ECU functions in a realistic context. If more complex models have to...
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