1
0

Merge branch 'master' into configdoc

This commit is contained in:
Henry Cook 2017-02-09 10:09:30 -08:00 committed by GitHub
commit fc7838ff7b

View File

@ -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 {