Repository navigation
feat(cli): run SystemVerilog and Veryl native testbenches - #1564
Merged
Conversation
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
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Contributor
Author
|
This pull request is part of a Mergify stack:
|
Contributor
Merge Queue Status
This pull request spent 54 minutes 57 seconds in the queue, including 53 minutes 4 seconds running CI. Required conditions to merge
|
40 of 71 tasks
mergify
Bot
deleted the
stack/tignear/feat/native-testbench-cli/run-systemverilog-veryl-native-testbenches--b0d36d52
branch
October 19, 2026 19:38
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add
celox run SOURCE... --top TOPto 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:
The cocotb-dependent end-to-end test retains its existing ignored status; this change exercises direct HDL execution and the ordinary VPI regression tests.