llvm / llvm/circt

[ExportVerilog] Should emit unsigned/signed for IntegerTypes which are not signless

Open
#469 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
2.2k
Forks
524
Avg merge
3d 2h
Merged PRs (30d)
46

Description

While the RTL dialect has no notion of signs, this is not the only source of IntegerTypes for the SV dialect. If a dialect wants to print signed or unsigned integers (e.g. `wire signed [7:0] signed8BitInt`), there is currently no way to do that. I think it's fair to emit the SystemVerilog keywords `signed` and `unsigned` in module ports and wire/reg declarations for IntegerTypes which are not signless.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the ExportVerilog entry point and the code that prints IntegerTypes in module ports and wire/reg declarations. Confirm how non-signless types are represented and define completion as emitting signed or unsigned in those declarations; the issue names no test file.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
compilers
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.