Package

spinal.lib

dsptool

Permalink

package dsptool

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. dsptool
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. case class DoubleList(list: List[Double]) extends Product with Serializable

    Permalink
  2. case class FixData(raw: Double, q: QFormat, roundType: RoundType = getFixRound(), symmetric: Boolean = getFixSym()) extends Product with Serializable

    Permalink

    Fixnum

    Fixnum

    returns

    FixData: -3.8125, Quantized by QFormat: SQ(8,4)

    x.bin => 11000011 x.oct => 103 x.hex => c3

    Example:
    1. val x = FixData(-3.785333,SQ(8,4))
  3. case class IntList(list: List[Int]) extends Product with Serializable

    Permalink
  4. case class LongList(list: List[Long]) extends Product with Serializable

    Permalink

Value Members

  1. object DoubleList extends Serializable

    Permalink
  2. object FixOff

    Permalink
  3. object FixOn

    Permalink

    Usage:

    Usage:

    returns

    :FixData:-3.78533 FixOff
    Example:
    1. FixOff()
                 val a = FixData(-3.785333,SQ(8,4))
  4. object FixSwitch

    Permalink
    Attributes
    protected
  5. object IntList extends Serializable

    Permalink
  6. object LongList extends Serializable

    Permalink
  7. object fixDataTest

    Permalink
  8. object getFixSwitchState

    Permalink
  9. object toFixData

    Permalink

    IntToFixData

    IntToFixData

    returns

    FixData: -5.125, QFormat: Q(8,4,signed)

    toFixData(322111, SQ(8,4)) => FixData: -8.0, QFormat: Q(8,4,signed) toFixData(322111, UQ(8,4)) => FixData: 7.9375, QFormat: Q(8,4,unsigned) toFixData(-322111,SQ(8,4)) => FixData: -8.0, QFormat: Q(8,4,signed) toFixData(-322111,UQ(8,4)) => FixData: 0, QFormat: Q(8,4,unsigned) toFixData(-0x0f, SQ(8,4)) => FixData: -0.9375,QFormat: Q(8,4,signed)

    Example:
    1. val x = toFixData(0xFFAE,SQ(8,4))

Inherited from AnyRef

Inherited from Any

Ungrouped