package math
Ordering
- Alphabetic
Visibility
- Public
- All
Type Members
-
case class
Bcd(digitCount: Int) extends Bundle with Product with Serializable
Binary-Coded Decimal (BCD) data type, where each decimal digit is stored in 4 bits.
Binary-Coded Decimal (BCD) data type, where each decimal digit is stored in 4 bits.
val bcd = Bcd(4) // 4-digit BCD (0-9999) val converted = Bcd.fromUInt(myUInt) // Binary to BCD conversion val binary = bcd.toUInt // BCD to binary conversion val sum = bcd1 + bcd2 // BCD addition
- See also
Example: - class MixedDivider extends Component
- case class MixedDividerCmd(nWidth: Int, dWidth: Int) extends Bundle with Product with Serializable
- case class MixedDividerRsp(nWidth: Int, dWidth: Int) extends Bundle with Product with Serializable
- class SignedDivider extends Component
- case class SignedDividerCmd(nWidth: Int, dWidth: Int) extends Bundle with Product with Serializable
- case class SignedDividerRsp(nWidth: Int, dWidth: Int) extends Bundle with Product with Serializable
- class UnsignedDivider[T <: Data] extends Component
- case class UnsignedDividerCmd[T <: Data](nWidth: Int, dWidth: Int, contextType: T) extends Bundle with Product with Serializable
- case class UnsignedDividerRsp[T <: Data](nWidth: Int, dWidth: Int, contextType: T) extends Bundle with Product with Serializable