Skip to content

feat(cli): configure SV simulation timescales - #1672

Merged
mergify[bot] merged 1 commit into
masterfrom
stack/tignear/fix/taxi-compatibility/configure-sv-simulation-timescales--6e723be1
Oct 21, 2026
Merged

mergify[bot] merged 1 commit into
masterfrom
stack/tignear/fix/taxi-compatibility/configure-sv-simulation-timescales--6e723be1

Conversation

@tignear

@tignear tignear commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Taxi's BASE-R gearbox tests request 1ns/1fs, but the CLI had no way to pass that setting to compilation. Their 6.206206ns cocotb clocks failed with the source modules' 1ps simulation resolution.

Add --timescale UNIT/PRECISION to run and vpi build, with matching root and target settings in celox.toml and a validated Rust builder option. The selected precision contributes to global scheduler resolution. Preserve explicit source units and delay rounding, finer source precision, and the separate mixed_timescale diagnostic policy. Keep 1ns/1ps when no option is supplied.

Validation:

  • 17 project CLI tests, including precedence, invalid values, run, and attached-image precision.
  • 6 timing API tests across interpreter, Cranelift, native and WASM, plus mixed-language interface probes; 11 diagnostic-policy tests.
  • SV analyzer: 762 passed, 3 existing ignores; shared SV suite: 3242 passed, 90 existing ignores.
  • cocotb 2.1: all 5 integration tests passed; the new femtosecond-clock test also passed with 2.0.1.
  • Taxi cc70b270b910d369ab1ad7b3855e76399fd461f1: 20 BASE-R cases passed at O1 with gearbox configurations 1/2 and USXGMII disabled; 220 other cases were filtered out. Original sources, parameters, and clock periods were retained.
  • Formatting, affected-crate all-target Clippy, and celox without default features passed.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-10-21T01:18:37.487304Z
We couldn’t complete this review. Comment @codex review to try again.
d1d3045 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@tignear

tignear commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor Author

This pull request is part of a Mergify stack:

# Pull Request Link
1 feat(cli): configure SV simulation timescales #1672 👈
2 fix(sv): fill unbased parameter overrides to their declared width #1677
3 fix(sv): defer indexed part-select base binding until types are available #1678
4 fix(sv): preserve inherited constants in parameter alias evaluation #1682

@tignear tignear added the merge-ready Request merging through Mergify after required checks label Oct 21, 2026
@mergify mergify Bot added the queued Mergify queue entry label Oct 21, 2026
@mergify

mergify Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Merge Queue Status

  • ✅ Entered queue — 2026-10-21 02:08 UTC · Rule: changes · triggered by rule Queue explicitly requested merges
  • 🚫 Left the queue — 2026-10-21 02:40 UTC · at d1d30454be2654cad711e435c6bd3dd6a9901d2b

This pull request spent 31 minutes 49 seconds in the queue, with no time running CI.

Reason

The pull request conflicts with the base branch

The pull request was held in the queue, conflicting with at least one of 3 pull requests ahead of it. The conflict became a base branch one after #1661, #1668, #1669 merged.

Automatic conflict resolution can merge a conflict like this one instead of stopping on it, but only in a queue using the merge-batch or fast-forward merge method.

Hint

You should update or rebase your pull request.

If you want to requeue this pull request, you can post a @mergifyio queue comment.

Requeued — the merge queue status continues in this comment ↓.

Base automatically changed from stack/tignear/fix/taxi-compatibility/reuse-constants-expression-contexts-match--2bdbf133 to master October 21, 2026 02:40
@mergify mergify Bot added dequeued Mergify stopped this queue entry; investigate before retrying and removed queued Mergify queue entry labels Oct 21, 2026
Taxi's BASE-R gearbox tests request 1ns/1fs, but the CLI had no way to pass that setting to compilation. Their 6.206206ns cocotb clocks failed with the source modules' 1ps simulation resolution.

Add --timescale UNIT/PRECISION to run and vpi build, with matching root and target settings in celox.toml and a validated Rust builder option. The selected precision contributes to global scheduler resolution. Preserve explicit source units and delay rounding, finer source precision, and the separate mixed_timescale diagnostic policy. Keep 1ns/1ps when no option is supplied.

Validation:
- 17 project CLI tests, including precedence, invalid values, run, and attached-image precision.
- 6 timing API tests across interpreter, Cranelift, native and WASM, plus mixed-language interface probes; 11 diagnostic-policy tests.
- SV analyzer: 762 passed, 3 existing ignores; shared SV suite: 3242 passed, 90 existing ignores.
- cocotb 2.1: all 5 integration tests passed; the new femtosecond-clock test also passed with 2.0.1.
- Taxi cc70b270b910d369ab1ad7b3855e76399fd461f1: 20 BASE-R cases passed at O1 with gearbox configurations 1/2 and USXGMII disabled; 220 other cases were filtered out. Original sources, parameters, and clock periods were retained.
- Formatting, affected-crate all-target Clippy, and celox without default features passed.

Change-Id: I6e723be119270564f5b71b08a7b83744d7eadba9
@tignear
tignear force-pushed the stack/tignear/fix/taxi-compatibility/configure-sv-simulation-timescales--6e723be1 branch from d1d3045 to f27f368 Compare October 21, 2026 03:01
@tignear

tignear commented Oct 21, 2026

Copy link
Copy Markdown
Contributor Author

Revision history

# Type Changes Reason Date
1 initial d1d3045 2026-10-21 03:00 UTC
2 content d1d3045 → f27f368 Resolve PR #1672 conflict with master namespace validation from #1621 while preserving the full timescale analysis options. 2026-10-21 03:00 UTC

@mergify

mergify Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Merge Queue Status

This pull request spent 59 minutes 45 seconds in the queue, including 58 minutes 4 seconds running CI.

Required conditions to merge
  • check-success = Conventional Commit title
  • check-success = Queue validation
  • depends-on=celox-sim/celox#1672 [⛓️ feat(cli): configure SV simulation timescales #1672 [stack]]
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/Lint & Format
    • check-neutral = @github-actions/Lint & Format
    • check-skipped = @github-actions/Lint & Format
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/NAPI Build (Linux ARM64 GNU)
    • check-neutral = @github-actions/NAPI Build (Linux ARM64 GNU)
    • check-skipped = @github-actions/NAPI Build (Linux ARM64 GNU)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/NAPI Build (Windows)
    • check-neutral = @github-actions/NAPI Build (Windows)
    • check-skipped = @github-actions/NAPI Build (Windows)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/Rust Test & NAPI Build
    • check-neutral = @github-actions/Rust Test & NAPI Build
    • check-skipped = @github-actions/Rust Test & NAPI Build
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/JS Test (Ubuntu)
    • check-neutral = @github-actions/JS Test (Ubuntu)
    • check-skipped = @github-actions/JS Test (Ubuntu)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/JS Test (Windows)
    • check-neutral = @github-actions/JS Test (Windows)
    • check-skipped = @github-actions/JS Test (Windows)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/Conventional Commit title
    • check-neutral = @github-actions/Conventional Commit title
    • check-skipped = @github-actions/Conventional Commit title

@mergify
mergify Bot merged commit f890c3a into master Oct 21, 2026
31 checks passed
@mergify
mergify Bot deleted the stack/tignear/fix/taxi-compatibility/configure-sv-simulation-timescales--6e723be1 branch October 21, 2026 05:01
@mergify mergify Bot removed the queued Mergify queue entry label Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-ready Request merging through Mergify after required checks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant