decoder

chisel3.util.experimental.decode.decoder
object decoder extends LazyLogging

Attributes

Source
decoder.scala
Graph
Supertypes
trait LazyLogging
class Object
trait Matchable
class Any
Self type
decoder.type

Members list

Value members

Concrete methods

def apply(minimizer: Minimizer, input: UInt, truthTable: TruthTable): UInt

Use a specific Minimizer to generated decoded signals.

Use a specific Minimizer to generated decoded signals.

Value parameters

input

input signal that contains decode table input

minimizer

specific Minimizer, can be QMCMinimizer or EspressoMinimizer.

truthTable

TruthTable to decode user input.

Attributes

Returns

decode table output.

Source
decoder.scala
def apply(input: UInt, truthTable: TruthTable): UInt

try to use EspressoMinimizer to decode input by truthTable if espresso not exist in your PATH environment it will fall back to QMCMinimizer, and print a warning.

try to use EspressoMinimizer to decode input by truthTable if espresso not exist in your PATH environment it will fall back to QMCMinimizer, and print a warning.

Value parameters

input

input signal that contains decode table input

truthTable

TruthTable to decode user input.

Attributes

Returns

decode table output.

Source
decoder.scala
def bitset(input: UInt, bitSets: Seq[BitSet], errorBit: Boolean = ...): UInt

Generate a decoder circuit that matches the input to each bitSet.

Generate a decoder circuit that matches the input to each bitSet.

The resulting circuit functions like the following but is optimized with a logic minifier.

 when(input === bitSets(0)) { output := b000001 }
 .elsewhen (input === bitSets(1)) { output := b000010 }
 ....
 .otherwise { if (errorBit) output := b100000 else output := DontCare }

Value parameters

bitSets

set of ports to be matched, all width should be the equal

errorBit

whether generate an additional decode error bit at MSB of output.

input

input to the decoder circuit, width should be equal to bitSets.width

Attributes

Returns

decoded wire

Source
decoder.scala
def espresso(input: UInt, truthTable: TruthTable): UInt

Use EspressoMinimizer to generated decoded signals.

Use EspressoMinimizer to generated decoded signals.

Value parameters

input

input signal that contains decode table input

truthTable

TruthTable to decode user input.

Attributes

Returns

decode table output.

Source
decoder.scala
def qmc(input: UInt, truthTable: TruthTable): UInt

Use QMCMinimizer to generated decoded signals.

Use QMCMinimizer to generated decoded signals.

Value parameters

input

input signal that contains decode table input

truthTable

TruthTable to decode user input.

Attributes

Returns

decode table output.

Source
decoder.scala

Inherited methods

Attributes

Inherited from:
LazyLogging
Source
Logger.scala

Inherited fields

protected val logger: Logger

Attributes

Inherited from:
LazyLogging
Source
Logger.scala