Skip to content

feat(cli): run SystemVerilog and Veryl native testbenches - #1564

Merged
mergify[bot] merged 1 commit into
masterfrom
stack/tignear/feat/native-testbench-cli/run-systemverilog-veryl-native-testbenches--b0d36d52
Oct 19, 2026
Merged

mergify[bot] merged 1 commit into
masterfrom
stack/tignear/feat/native-testbench-cli/run-systemverilog-veryl-native-testbenches--b0d36d52

Conversation

@tignear

@tignear tignear commented Oct 19, 2026

Copy link
Copy Markdown
Contributor

Add celox run SOURCE... --top TOP to execute HDL testbenches directly without a cocotb harness. Accept ordered .sv/.v sources or one Veryl project entry file, discover Veryl project sources and dependencies, and use the existing simulator and native testbench APIs.

Forward HDL output, return failure for assertions and runtime errors, and expose the existing O0/O1/O2 optimization settings plus a scheduler-step/Veryl-tick limit. Report SV $stop as an error because the command has no interactive debugger. Preserve the optional systemverilog feature and explain how to enable it in builds without SV support.

Document both languages in the English and Japanese CLI guides and cover the command boundary with integration tests, including delayed SV execution, execution limits, project discovery, relative paths, feature selection and failure exit codes. Compiler lowering, state-machine construction and optimizer implementation are unchanged.

Validation:

  • cargo test --locked -p celox-vpi --test run_cli --bin celox
  • cargo test --locked -p celox-vpi --features systemverilog
  • cargo clippy --locked -p celox-vpi --all-targets -- -D warnings
  • cargo clippy --locked -p celox-vpi --all-targets --features systemverilog -- -D warnings
  • cargo fmt --all -- --check
  • pnpm run lint

The cocotb-dependent end-to-end test retains its existing ignored status; this change exercises direct HDL execution and the ordinary VPI regression tests.

Add `celox run SOURCE... --top TOP` to execute HDL testbenches directly without a cocotb harness. Accept ordered .sv/.v sources or one Veryl project entry file, discover Veryl project sources and dependencies, and use the existing simulator and native testbench APIs.

Forward HDL output, return failure for assertions and runtime errors, and expose the existing O0/O1/O2 optimization settings plus a scheduler-step/Veryl-tick limit. Report SV $stop as an error because the command has no interactive debugger. Preserve the optional systemverilog feature and explain how to enable it in builds without SV support.

Document both languages in the English and Japanese CLI guides and cover the command boundary with integration tests, including delayed SV execution, execution limits, project discovery, relative paths, feature selection and failure exit codes. Compiler lowering, state-machine construction and optimizer implementation are unchanged.

Validation:
- cargo test --locked -p celox-vpi --test run_cli --bin celox
- cargo test --locked -p celox-vpi --features systemverilog
- cargo clippy --locked -p celox-vpi --all-targets -- -D warnings
- cargo clippy --locked -p celox-vpi --all-targets --features systemverilog -- -D warnings
- cargo fmt --all -- --check
- pnpm run lint

The cocotb-dependent end-to-end test retains its existing ignored status; this change exercises direct HDL execution and the ordinary VPI regression tests.

Change-Id: Ib0d36d52483be3404f2e7ac72cfd8c89dc9fc21f
@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-19T18:27:00.360785Z d528a23 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 added the merge-ready Request merging through Mergify after required checks label Oct 19, 2026
@tignear

tignear commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor Author

This pull request is part of a Mergify stack:

# Pull Request Link
1 feat(cli): run SystemVerilog and Veryl native testbenches #1564 👈
2 feat(cli): support celox.toml projects and SV file lists #1566
3 ci: run pinned upstream SystemVerilog testbench daily #1571

@mergify mergify Bot added the queued Mergify queue entry label Oct 19, 2026
@mergify

mergify Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Merge Queue Status

  • ✅ Entered queue — 2026-10-19 18:43 UTC · Rule: changes · triggered by rule Queue explicitly requested merges
  • ✅ Checks passed · on draft merge queue: checking #1564 on master (26e6a5a) #1567
  • ✅ Merged — 2026-10-19 19:38 UTC · at 65a07134f7d88ce86af33356c44e193c529c05da · merge

This pull request spent 54 minutes 57 seconds in the queue, including 53 minutes 4 seconds running CI.

Required conditions to merge
  • check-success = Conventional Commit title
  • check-success = Queue validation
  • 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-skipped = @github-actions/NAPI Build (Linux ARM64 GNU)
    • check-neutral = @github-actions/NAPI Build (Linux ARM64 GNU)
    • check-success = @github-actions/NAPI Build (Linux ARM64 GNU)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-skipped = @github-actions/NAPI Build (Windows)
    • check-neutral = @github-actions/NAPI Build (Windows)
    • check-success = @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-skipped = @github-actions/JS Test (Ubuntu)
    • check-neutral = @github-actions/JS Test (Ubuntu)
    • check-success = @github-actions/JS Test (Ubuntu)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-skipped = @github-actions/JS Test (Windows)
    • check-neutral = @github-actions/JS Test (Windows)
    • check-success = @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 mentioned this pull request Oct 19, 2026
40 of 71 tasks
@mergify
mergify Bot merged commit 65a0713 into master Oct 19, 2026
29 checks passed
@mergify
mergify Bot deleted the stack/tignear/feat/native-testbench-cli/run-systemverilog-veryl-native-testbenches--b0d36d52 branch October 19, 2026 19:38
@mergify mergify Bot removed the queued Mergify queue entry label Oct 19, 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