Skip to content

feat(sv)!: support integral formatted input - #1663

Merged
mergify[bot] merged 1 commit into
masterfrom
stack/tignear/feat/svtf-runtime-extensions/support-integral-formatted-input--31d742e8
Oct 21, 2026
Merged

mergify[bot] merged 1 commit into
masterfrom
stack/tignear/feat/svtf-runtime-extensions/support-integral-formatted-input--31d742e8

Conversation

@tignear

@tignear tignear commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Add $sscanf and $fscanf with integral numeric and character conversions, numeric field widths, assignment suppression and literal matching. Unmatched outputs retain their values and destination selectors are evaluated once. Both functions require timed Simulation; pure $sscanf supports checkpoints, while $fscanf rejects them even for standard input.

Dynamic strings, string outputs, real conversions and %t remain unsupported.

Validation: scanner API (8 tests), shared backend variants (15 tests), scanner/runtime and host-request encoding tests. Icarus passed 3 shared cases; Verilator passed 2 with one existing four-state adapter restriction. Formatting and integrated all-target Clippy passed.

BREAKING CHANGE: Adds variants to the public SystemFunction and HostRequestKind enums. Native images must be regenerated for container version 22.

Depends-On: #1662

@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(sv)!: support binary input and file positioning #1662
2 feat(sv)!: support integral formatted input #1663 👈
3 feat(sv)!: add Annex N integer distribution functions #1664

@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-20T23:37:51.987661Z
We couldn’t complete this review. Comment @codex review to try again.
615a9b3 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 20, 2026
@tignear
tignear force-pushed the stack/tignear/feat/svtf-runtime-extensions/support-binary-input-file-positioning--292f8ab9 branch from 1710d93 to c87501d Compare October 21, 2026 01:04
@tignear
tignear force-pushed the stack/tignear/feat/svtf-runtime-extensions/support-integral-formatted-input--31d742e8 branch from 615a9b3 to 2f54d5b Compare October 21, 2026 01:04
@tignear

tignear commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor Author

Revision history

# Type Changes Reason Date
1 initial 615a9b3 2026-10-21 01:04 UTC
2 rebase 615a9b3 → 2f54d5b (rebase only) Rebase onto the corrected file-IO sv-tests expectations; the scanner stage has no additional verdict changes. 2026-10-21 01:04 UTC
3 content 2f54d5b → 35219a2 (raw) 2026-10-21 01:55 UTC
4 content 35219a2 → 1d8fafd 2026-10-21 02:59 UTC
5 content 1d8fafd → 1f42ca3 2026-10-21 12:16 UTC

@tignear
tignear force-pushed the stack/tignear/feat/svtf-runtime-extensions/support-binary-input-file-positioning--292f8ab9 branch from c87501d to e2eb26a Compare October 21, 2026 01:55
@tignear
tignear force-pushed the stack/tignear/feat/svtf-runtime-extensions/support-integral-formatted-input--31d742e8 branch from 2f54d5b to 35219a2 Compare October 21, 2026 01:55
@tignear
tignear force-pushed the stack/tignear/feat/svtf-runtime-extensions/support-binary-input-file-positioning--292f8ab9 branch from e2eb26a to 5aa4ad3 Compare October 21, 2026 03:00
@tignear
tignear force-pushed the stack/tignear/feat/svtf-runtime-extensions/support-integral-formatted-input--31d742e8 branch from 35219a2 to 1d8fafd Compare October 21, 2026 03:00
@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 04:15 UTC · Rule: changes · triggered by rule Queue explicitly requested merges
  • 🚫 Left the queue — 2026-10-21 04:54 UTC · at 1d8fafdac077034c256bf0466c47939c30408dfe

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

Reason

Pull request #1663 has been dequeued

Queue conditions are not satisfied:

Hint

You should look at the reason for the failure and decide if the pull request needs to be fixed or if you want to requeue it.
If you do update this pull request, it will automatically be requeued once the queue conditions match again.
If you think this was a flaky issue instead, you can requeue the pull request, without updating it, by posting a @mergifyio queue comment.

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

@mergify mergify Bot added dequeued Mergify stopped this queue entry; investigate before retrying and removed queued Mergify queue entry labels Oct 21, 2026
Add `$sscanf` and `$fscanf` with integral numeric and character conversions, numeric field widths, assignment suppression and literal matching. Unmatched outputs retain their values and destination selectors are evaluated once. Both functions require timed `Simulation`; pure `$sscanf` supports checkpoints, while `$fscanf` rejects them even for standard input.

Dynamic strings, string outputs, real conversions and `%t` remain unsupported.

Validation: scanner API (8 tests), shared backend variants (15 tests), scanner/runtime and host-request encoding tests. Icarus passed 3 shared cases; Verilator passed 2 with one existing four-state adapter restriction. Formatting and integrated all-target Clippy passed.

BREAKING CHANGE: Adds variants to the public SystemFunction and HostRequestKind enums. Native images must be regenerated for container version 22.

Change-Id: I31d742e86892a979389fe667a7715acf0fbc44ee
@tignear
tignear force-pushed the stack/tignear/feat/svtf-runtime-extensions/support-binary-input-file-positioning--292f8ab9 branch from 5aa4ad3 to 919d7a1 Compare October 21, 2026 12:16
@tignear
tignear force-pushed the stack/tignear/feat/svtf-runtime-extensions/support-integral-formatted-input--31d742e8 branch from 1d8fafd to 1f42ca3 Compare October 21, 2026 12:16
@mergify mergify Bot added queued Mergify queue entry and removed dequeued Mergify stopped this queue entry; investigate before retrying labels Oct 21, 2026
@mergify

mergify Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Merge Queue Status

This pull request spent 3 hours 27 seconds in the queue, including 1 hour 26 minutes 23 seconds running CI.

Required conditions to merge

Base automatically changed from stack/tignear/feat/svtf-runtime-extensions/support-binary-input-file-positioning--292f8ab9 to master October 21, 2026 16:44
@mergify
mergify Bot merged commit 219e4e5 into master Oct 21, 2026
37 of 58 checks passed
@mergify
mergify Bot deleted the stack/tignear/feat/svtf-runtime-extensions/support-integral-formatted-input--31d742e8 branch October 21, 2026 16:50
@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