chipsalliance / chipsalliance/chisel

Make "dead".S work to generate a signed number

Open
#3,100 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Scala
Stars
4.8k
Forks
658
Avg merge
18h 59m
Merged PRs (30d)
14

Description

**Type of issue**: Feature Request

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

There is "hdead".U. You can't do "hdead".S . And it's hard to do "hdead".U.asSInt because you can't do the latter outside of a Module, you are forced to do 57005.S

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

Is BigInt("dead", 16).S equivalent/an acceptable alternative.

**Additional context**
Include detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. Stack Overflow, gitter, [Scastie](https://scastie.scala-lang.org/KtzZQ3nFTea9KoNh0tRqtg).

**What is the use case for implementing this feature?**

Annoying to have to write numbers in decimal when hex is more natural, making .S similar to .U

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.