Merge branch 'master' into configdoc
This commit is contained in:
commit
fc7838ff7b
@ -89,7 +89,7 @@ object Str
|
||||
def apply(x: SInt): UInt = apply(x, 10)
|
||||
def apply(x: SInt, radix: Int): UInt = {
|
||||
val neg = x < SInt(0)
|
||||
val abs = x.abs
|
||||
val abs = x.abs.asUInt
|
||||
if (radix != 10) {
|
||||
Cat(Mux(neg, Str('-'), Str(' ')), Str(abs, radix))
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user