Documentation

Sparkle.Core.OptimizedSim

Stability Property Registration #

A stability property records that a signal maintains a specific value for a known duration.

Instances For
    Equations
    Instances For
      Equations
      Instances For

        Temporal Property Registry #

        Stores proven stability properties that can be used for cycle-skipping.

        Add a stability property to the registry

        Equations
        Instances For

          Query if we can skip cycles for a signal at current time

          Equations
          • One or more equations did not get rendered due to their size.
          Instances For

            Simulation Statistics #

            • totalCycles : Nat
            • evaluatedCycles : Nat
            • skippedCycles : Nat
            • skipEvents : Nat
            Instances For
              Equations
              • One or more equations did not get rendered due to their size.
              Instances For
                Equations
                Instances For
                  Equations
                  Instances For
                    Equations
                    Instances For
                      Equations
                      • One or more equations did not get rendered due to their size.
                      Instances For

                        Optimized Simulator #

                        Simulate with cycle-skipping optimization (Nat signals only for simplicity)

                        Equations
                        • One or more equations did not get rendered due to their size.
                        Instances For
                          partial def Sparkle.Core.OptimizedSim.simulateOptimized.sim {d : Domain.DomainConfig} (registry : PropertyRegistry d) (signalId : String) (signal : Signal.Signal d Nat) (maxCycles t : Nat) (acc : List Nat) (stats : SimulationStats) :

                          Simulate without optimization (for comparison)

                          Equations
                          Instances For

                            Helper Functions #

                            def Sparkle.Core.OptimizedSim.mkStabilityProperty {d : Domain.DomainConfig} (signalId : String) (value startCycle duration : Nat) :
                            Equations
                            Instances For

                              Example Usage #

                              Equations
                              • One or more equations did not get rendered due to their size.
                              Instances For