Skip to content

perf(sim): cheaper one-slot hand-off for observed and VCD runs #1935

Open

Description

@tignear

Follow-up of #1934 (#1730 PR 2). While a slot observer (cocotb value-change callback) or VCD is active, compiled runs take one slot at a time. Per slot: about 540 Ir of compiled code, but about 1,050 Ir in run_compiled, 500 Ir of slot writes, 230 Ir of compiled_limit and about 500 Ir in the end-of-slot hook. sched_bench with a callback on a data signal: b1 898 -> 6,843 Ir/cycle, ac 690 -> 6,818. Reduce the per-call hand-off (scheduler state write-back/reload, limit computation) so a one-slot run costs close to its compiled body. VCD runs share the path and benefit too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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