package numbers
- Alphabetic
- By Inheritance
- numbers
- RingSyntax
- RigSyntax
- RngSyntax
- AdditiveGroupSyntax
- AdditiveMonoidSyntax
- SemiringSyntax
- MultiplicativeSemigroupSyntax
- AdditiveSemigroupSyntax
- AllImpl
- DspComplexImpl
- DspRealImpl
- FixedPointImpl
- IntervalImpl
- SIntImpl
- UIntImpl
- AllSyntax
- ContextualRingSyntax
- BinaryRepresentationSyntax
- ChiselConvertableFromSyntax
- ConvertableToSyntax
- IsIntegerSyntax
- IsRealSyntax
- SignedSyntax
- OrderSyntax
- PartialOrderSyntax
- EqSyntax
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- type AdditiveGroup[T] = algebra.ring.AdditiveGroup[T]
- trait AllImpl extends UIntImpl with SIntImpl with IntervalImpl with FixedPointImpl with DspRealImpl with DspComplexImpl
- trait AllSyntax extends EqSyntax with PartialOrderSyntax with OrderSyntax with SignedSyntax with IsRealSyntax with IsIntegerSyntax with ConvertableToSyntax with ChiselConvertableFromSyntax with BinaryRepresentationSyntax with ContextualRingSyntax
- class BBFACos extends BlackboxOneOperand
- class BBFACosh extends BlackboxOneOperand
- class BBFASin extends BlackboxOneOperand
- class BBFASinh extends BlackboxOneOperand
- class BBFATan extends BlackboxOneOperand
- class BBFATan2 extends BlackboxTwoOperand
- class BBFATanh extends BlackboxOneOperand
- class BBFAdd extends BlackboxTwoOperand
- class BBFCeil extends BlackboxOneOperand
- class BBFCos extends BlackboxOneOperand
- class BBFCosh extends BlackboxOneOperand
- class BBFDivide extends BlackboxTwoOperand
- class BBFEquals extends BlackboxTwoOperandBool
- class BBFExp extends BlackboxOneOperand
- class BBFFloor extends BlackboxOneOperand
- class BBFFromInt extends BlackboxOneOperand
- class BBFGreaterThan extends BlackboxTwoOperandBool
- class BBFGreaterThanEquals extends BlackboxTwoOperandBool
- class BBFHypot extends BlackboxTwoOperand
- class BBFLessThan extends BlackboxTwoOperandBool
- class BBFLessThanEquals extends BlackboxTwoOperandBool
-
class
BBFLn extends BlackboxOneOperand
Math operations from IEEE.1364-2005 *
- class BBFLog10 extends BlackboxOneOperand
- class BBFMultiply extends BlackboxTwoOperand
- class BBFNotEquals extends BlackboxTwoOperandBool
- class BBFPow extends BlackboxTwoOperand
- class BBFSin extends BlackboxOneOperand
- class BBFSinh extends BlackboxOneOperand
- class BBFSqrt extends BlackboxOneOperand
- class BBFSubtract extends BlackboxTwoOperand
- class BBFTan extends BlackboxOneOperand
- class BBFTanh extends BlackboxOneOperand
- class BBFToInt extends BlackboxOneOperand
- trait BinaryRepresentation[A <: Data] extends Any
- trait BinaryRepresentationDspReal extends BinaryRepresentation[DspReal] with hasContext
- trait BinaryRepresentationFixedPoint extends BinaryRepresentation[FixedPoint] with hasContext
- class BinaryRepresentationOps[A <: Data] extends AnyRef
- trait BinaryRepresentationSInt extends BinaryRepresentation[SInt] with hasContext
- trait BinaryRepresentationSyntax extends AnyRef
- trait BinaryRepresentationUInt extends BinaryRepresentation[UInt] with hasContext
- trait BlackBoxWithVerilog extends BlackBox with HasBlackBoxResource
- class BlackboxOneOperand extends BlackBox with BlackBoxWithVerilog
- class BlackboxTwoOperand extends BlackBox with BlackBoxWithVerilog
- class BlackboxTwoOperandBool extends BlackBox with BlackBoxWithVerilog
- type CMonoid[T] = CommutativeMonoid[T]
- trait ChiselConvertableFrom[A <: Data] extends Any
- class ChiselConvertableFromOps[A <: Data] extends AnyRef
- trait ChiselConvertableFromSyntax extends AnyRef
- class ComparisonBundle extends Bundle
- class ContextualRingOps[A <: Data] extends AnyRef
- trait ContextualRingSyntax extends AnyRef
- type ConvertableFrom[T] = spire.math.ConvertableFrom[T]
- trait ConvertableFromDspReal extends ChiselConvertableFrom[DspReal] with hasContext
- trait ConvertableFromFixedPoint extends ChiselConvertableFrom[FixedPoint] with hasContext
- trait ConvertableFromSInt extends ChiselConvertableFrom[SInt] with hasContext
- trait ConvertableFromUInt extends ChiselConvertableFrom[UInt] with hasContext
- trait ConvertableTo[A <: Data] extends spire.math.ConvertableTo[A]
- trait ConvertableToDspReal extends ConvertableTo[DspReal] with hasContext
- trait ConvertableToFixedPoint extends ConvertableTo[FixedPoint] with hasContext
- class ConvertableToOps[A <: Data] extends AnyRef
- trait ConvertableToSInt extends ConvertableTo[SInt] with hasContext
- trait ConvertableToSyntax extends AnyRef
- trait ConvertableToUInt extends ConvertableTo[UInt] with hasContext
- trait DspBlackBlackBoxImpl extends BlackBoxImplementation with ScalaBlackBox
- class DspComplex[T <: Data] extends Bundle
- class DspComplexBinaryRepresentation[T <: Data] extends BinaryRepresentation[DspComplex[T]] with hasContext
- class DspComplexEq[T <: Data] extends Eq[DspComplex[T]] with hasContext
- trait DspComplexImpl extends AnyRef
- class DspComplexRing[T <: Data] extends Ring[DspComplex[T]] with hasContext
- class DspReal extends Bundle
- class DspRealACos extends DspRealOneArgumentToDouble
- class DspRealACosh extends DspRealOneArgumentToDouble
- class DspRealASin extends DspRealOneArgumentToDouble
- class DspRealASinh extends DspRealOneArgumentToDouble
- class DspRealATan extends DspRealOneArgumentToDouble
- class DspRealATan2 extends DspRealTwoArgumentToDouble
- class DspRealATanh extends DspRealOneArgumentToDouble
- class DspRealAdd extends DspRealTwoArgumentToDouble
- class DspRealCeil extends DspRealOneArgumentToDouble
- class DspRealCos extends DspRealOneArgumentToDouble
- class DspRealCosh extends DspRealOneArgumentToDouble
- class DspRealDivide extends DspRealTwoArgumentToDouble
- class DspRealEquals extends DspRealTwoArgumentToBoolean
- class DspRealExp extends DspRealOneArgumentToDouble
- class DspRealFactory extends BlackBoxFactory
- class DspRealFloor extends DspRealOneArgumentToDouble
- class DspRealFromInt extends BlackBoxImplementation with DspBlackBlackBoxImpl
- class DspRealGreaterThan extends DspRealTwoArgumentToBoolean
- class DspRealGreaterThanEquals extends DspRealTwoArgumentToBoolean
- class DspRealHypot extends DspRealTwoArgumentToDouble
- trait DspRealImpl extends AnyRef
- trait DspRealIsReal extends IsReal[DspReal] with DspRealOrder with DspRealSigned with hasContext
- class DspRealLessThan extends DspRealTwoArgumentToBoolean
- class DspRealLessThanEquals extends DspRealTwoArgumentToBoolean
-
class
DspRealLn extends DspRealOneArgumentToDouble
Math operations from IEEE.1364-2005 *
- class DspRealLog10 extends DspRealOneArgumentToDouble
- class DspRealMultiply extends DspRealTwoArgumentToDouble
- class DspRealNotEquals extends DspRealTwoArgumentToBoolean
- abstract class DspRealOneArgumentToDouble extends BlackBoxImplementation with DspBlackBlackBoxImpl
- trait DspRealOrder extends Order[DspReal] with hasContext
- class DspRealPow extends DspRealTwoArgumentToDouble
- trait DspRealReal extends DspRealRing with DspRealIsReal with ConvertableToDspReal with ConvertableFromDspReal with BinaryRepresentationDspReal with RealBits[DspReal] with hasContext
- trait DspRealRing extends Ring[DspReal] with hasContext
- trait DspRealSigned extends Signed[DspReal] with DspRealRing with hasContext
- class DspRealSin extends DspRealOneArgumentToDouble
- class DspRealSinh extends DspRealOneArgumentToDouble
- class DspRealSqrt extends DspRealOneArgumentToDouble
- class DspRealSubtract extends DspRealTwoArgumentToDouble
- class DspRealTan extends DspRealOneArgumentToDouble
- class DspRealTanh extends DspRealOneArgumentToDouble
- class DspRealToInt extends BlackBoxImplementation with DspBlackBlackBoxImpl
- abstract class DspRealTwoArgumentToBoolean extends BlackBoxImplementation with DspBlackBlackBoxImpl
- abstract class DspRealTwoArgumentToDouble extends BlackBoxImplementation with DspBlackBlackBoxImpl
-
trait
Eq[A <: Data] extends Any
A type class used to determine equality between 2 instances of the same type.
A type class used to determine equality between 2 instances of the same type. Any 2 instances
x
andy
are equal ifeqv(x, y)
istrue
. Moreover,eqv
should form an equivalence relation. -
final
class
EqOps[A <: Data] extends AnyRef
Much of this is drawn from non/spire, but using Chisel Bools instead of Java Bools.
Much of this is drawn from non/spire, but using Chisel Bools instead of Java Bools. I suppose a more general solution would be generic in return type, but the use cases there seem obscure.
- trait EqSyntax extends AnyRef
- type Field[T] = spire.algebra.Field[T]
- trait FixedPointImpl extends AnyRef
- trait FixedPointIsReal extends IsReal[FixedPoint] with FixedPointOrder with FixedPointSigned with hasContext
- trait FixedPointOrder extends Order[FixedPoint] with hasContext
- trait FixedPointReal extends FixedPointRing with FixedPointIsReal with ConvertableToFixedPoint with ConvertableFromFixedPoint with BinaryRepresentationFixedPoint with RealBits[FixedPoint] with hasContext
-
trait
FixedPointRing extends Ring[FixedPoint] with hasContext
Defines basic math functions for FixedPoint numbers
- trait FixedPointSigned extends Signed[FixedPoint] with hasContext
-
trait
Integer[A <: Data] extends Real[A] with IsIntegral[A]
Much of this is drawn from non/spire, but using Chisel Bools instead of Java Bools.
Much of this is drawn from non/spire, but using Chisel Bools instead of Java Bools. I suppose a more general solution would be generic in return type, but the use cases there seem obscure.
- trait IntegerBits[A <: Data] extends RealBits[A] with Integer[A]
- class IsIntegerOps[A <: Data] extends AnyRef
- trait IsIntegerSyntax extends IsRealSyntax
- trait IsIntegral[A <: Data] extends IsReal[A]
-
trait
IsReal[A <: Data] extends Order[A] with Signed[A]
A simple type class for numeric types that are a subset of the reals.
- final class IsRealOps[A <: Data] extends AnyRef
- trait IsRealSyntax extends OrderSyntax with SignedSyntax
- type MultiplicativeAction[T, U] = spire.algebra.MultiplicativeAction[T, U]
- type MultiplicativeCMonoid[T] = MultiplicativeCommutativeMonoid[T]
-
trait
Order[A <: Data] extends PartialOrder[A]
The
Order
type class is used to define a total ordering on some typeA
.The
Order
type class is used to define a total ordering on some typeA
. An order is defined by a relation <=, which obeys the following laws:- either x <= y or y <= x (totality) - if x <= y and y <= x, then x == y (antisymmetry) - if x <= y and y <= z, then x <= z (transitivity)
The truth table for compare is defined as follows:
x <= y x >= y Int true true = 0 (corresponds to x == y) true false < 0 (corresponds to x < y) false true > 0 (corresponds to x > y)
By the totality law, x <= y and y <= x cannot be both false.
- final class OrderOps[A <: Data] extends AnyRef
- trait OrderSyntax extends PartialOrderSyntax
-
trait
PartialOrder[A <: Data] extends Eq[A]
The
PartialOrder
type class is used to define a partial ordering on some typeA
.The
PartialOrder
type class is used to define a partial ordering on some typeA
.A partial order is defined by a relation <=, which obeys the following laws:
- x <= x (reflexivity) - if x <= y and y <= x, then x === y (anti-symmetry) - if x <= y and y <= z, then x <= z (transitivity)
To compute both <= and >= at the same time, we use a Double number to encode the result of the comparisons x <= y and x >= y. The truth table is defined as follows:
x <= y x >= y Double true true = 0.0 (corresponds to x === y) false false = NaN (x and y cannot be compared) true false = -1.0 (corresponds to x < y) false true = 1.0 (corresponds to x > y)
- final class PartialOrderOps[A <: Data] extends AnyRef
- trait PartialOrderSyntax extends EqSyntax
- trait Real[A <: Data] extends Ring[A] with ConvertableTo[A] with IsReal[A]
- trait RealBits[A <: Data] extends Real[A] with ChiselConvertableFrom[A] with BinaryRepresentation[A]
- trait Ring[A] extends spire.algebra.Ring[A]
- trait SIntImpl extends AnyRef
- trait SIntInteger extends SIntRing with SIntIsReal with ConvertableToSInt with ConvertableFromSInt with BinaryRepresentationSInt with IntegerBits[SInt] with hasContext
- trait SIntIsReal extends IsIntegral[SInt] with SIntOrder with SIntSigned with hasContext
- trait SIntOrder extends Order[SInt] with hasContext
-
trait
SIntRing extends Ring[SInt] with hasContext
Defines basic math functions for SInt
- trait SIntSigned extends Signed[SInt] with hasContext
-
sealed
class
Sign extends Bundle
A simple ADT representing the
Sign
of an object. -
trait
Signed[A] extends Any
A trait for things that have some notion of sign and the ability to ensure something has a positive sign.
- final class SignedOps[A] extends AnyRef
- trait SignedSyntax extends AnyRef
- class TreadleDspRealFactory extends ScalaBlackBoxFactory
- trait UIntImpl extends AnyRef
- trait UIntInteger extends UIntRing with UIntIsReal with ConvertableToUInt with ConvertableFromUInt with BinaryRepresentationUInt with IntegerBits[UInt] with hasContext
- trait UIntIsReal extends IsIntegral[UInt] with UIntOrder with UIntSigned with hasContext
- trait UIntOrder extends Order[UInt] with hasContext
-
trait
UIntRing extends Ring[UInt] with hasContext
Defines basic math functions for UInt
- trait UIntSigned extends Signed[UInt] with hasContext
Value Members
- val Ceiling: RoundUp.type
- val Convergent: RoundHalfToEven.type
-
implicit
def
DspComplexBinaryRepresentation[T <: Data](implicit arg0: Ring[T], arg1: BinaryRepresentation[T]): DspComplexBinaryRepresentation[T]
- Definition Classes
- DspComplexImpl
-
implicit
def
DspComplexEq[T <: Data](implicit arg0: Eq[T]): DspComplexEq[T]
- Definition Classes
- DspComplexImpl
-
implicit
def
DspComplexRingImpl[T <: Data](implicit arg0: Ring[T]): DspComplexRing[T]
- Definition Classes
- DspComplexImpl
- val Floor: RoundDown.type
- val Multiplicative: spire.algebra.Multiplicative.type
- val Round: RoundHalfTowardsInfinity.type
-
implicit
def
additiveGroupOps[A](a: A)(implicit arg0: spire.algebra.AdditiveGroup[A]): AdditiveGroupOps[A]
- Definition Classes
- AdditiveGroupSyntax
-
implicit
def
additiveMonoidOps[A](a: A)(implicit ev: AdditiveMonoid[A]): AdditiveMonoidOps[A]
- Definition Classes
- AdditiveMonoidSyntax
-
implicit
def
additiveSemigroupOps[A](a: A)(implicit arg0: AdditiveSemigroup[A]): AdditiveSemigroupOps[A]
- Definition Classes
- AdditiveSemigroupSyntax
-
implicit
def
binaryRepresentationOps[A <: Data](a: A)(implicit arg0: BinaryRepresentation[A]): BinaryRepresentationOps[A]
- Definition Classes
- BinaryRepresentationSyntax
-
implicit
def
chiselConvertableFromOps[A <: Data](a: A)(implicit arg0: ChiselConvertableFrom[A]): ChiselConvertableFromOps[A]
- Definition Classes
- ChiselConvertableFromSyntax
-
implicit
def
contextualRingOps[A <: Data](a: A)(implicit arg0: Ring[A]): ContextualRingOps[A]
- Definition Classes
- ContextualRingSyntax
-
implicit
def
convertableToOps[A <: Data](a: A)(implicit arg0: ConvertableTo[A]): ConvertableToOps[A]
- Definition Classes
- ConvertableToSyntax
-
implicit
def
eqOps[A <: Data](a: A)(implicit arg0: Eq[A]): EqOps[A]
- Definition Classes
- EqSyntax
-
implicit
def
isIntegerOps[A <: Data](a: A)(implicit arg0: IsIntegral[A]): IsIntegerOps[A]
- Definition Classes
- IsIntegerSyntax
-
implicit
def
isRealOps[A <: Data](a: A)(implicit arg0: IsReal[A]): IsRealOps[A]
- Definition Classes
- IsRealSyntax
-
implicit
def
literalDoubleAdditiveGroupOps(lhs: Double): LiteralDoubleAdditiveGroupOps
- Definition Classes
- AdditiveGroupSyntax
-
implicit
def
literalDoubleAdditiveSemigroupOps(lhs: Double): LiteralDoubleAdditiveSemigroupOps
- Definition Classes
- AdditiveSemigroupSyntax
-
implicit
def
literalDoubleMultiplicativeSemigroupOps(lhs: Double): LiteralDoubleMultiplicativeSemigroupOps
- Definition Classes
- MultiplicativeSemigroupSyntax
-
implicit
def
literalIntAdditiveGroupOps(lhs: Int): LiteralIntAdditiveGroupOps
- Definition Classes
- AdditiveGroupSyntax
-
implicit
def
literalIntAdditiveSemigroupOps(lhs: Int): LiteralIntAdditiveSemigroupOps
- Definition Classes
- AdditiveSemigroupSyntax
-
implicit
def
literalIntMultiplicativeSemigroupOps(lhs: Int): LiteralIntMultiplicativeSemigroupOps
- Definition Classes
- MultiplicativeSemigroupSyntax
-
implicit
def
literalLongAdditiveGroupOps(lhs: Long): LiteralLongAdditiveGroupOps
- Definition Classes
- AdditiveGroupSyntax
-
implicit
def
literalLongAdditiveSemigroupOps(lhs: Long): LiteralLongAdditiveSemigroupOps
- Definition Classes
- AdditiveSemigroupSyntax
-
implicit
def
literalLongMultiplicativeSemigroupOps(lhs: Long): LiteralLongMultiplicativeSemigroupOps
- Definition Classes
- MultiplicativeSemigroupSyntax
-
implicit
def
multiplicativeSemigroupOps[A](a: A)(implicit arg0: MultiplicativeSemigroup[A]): MultiplicativeSemigroupOps[A]
- Definition Classes
- MultiplicativeSemigroupSyntax
-
implicit
def
orderOps[A <: Data](a: A)(implicit arg0: Order[A]): OrderOps[A]
- Definition Classes
- OrderSyntax
-
implicit
def
partialOrderOps[A <: Data](a: A)(implicit arg0: PartialOrder[A]): PartialOrderOps[A]
- Definition Classes
- PartialOrderSyntax
-
implicit
def
semiringOps[A](a: A)(implicit arg0: Semiring[A]): SemiringOps[A]
- Definition Classes
- SemiringSyntax
-
implicit
def
signedOps[A <: Data](a: A)(implicit arg0: Signed[A]): SignedOps[A]
- Definition Classes
- SignedSyntax
- object BinaryRepresentation
- object ChiselConvertableFrom
- object ComparisonHelper
- object ConvertableTo
- object DspComplex
- object DspReal
-
implicit
object
DspRealRealImpl extends DspRealReal
- Definition Classes
- DspRealImpl
- object Eq
-
implicit
object
FixedPointRealImpl extends FixedPointReal
- Definition Classes
- FixedPointImpl
- object Integer extends Serializable
- object IntegerBits extends Serializable
- object IsIntegral
- object IsReal
- object Order
- object PartialOrder
- object Real extends Serializable
- object RealBits extends Serializable
- object RealTrig
- object Ring extends Serializable
-
implicit
object
SIntIntegerImpl extends SIntInteger
- Definition Classes
- SIntImpl
- object Sign
- object Signed
- object TrigUtility
-
implicit
object
UIntIntegerImpl extends UIntInteger
- Definition Classes
- UIntImpl
-
implicit
object
IntervalRealImpl extends IntervalReal
- Definition Classes
- IntervalImpl
- object implicits extends AllSyntax with AllImpl with spire.syntax.AllSyntax