Skip to content

Simulation : abort simulation when step() does not converge #703

Open
@sporniket

Description

@sporniket

Context

Done with writing my code and running a simulation, the simulator is stuck in an infinite loop. After the last yield of the added sync process, PySimEngine.step() is stuck in while not converged.

Summary

  • Specify a threshold to the number of iteration to converge in a step, with a sensible default value (1000 ? 10000 ?)
  • When the number of iteration to converge goes over the threshold
    • break out of the loop
    • flush the vcd_writers, so that one can do analysis
    • raise an Error, with the timestamp of the simulator

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions