Chick Markley

Results 147 comments of Chick Markley

@grebe @shunshou I'm trying to test SignBit with the following ```scala class SignBitTester(c: SignBit[UInt]) extends DspTester(c) { poke(c.io.uIn, 0) expect(c.io.uOut, 0.0) } class SignBit[TU

@shunshou also Numbers.md says the following, is that right > a.signBit > 1 if a is zero or positive; 0 if a is negative

I'll change the spec with my next commit of more tests

So what is the right way to specify type parameters so one can apply signBit to an instance of the a parameter that could be UInt SInt, FixedPoint or DspReal

@shunshou Numbers section on div2 what does ```UInt: Consistent with a >> n (i.e. rounds 1/2 to 0)``` mean. How can UInt be 1/2

I've fiddled with it a bit this weekend, I have not solved. I'll work on it more tonight and tomorrow and hopefully by the end of hacking tomorrow, we can...

I agree this is a big problem.

@shunshou Thanks I'll work my way through these

@shunshou seems to me that UInt ring stuff should error on subtraction. Firrtl Spec says that ```UInt - UInt => SInt``` but Ring says minus returns UInt. So following, where...

@shunshou @grebe Something like this then? ```scala override def minus(f: UInt, g: UInt): UInt = { val diff = context.overflowType match { case Grow => f.asSInt -& g.asSInt case Wrap...