7.1.1 The Simulation class

class Simulation( arg [, arg ...])
Class to construct a new simulation. Each argument should be a MyHDL instance. In MyHDL, an instance is recursively defined as being either a sequence of instances, or a MyHDL generator, or a Cosimulation object. See section 7.2.2 for the definition of MyHDL generators and their interaction with a Simulation object. See Section 7.3 for the Cosimulation object. At most one Cosimulation object can be passed to a Simulation constructor.

A Simulation object has the following method:

run( [duration])
Run the simulation forever (by default) or for a specified duration.

About this document