intel / rohd

The Rapid Open Hardware Development (ROHD) framework is a framework for describing and verifying hardware in the Dart programming language.
https://intel.github.io/rohd-website
BSD 3-Clause "New" or "Revised" License
370 stars 65 forks source link

Update "timestamp in the past" error to suggest a Simulator reset #490

Closed mkorbel1 closed 2 months ago

mkorbel1 commented 2 months ago

Motivation

There's a couple situations where a timestamp may be added in the past in a simulation:

Usually people do not often need to use the registerAction API, and if they do, they would know about how they are picking the proper timestamp. However, when people forget to call reset(), the existing error message is confusing and unhelpful.

Desired solution

Update the exception thrown when a registerAction is called with a timestamp in the past to suggest that maybe they meant to include a Simulator.reset() call.

Update the documentation/user guide as well to make it clear how to do this.

Alternatives considered

No response

Additional details

No response