package util
- Alphabetic
- By Inheritance
- util
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- class ChiselShiftRegisterModule extends Module
- class Compiler extends AnyRef
- implicit class DecoupledHelper[T <: Data] extends AnyRef
- class ShiftRegister[T <: Data] extends AnyRef
- class WithLast[T <: Data] extends Bundle
Value Members
- def allReady(ports: DecoupledIO[Data]*): Bool
- def bigIntToBytes(i: BigInt, width: Int): Array[Byte]
-
def
bitMask(from: Int, to: Int): BigInt
- Annotations
- @tailrec()
- def cat(v: Seq[Bits]): Bits
-
def
combineWords(words: Array[BigInt], inputWordSize: Int): BigInt
combineWords takes an array of words of the specified size and concatenates them into a single word of size N*wordSize, where N is the number of words in the array
- def connectDecoupledProcessor[T <: Data, S <: Data](op: DecoupledIO[T], in: DecoupledIO[S], out: DecoupledIO[S]): Unit
- def decoupledLit[T <: Data](lit: T): DecoupledIO[T]
- def divCeil(a: BigInt, b: BigInt): BigInt
- def divCeil(a: Int, b: Int): Int
- def doubleToFixedPoint(x: Double, bp: Int): BigInt
- def emitTo[T <: RawModule](dut: ⇒ T, dir: String): Unit
- def emitToBuildDir[T <: RawModule](dut: ⇒ T): Unit
- def enqueue[S <: Data](port: DecoupledIO[S], value: S): Bool
-
def
extractBitField(b: BigInt, from: Int, to: Int): BigInt
- Annotations
- @tailrec()
- def fixedPointToDouble(x: BigInt, bp: Int): Double
- def floatToFixedPointBytes(f: Float, width: Int, binaryPoint: Int): Array[Byte]
- def greatestCommonDivisor(a: Int, b: Int): Int
- def isMaxValue(x: UInt): Bool
- def isOutput(x: Data): Boolean
- def minus[T <: Data with Num[T]](gen: T, x: T, y: T): T
- def one[T <: Data](gen: T): T
- def plus[T <: Data with Num[T]](gen: T, x: T, y: T): T
- def plusFixedPoint(gen: FixedPoint, x: SInt, y: SInt): FixedPoint
- def printVec[T <: Data](v: Vec[T]): Unit
-
def
repeat[T](n: Int)(arr: Array[T])(implicit arg0: ClassTag[T]): Array[T]
Returns a new array consisting of the original array repeated n times.
Returns a new array consisting of the original array repeated n times.
- n
the number of times to repeat the array
- arr
the array to be repeated
- returns
a new array
- def reportThroughput(requestBus: DecoupledIO[Data], reportingPeriod: Int, moduleName: String): Unit
- def signedMod(x: SInt, mod: Int): SInt
-
def
splitWord(word: BigInt, outputWordSize: Int): Array[BigInt]
splitWord takes a word and splits into an array of words of the specified size.
- def streamTransmission(in: Iterable[BigInt], inputWidth: Int, outputWidth: Int): Iterable[BigInt]
- def sufficientBytes(width: Int): Int
- def times[T <: Data with Num[T]](gen: T, x: T, y: T): T
-
def
timesFixedPoint(gen: FixedPoint, x: SInt, y: SInt): FixedPoint
timesFixedPoint returns the product of two fixed point values with a "round-to-nearest-even" rounding policy.
timesFixedPoint returns the product of two fixed point values with a "round-to-nearest-even" rounding policy.
See: https://docs.google.com/spreadsheets/d/14U3z-yJsnC1whWWuBmbnL9ZggzcdP-VvrKsp4Y4ztPg/edit#gid=0
- def vecToPrintable[T <: Bits](v: Vec[T]): Printable
- def widthOf(x: Long): Width
- def widthOf(x: Int): Width
- def zero[T <: Data](gen: T): T
- object Compiler
- object Delay
- object Demux
- object Driver
- object Environment extends Enumeration
- object High extends Compiler
- object Low extends Compiler
- object Middle extends Compiler
- object ShiftRegister
- object SystemVerilog extends Compiler
- object Verilog extends Compiler