Skip to content

feat(cli): configure SV parameter literals and simulation state modes - #1646

Merged
mergify[bot] merged 1 commit into
masterfrom
stack/tignear/fix/taxi-compatibility/configure-sv-param-literals-simulation-state-modes--349bbcdc
Oct 21, 2026
Merged

mergify[bot] merged 1 commit into
masterfrom
stack/tignear/fix/taxi-compatibility/configure-sv-param-literals-simulation-state-modes--349bbcdc

Conversation

@tignear

@tignear tignear commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Allow CLI and project parameter overrides to preserve signed values, packed
strings, explicit widths, unbased fills and X/Z bits. Add the corresponding
SimulatorBuilder::param_literal API; numeric overrides keep their existing
API and last-value-wins behavior. Reject SV literals for Veryl inputs.

Add --two-state/--four-state and four_state in project and target settings,
with project < target < CLI precedence. Use two-state simulation as the
default. Serialize the selected mode into native executables and normalize
VPI X/Z deposits and forces using the effective runtime mode.

This lets Taxi's APB-to-AXI-Lite and AXI-to-AXI-Lite adapter tests use the
same two-state condition as their upstream Verilator runs. The original
8-bit configurations pass all 12 cocotb tests each at O1; the AXI adapter
run takes about 419 seconds. Other remaining Taxi failures are not hidden
by this setting.

Validation: O2 literal-parameter API regressions across backends; all
project CLI tests, including merge precedence, native image round trips
and Veryl input rejection; VPI deposits/forces and package tests;
affected-crate Clippy and formatting. Also check celox without default
features to preserve builds without SystemVerilog support.

@tignear

tignear commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor Author

This pull request is part of a Mergify stack:

# Pull Request Link
1 feat(cli): configure SV parameter literals and simulation state modes #1646 👈
2 fix(sv): preserve Taxi aggregates and sparse FF memories #1659
3 fix(vpi): expose unpacked arrays through lazy element handles #1660
4 fix(cli): reject empty cocotb test selections #1661
5 perf(vpi): avoid metadata cloning during value access #1668
6 perf(sv): reuse constants when expression contexts match #1669
7 feat(cli): configure SV simulation timescales #1672

@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-20T20:41:52.548882Z
We couldn’t complete this review. Comment @codex review to try again.
28be65a 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.

@mergify

mergify Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

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

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

mergify Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Merge Queue Status

  • ✅ Entered queue — 2026-10-20 22:16 UTC · Rule: changes · triggered by rule Queue explicitly requested merges
  • 🚫 Left the queue — 2026-10-20 22:17 UTC · at 28be65a1037f54e9576e43c4c784fa21fb54ce23

This pull request spent 1 minute 27 seconds in the queue, with no time running CI.

Reason

The pull request conflicts with the base branch

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/resolve-taxi-elaboration-cocotb-visibility--cccf0dca to master October 20, 2026 22:17
@mergify mergify Bot added dequeued Mergify stopped this queue entry; investigate before retrying and removed queued Mergify queue entry labels Oct 20, 2026
Allow CLI and project parameter overrides to preserve signed values, packed
strings, explicit widths, unbased fills and X/Z bits. Add the corresponding
SimulatorBuilder::param_literal API; numeric overrides keep their existing
API and last-value-wins behavior. Reject SV literals for Veryl inputs.

Add --two-state/--four-state and four_state in project and target settings,
with project < target < CLI precedence. Use two-state simulation as the
default. Serialize the selected mode into native executables and normalize
VPI X/Z deposits and forces using the effective runtime mode.

This lets Taxi's APB-to-AXI-Lite and AXI-to-AXI-Lite adapter tests use the
same two-state condition as their upstream Verilator runs. The original
8-bit configurations pass all 12 cocotb tests each at O1; the AXI adapter
run takes about 419 seconds. Other remaining Taxi failures are not hidden
by this setting.

Validation: O2 literal-parameter API regressions across backends; all
project CLI tests, including merge precedence, native image round trips
and Veryl input rejection; VPI deposits/forces and package tests;
affected-crate Clippy and formatting. Also check celox without default
features to preserve builds without SystemVerilog support.

Change-Id: I349bbcdce9d4747dcac4c19b985b5a29622022b3
@tignear
tignear force-pushed the stack/tignear/fix/taxi-compatibility/configure-sv-param-literals-simulation-state-modes--349bbcdc branch from 28be65a to 96e0a9e Compare October 20, 2026 23:31
@tignear

tignear commented Oct 20, 2026

Copy link
Copy Markdown
Contributor Author

Revision history

# Type Changes Reason Date
1 initial 28be65a 2026-10-20 23:30 UTC
2 content 28be65a → 96e0a9e Correct the PR description to the implemented two-state default and add its CLI/native-image regression. 2026-10-20 23:30 UTC

@mergify mergify Bot removed the dequeued Mergify stopped this queue entry; investigate before retrying label Oct 20, 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

This pull request spent 1 hour 16 minutes 39 seconds in the queue, including 55 minutes 52 seconds running CI.

Required conditions to merge
  • check-success = Conventional Commit title
  • check-success = Queue validation
  • any of [⛓️ feat(sv): support unconstrained scope randomization #1640]:
  • 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 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