Lemonergy · Studio block

Invocation count fan-out

Copies one accepted-sample call count to fixed typed branches. It does not impose side-effect order between independent downstream models.

Implementation ID
native-call-count-split
Reviewed
2026-10-27

Behavior

Copies one accepted-sample call count to fixed typed branches. It does not impose side-effect order between independent downstream models. Outputs are held between accepted samples; numerical evaluation does not commit hidden state.

Interface

Invocation count fan-out interfaceInputs or arguments on the left, observed outputs on the right. Conserving terminals appear below the component. The tables give units and behavior.Invocation count fan-outStudio blockin0out0out1
Original Lemonergy interface view. Lines identify ports; they are not a completed simulation circuit.
Ports and observed outputs
NameDirectionUnitMeaning
in0input—Calls; u32 scalar.
out0output—Branch 1; u32 scalar.
out1output—Branch 2; u32 scalar.

Parameters

Defaults are initial model values. Select values for your own model and operating conditions.

Configuration fields
ParameterUnitDefaultMeaning and limits
Sample period
sampleTimeS
s1Positive interval between accepted control samples. Outputs hold between these instants.
Minimum 0
Branch count
params[0]
—21–32. Downstream consumers must use the same declared sample clock.

Equations and rules

  • branch[i] = accepted input call count, for every configured branch

Worked example

Invocation count fan-out worked example

Default editable example at the first accepted sample (t = 0 s). The output checks below are execution oracles for this example.

Open Studio example after release →
Numerical checks for the bundled synthetic example
OutputTime (s)Expected valueUnitAbsolute tolerance
Branch 1
out0
03—1e-08
Branch 2
out1
03—1e-08

Explore the recorded outputs

Invocation count fan-out recorded example

Invocation count fan-out / Branch 1
Invocation count fan-out / Branch 1 against timeRecorded synthetic simulation values. Time in seconds; output in —.2.502.750.5313.251.53.52—Time (s)
Invocation count fan-out / Branch 1: 3 — at 0 s

3 actual recorded samples. Lines are visual guides between samples. Synthetic example, not measured cell data.

Download the recorded samples (JSON) · Open this Studio example after release

Use in a workflow

Invocation count fan-out worked example

Copies one accepted-sample call count to fixed typed branches. It does not impose side-effect order between independent downstream models.

  1. Invocation count fan-out: Copies one accepted-sample call count to fixed typed branches. It does not impose side-effect order between independent downstream models. Outputs are held between accepted samples; numerical evaluation does not commit hidden state.
    • Use the block reference for settings and connections.
    • Implementation tested locally; public release pending.
Open Studio example after release

Connected concepts

Limits and interpretation

  • Control executes on an explicit sampled clock. Continuous states, history/delay kernels, residual equations, and event-source children are not supported.
  • Fan-out does not impose execution or side-effect order on independent downstream models. Counts are limited to 0–256; 1–32 branches are supported.

Scientific and mathematical references

These sources explain the scientific and mathematical background. The behavior, interface and limits above define the Lemonergy implementation; a citation does not imply every model option in the source is implemented.

  1. Synchronous Data Flow

    Edward A. Lee, David G. Messerschmitt · Proceedings of the IEEE, 75(9), 1235–1245 · 1987

    Technical reference · Background on actor firing and explicit dataflow. The sampled conditional semantics documented here are Lemonergy design choices, not a claim of a complete SDF implementation.

Implementation sources

This reference follows the public interface and locally verified numerical checks for an upcoming release.

Contract: Lemonergy Studio public contract · Verification record: verification-2026-10-27

  • docs/glossary/native-block-verification.json

This implementation and its workflow uses (JSON) · Knowledge graph (JSON-LD)