Skip to content

[Moore][ImportVerilog] Add %c format to FormatString pipeline#10580

Open
VecoMr wants to merge 1 commit into
llvm:mainfrom
VecoMr:import-verilog-string-format-c
Open

[Moore][ImportVerilog] Add %c format to FormatString pipeline#10580
VecoMr wants to merge 1 commit into
llvm:mainfrom
VecoMr:import-verilog-string-format-c

Conversation

@VecoMr
Copy link
Copy Markdown
Contributor

@VecoMr VecoMr commented Jun 3, 2026

  • Add Moore op moore.fmt.char, which corresponds to the %c format specifier.
  • Lower it to sim.fmt.char.
  • Add some tests in builtins.sv.

- Add `moore.fmt.char` Moore Op who corresponds to the %c format specifier.
- Lower it to `sim.fmt.char`.
- Add some tests in `builtins.sv`.

Signed-off-by: adouard <alexandre.douard@ens-lyon.fr>
@circt-bot
Copy link
Copy Markdown

circt-bot Bot commented Jun 3, 2026

Results of circt-tests run for f405034 compared to results for efb3b9c:

sv-tests

Changes in emitted diagnostics:

  • -6 total change
  • -8 error: unsupported format specifier `%c`
  • +1 error: unsupported format specifier `%v`
  • +1 error: unsupported system call `$fscanf`

Copy link
Copy Markdown
Contributor

@fzi-hielscher fzi-hielscher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
Could you also add a test for the MooreToCore conversion?

Copy link
Copy Markdown
Contributor

@fabianschuiki fabianschuiki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 💯, modulo @fzi-hielscher's comment on adding a conversion test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants