Skip to content

Timing workspace: presentation, navigation and preloading

The built-in Timing workspace is now the normal destination for timing inspection. Its index is prepared in the background by default, including while Overview is active. Presentation and loading choices persist across client restarts.

Display and controls

  • Timing measurements default to three decimal places, truncated toward zero: 0.125029 ns displays as 0.125 ns. Sorting, comparisons, constraints and stored evidence retain their original precision. Tiny negatives keep a minus sign, such as -0.000, rather than appearing to be a passing zero.
  • Long opaque ASCII identities default to first four / last four compression, for example a023…4e4a. Source paths retain a recognizable filename and shortened source identity. Provider report-source headers are compacted for display; technical report bodies, exports, selectors and stored raw evidence remain intact.
  • Session uses the same semantic status styling as Overview: connected is the theme's success color, normally green. Timing provenance distinguishes labels, source identity, verified state, warnings and failures instead of uniform text.
  • The paths column and right-hand detail/provenance stack now share width equally in roomy layouts. At 120 columns they each occupy 60, expanding the old paths area by roughly ten percentage points. Narrow layouts remain bounded.

Focus the relevant tile, open Space c c, and choose:

Palette command Effect
Timing: Truncate to 3 decimal places Set focused-tile precision; choices 0–9 are available
Strings (focused tile): Compress identifiers and source paths Enable compact strings for the focused tile
Strings (focused tile): Show full identifiers and source paths Reveal full strings; scrolling uses the full wrapped content
Reset presentation overrides (inherit) Restore defaults/inheritance for the focused tile

Portable workspace-config presentation fields are decimal_places : int option and string_compression : bool option. Explicit per-tile client overrides persist with session/workspace/tile/kind identity checks. Preferences now use schema 6 and read schemas 1–5; older records inherit three decimals, compression and background indexes. The completed compression controls add global/workspace defaults and independent compression-only reset, resolve list collisions, and preserve short/non-ASCII IDs and human labels. Those controls supersede the initial tile-only compression scope described by the original implementation record.

Where inspection opens

Normal Inspect timing paths and Overview Timing inspection open the existing built-in Timing workspace in the current window. Repeated inspection does not add tabs. Switching selected runs updates its exact source and invalidates stale path/detail state. New seven-stage Timing and historical Signoff analyses retain their respective stage/source identities.

The built-in follows its resolved run and honors pins/independent contexts. If an explicit request conflicts with its bindings or hidden panes, the client explains the conflict rather than stealing pins or silently opening another workspace.

For an intentional independent comparison, choose Separate Timing investigation for the desired run. Inside such a workspace, Close separate investigation is available in the palette. Closing is revision-checked and protects configured/shared workspaces, Main/shared contexts and the last workspace in a window.

At the time of this Timing migration, the default tabs were:

Overview → Testing → Waveforms → Timing

The owner's saved built-ins were reordered to match. Existing extra investigations remain after them; use the close command to dismiss those when no longer needed. Tiles, geometry records, contexts, pins and evidence were verified unchanged.

Visible loading and background preparation

Entering or restoring a visible Timing workspace asks for its selected run's Timing index when the evidence is available. The same rule applies if the run changes or becomes ready while the workspace is visible. Tabs, aliases, the workspace list and saved navigation all use the same rule. Index loading reads existing evidence; it does not run EDA, execute a refresh, or require path detail. If the summary is not hot, Silver can load the selected summary first, then request its exact captured analysis. Without a captured analysis identity, a checkpoint-backed index requires an observed completed Timing/Signoff stage for the registered execution; hidden warm-up also requires a terminal run outcome. A synthesis-only run is not a Timing candidate.

Default Background index mode observes exact completed analyses resolved by built-in Timing workspaces, even when hidden. It handles:

  • newly published analysis when Timing completes, including during later Signoff;
  • selecting an already-completed run;
  • reopening a cached index after client/daemon restart.

It loads the index, prepares reusable searchable/filter/sort state, and warms two distinct path reports by default. An existing highlighted path comes first, followed by paths in Timing Paths order up to the configured count. Provenance rows remain available after actual paths and are not warmed. Silver attaches the matching report to Selected Path and prepares its text lines while Overview is idle. It does not draw hidden terminal frames, change focus, select a newer run, or alter pins.

If a running flow publishes one Timing identity and completion replaces it, Silver rebinds to the new exact source. Matching path IDs alone cannot carry an old report across that change. If only the run observation advances, an unchanged frozen index remains reusable, but details must match the new observation.

With detail preload enabled, the highlight shows matching published detail immediately, without Enter or provider I/O, once the warm-up has finished. Moving to a cold path shows its loading state and requests that path before any unsent warm-up reads. With an explicit count of zero, the index supplies slack, endpoints, corner and status; use Enter or explicit inspection to load full detail. Explicit inspection can also warm its configured neighbors in Background index mode. A cold provider read can take several seconds.

In Timing · selected path, each report line occupies one screen row. Long descriptions and cell names are clipped at the right edge; widen the tile to see more of the original line.

Loading policy controls

Control Effect
Palette Timing preload: Background index Enable and persist project loading policy; default
Palette Timing preload: Explicit only Suppress speculative reads and persist that choice
Palette Timing preload: Top 5 path details Save a project count of five (choices 0–5)
Palette Timing preload: Top 2 path details Default for a project without a saved count
Palette Timing preload: Top 0 path details Save zero (index only)
Client --timing-preload background-index Initial override of the saved policy
Client --timing-preload explicit-only Initial explicit-only override
Client --timing-preload-details 5 Initial override of the saved count (integer 0–5)

The client stores the count as (timing_preload_details 5) in the project's presentation-<project-key-hash>.sexp state file; a missing field means two. An existing saved zero remains index-only. CLI overrides win initially; subsequent palette changes take effect and persist. Explicit only means no speculative index or detail reads, regardless of the saved count. Opening Timing still loads the visible index and Enter still loads the selected path. Changing policy does not purge cached data or abort an already-running read.

Bounds and correctness

  • Visible and speculative index loads share one bounded automatic lane, reserved until daemon publication/failure, not merely HTTP acknowledgement. Visible demand comes first when choosing the next request. Matching explicit Inspect joins an in-flight read without a second refresh. Inconsistent pane bindings do not trigger a read; pins and independent contexts are not changed.
  • Exact run/stage/analysis/source and connection/project identities fence attachment. The index for an unchanged frozen Timing source is reusable as the mutable execution advances. Detail attachment also checks the run observation; a selection or source change cannot attach obsolete data to the new view. Saved rows wait for the published index, then restore only if run, stage, analysis (including any reinspection lineage), index digest and row all match.
  • Each daemon/project scope remembers at most 128 attempted exact indexes and 128 attempted exact path details for background preparation. A missing or failed read does not retry on each unchanged poll. A new observation can retry a read invalidated by completion or another cursor change. At the cap, further inspection remains explicitly available; a new client or daemon/project scope resets the budget.
  • No run, no loaded index, loading, ready, empty, filtered, failure and cached-unverified states remain distinct. Explicit Inspect/refresh can retry a failed automatic load.
  • Existing caches remain bounded: persistent indexes (eight per project, each at most 4,096 rows / 2 MiB), memory-only reusable details (default 64 entries / 4 MiB), and the eight-detail publication window. The maximum warm-up of five fits in that window without resizing it. Other reads can displace publications; a later foreground request can reuse the daemon's memory cache. One timing detail occupies the shared client lane until its daemon operation ends. Warm-up does not add a persistent cache of rendered frames.

Real-run evidence

Before default detail warm-up, retained run a02325d9895a428aa7b90734314e4e4a was verified in index-only mode through a private daemon/client using the installed provider and real report source:

  • 1,021 index rows: 1,020 timing paths and one input-reference row.
  • Exactly one provider index read, zero detail reads during hidden warm-up.
  • Overview stayed active; workspace/context/pin registry remained unchanged.
  • Switching to Timing and viewing provenance issued no additional index/detail reads.
  • Display showed 0.125 ns, shortened a023…4e4a, equal-width columns and the built-in four-tab order.

Observed wait for hidden publication was 8.03 seconds. Switch command plus capture took 2.18 seconds including deliberate PTY interaction delays; this is not a rendering benchmark. Earlier cold provider measurements were approximately 7.5 seconds for an index and 7.6 seconds for a detail, which is why detail preloading remains bounded and lazy. No physical EDA run was performed.

The saved Explicit-only workspace was also checked against retained run 193b02d362b1495a854eeae42f79b6a8 in a read-only project sandbox. Starting on Overview left the Timing index cold; switching to Timing issued one summary load and one non-refresh read for the exact analysis digest, and no detail reads. Starting with Timing already restored produced the same read counts.

Verification and receipts

  • Visible-demand verification: 24 Timing-focused inline tests, navigation hydration restart, the 22-check synthetic Timing PTY suite, and the read-only retained-run PTY above.
  • For the earlier presentation/preload release, full Workbench dune build -j 1 @all @lint and dune runtest -j 1 passed.
  • Changed OCaml files pass the configured formatter; git diff --check passes. Unrelated global waveform/hydration formatting baseline remains separate.
  • Presentation tests cover precision 0–9, negative near-zero, exact sort values, compression/full text, schema migration/restart, semantic ANSI roles and narrow layouts.
  • Built-in navigation, repeated source replacement, pin conflicts, explicit separate/ close and legacy Signoff acceptance: /tmp/opencode/b-navigation-wb069-verified/, /tmp/opencode/b-navigation-executable/, /tmp/opencode/b-navigation-a023/.
  • Default-on warm-up acceptance, 20 assertions plus screenshots: /tmp/opencode/c-preload-native-final/.
  • Explicit-only legacy regression: /tmp/opencode/c-preload-legacy-explicit-only/.
  • Actual source warm-up and presentation: /tmp/opencode/c-preload-actual-a023-measured/, with actual-hidden-overview.svg, actual-ready-table-session.svg and actual-full-provenance.svg.
  • Synthetic Testing/flow regressions passed. Full embedded-waveform acceptance was blocked by missing pre-reboot retained FIFO VCD fixtures; its changed startup/ navigation assertions passed with deterministic replay.

After server crashes, recovery preserved partial work and reduced verification from six jobs to two, then one job at a time, with numerical worker limits of one. Interrupted checks were not counted as passed. No repository staging, commits or pushes were performed.

Updated retained example

The saved tab-order migration used an owned short-lived daemon after confirming no production daemon remained running after reboot. It applied only revision-checked reorders, then shut down its own process. Saved revision advanced 179 → 182. The legacy saved preset references automatically use the new client’s stock layout; no geometry reset was necessary.

Receipts under hardcaml_asic_example/.dev/workbench-real-demo/receipts/:

  • timing-tab-order-8c502a0922b54e95a98d8bd3b76db8c9/: original workspace-file backup, protocol before/after and preservation checks.
  • refresh-binaries-986bfa8c3947499699d5ff3d5af9cc04/: refreshed daemon, client and preset exporter, previous copies and exact hashes.

Start the daemon and client with the existing demo commands. Both binaries changed for this increment; use the refreshed pair. No reseeding or provider installation is needed. In Overview, select the completed run and allow index preparation, then switch to the built-in Timing tab.