Consts that `inferWidth` to 0-width generate SystemVerilog with 0-width
- Dominant language
- Dart
- Stars
- 489
- Forks
- 88
- Avg merge
- 3d 23h
- Merged PRs (30d)
- 10
Description
### Describe the bug
For example, when shifting by an integer (e.g. `<< 0`), it can generate code in SV like `<< 0'h0`, which is not valid SystemVerilog.
### To Reproduce
_No response_
### Expected behavior
A couple of things:
- When shifting by 0, just don't do anything. This probably folds into part of https://github.com/intel/rohd/issues/429
- When generating SV of a 0-width constant, make it 1-bit instead.
### Actual behavior
`0'h0` illegal SV
### Additional: Dart SDK info
_No response_
### Additional: pubspec.yaml
_No response_
### Additional: Context
Related issues:
https://github.com/intel/rohd/issues/57
https://github.com/intel/rohd-cosim/issues/9
https://github.com/intel/rohd/issues/429
https://github.com/intel/rohd/issues/111
Contributor guide
Assessment
This issue has not been assessed yet.