Skip to content

feat(sim): expose four-state reads in timed simulations - #1454

Merged
mergify[bot] merged 1 commit into
masterfrom
stack/tignear/feat/timed-simulation-backends/expose-four-state-reads-timed-simulations--30b4e36e
Oct 18, 2026
Merged

mergify[bot] merged 1 commit into
masterfrom
stack/tignear/feat/timed-simulation-backends/expose-four-state-reads-timed-simulations--30b4e36e

Conversation

@tignear

@tignear tignear commented Oct 18, 2026

Copy link
Copy Markdown
Contributor

Add Simulation::get_four_state with the same value/mask representation and
lazy combinational evaluation as Simulator::get_four_state. Synchronize
finish requests raised during a read, as Simulation::get already does.
Use the API in the timed SV test adapter and cover wide X/Z masks, known
values, two-state mode, simulation time, and reads after finish.

The two SV cases mentioned in #1446 still require procedural timing controls
in the SV frontend (#88). They remain excluded for that independent reason;
remove the obsolete four-state-read reason.

Validation:

  • cargo fmt --all -- --check
  • cargo test --locked -p celox --features systemverilog --lib simulation:: (49 passed)
  • cargo test --locked -p celox --features systemverilog --test systemverilog timing:: (2 passed; existing exclusions retained)
  • cargo clippy --locked -p celox --features systemverilog --lib --test systemverilog -- -D warnings
  • Both referenced SV cases were also run explicitly: each fails at the existing frontend timing-control restriction (Roadmap: Verilog/SystemVerilog frontend #88).

Refs #1446

Add Simulation::get_four_state with the same value/mask representation and
lazy combinational evaluation as Simulator::get_four_state. Synchronize
finish requests raised during a read, as Simulation::get already does.
Use the API in the timed SV test adapter and cover wide X/Z masks, known
values, two-state mode, simulation time, and reads after finish.

The two SV cases mentioned in #1446 still require procedural timing controls
in the SV frontend (#88). They remain excluded for that independent reason;
remove the obsolete four-state-read reason.

Validation:
- cargo fmt --all -- --check
- cargo test --locked -p celox --features systemverilog --lib simulation:: (49 passed)
- cargo test --locked -p celox --features systemverilog --test systemverilog timing:: (2 passed; existing exclusions retained)
- cargo clippy --locked -p celox --features systemverilog --lib --test systemverilog -- -D warnings
- Both referenced SV cases were also run explicitly: each fails at the existing frontend timing-control restriction (#88).

Refs #1446

Change-Id: I30b4e36ebecb85ca685c32f8c6e68f9fe0a934df
@tignear

tignear commented Oct 18, 2026

Copy link
Copy Markdown
Contributor Author

This pull request is part of a Mergify stack:

# Pull Request Link
1 feat(sim): expose four-state reads in timed simulations #1454 👈
2 feat(sim): build timed simulations on explicit backends #1455

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 18, 2026 •

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 ✅ Completed 2026-10-18T00:13:33.960946Z 7505c44 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.

@mergify

mergify Bot commented Oct 18, 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 18, 2026
@mergify mergify Bot added the queued Mergify queue entry label Oct 18, 2026
@mergify

mergify Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

Merge Queue Status

This pull request spent 25 minutes 7 seconds in the queue, including 23 minutes 21 seconds running CI.

Required conditions to merge
  • check-success = Conventional Commit title
  • check-success = Queue validation
  • depends-on=celox-sim/celox#1454 [⛓️ feat(sim): expose four-state reads in timed simulations #1454 [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 2292a37 into master Oct 18, 2026
29 checks passed
@mergify
mergify Bot deleted the stack/tignear/feat/timed-simulation-backends/expose-four-state-reads-timed-simulations--30b4e36e branch October 18, 2026 01:19
@mergify mergify Bot removed the queued Mergify queue entry label Oct 18, 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