trait UIntIsReal extends IsIntegral[UInt] with UIntOrder with UIntSigned with hasContext
- Alphabetic
- By Inheritance
- UIntIsReal
- UIntSigned
- UIntOrder
- hasContext
- IsIntegral
- IsReal
- Signed
- Order
- PartialOrder
- Eq
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
getClass(): Class[_]
- Definition Classes
- Any
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
def
abs(a: UInt): UInt
An idempotent function that ensures an object has a non-negative sign.
An idempotent function that ensures an object has a non-negative sign.
- Definition Classes
- UIntSigned → Signed
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
ceil(a: UInt): UInt
Rounds
a
the nearest integer that is greater than or equal toa
.Rounds
a
the nearest integer that is greater than or equal toa
.- Definition Classes
- IsIntegral → IsReal
- def compare(x: UInt, y: UInt): ComparisonBundle
-
def
context: DspContext
- Definition Classes
- hasContext
-
def
context_abs(a: UInt): UInt
- Definition Classes
- UIntSigned → Signed
-
def
equals(arg0: Any): Boolean
- Definition Classes
- Any
-
def
eqv(x: UInt, y: UInt): Bool
Returns
true
ifx
andy
are equivalent,false
otherwise.Returns
true
ifx
andy
are equivalent,false
otherwise.- Definition Classes
- UIntOrder → Order → PartialOrder → Eq
-
def
floor(a: UInt): UInt
Rounds
a
the nearest integer that is less than or equal toa
.Rounds
a
the nearest integer that is less than or equal toa
.- Definition Classes
- IsIntegral → IsReal
-
def
gt(x: UInt, y: UInt): Bool
- Definition Classes
- UIntOrder → Order → PartialOrder
-
def
gteqv(x: UInt, y: UInt): Bool
- Definition Classes
- UIntOrder → Order → PartialOrder
-
def
hashCode(): Int
- Definition Classes
- Any
-
def
isEven(a: UInt): Bool
- Definition Classes
- IsIntegral
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isOdd(a: UInt): Bool
- Definition Classes
- UIntIsReal → IsIntegral
-
def
isSignNegative(a: UInt): Bool
- Definition Classes
- UIntSigned → Signed
-
def
isSignNonNegative(a: UInt): Bool
- Definition Classes
- Signed
-
def
isSignNonPositive(a: UInt): Bool
- Definition Classes
- Signed
-
def
isSignNonZero(a: UInt): Bool
- Definition Classes
- Signed
-
def
isSignPositive(a: UInt): Bool
- Definition Classes
- UIntSigned → Signed
-
def
isSignZero(a: UInt): Bool
- Definition Classes
- UIntSigned → Signed
-
def
isWhole(a: UInt): Bool
Returns
true
iffa
is a an integer.Returns
true
iffa
is a an integer.- Definition Classes
- IsIntegral → IsReal
-
def
lt(x: UInt, y: UInt): Bool
- Definition Classes
- UIntOrder → Order → PartialOrder
-
def
lteqv(x: UInt, y: UInt): Bool
- Definition Classes
- UIntOrder → Order → PartialOrder
-
def
max(x: UInt, y: UInt): UInt
- Definition Classes
- Order
-
def
min(x: UInt, y: UInt): UInt
- Definition Classes
- Order
-
def
mod(a: UInt, b: UInt): UInt
- Definition Classes
- UIntIsReal → IsIntegral
-
def
neqv(x: UInt, y: UInt): Bool
Returns
false
ifx
andy
are equivalent,true
otherwise. -
def
on[B <: Data](f: (B) ⇒ UInt): Order[B]
Defines an order on
B
by mappingB
toA
usingf
and usingA
s order to orderB
.Defines an order on
B
by mappingB
toA
usingf
and usingA
s order to orderB
.- Definition Classes
- Order → PartialOrder → Eq
-
def
partialCompare(x: UInt, y: UInt): ValidIO[ComparisonBundle]
Result of comparing
x
withy
.Result of comparing
x
withy
. Returns ValidIO[ComparisonBundle] withvalid
false if operands are not comparable. If operands are comparable,bits.lt
will be true ifx
<y
andbits.eq
will be true ifx
=y
- Definition Classes
- Order → PartialOrder
-
def
pmax(x: UInt, y: UInt): ValidIO[UInt]
Returns Some(x) if x >= y, Some(y) if x < y, otherwise None.
Returns Some(x) if x >= y, Some(y) if x < y, otherwise None.
- Definition Classes
- PartialOrder
-
def
pmin(x: UInt, y: UInt): ValidIO[UInt]
Returns Some(x) if x <= y, Some(y) if x > y, otherwise None.
Returns Some(x) if x <= y, Some(y) if x > y, otherwise None.
- Definition Classes
- PartialOrder
-
def
reverse: Order[UInt]
Defines an ordering on
A
where all arrows switch direction.Defines an ordering on
A
where all arrows switch direction.- Definition Classes
- Order → PartialOrder
-
def
round(a: UInt): UInt
Rounds
a
to the nearest integer (When the fractional part is 0.5, tie breaking rounds to positive infinity i.e.Rounds
a
to the nearest integer (When the fractional part is 0.5, tie breaking rounds to positive infinity i.e. round half up)- Definition Classes
- IsIntegral → IsReal
-
def
sign(a: UInt): Sign
Returns Zero if
a
is 0, Positive ifa
is positive, and Negative isa
is negative.Returns Zero if
a
is 0, Positive ifa
is positive, and Negative isa
is negative.- Definition Classes
- Signed
-
def
signum(a: UInt): ComparisonBundle
Returns 0 if
a
is 0, > 0 ifa
is positive, and < 0 isa
is negative.Returns 0 if
a
is 0, > 0 ifa
is positive, and < 0 isa
is negative.- Definition Classes
- UIntSigned → Signed
-
def
toString(): String
- Definition Classes
- Any
-
def
truncate(a: UInt): UInt
- Definition Classes
- IsIntegral → IsReal