Lookup

chisel3.util.Lookup
object Lookup

Muxes between cases based on whether an address matches any pattern for a case. Similar to MuxLookup, but uses BitPat for address comparison.

Value parameters

addr

address to select between cases

default

default value should the address not match any case

mapping

list of cases, where each entry consists of a BitPat (compared against addr) and the output value if the BitPat matches

Attributes

Note

This appears to be an odd, specialized operator that we haven't seen used much, and seems to be a holdover from chisel2. This may be deprecated and removed, usage is not recommended.

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

Members list

Value members

Concrete methods

def apply[T <: Bits](addr: UInt, default: T, mapping: Seq[(BitPat, T)]): T

Attributes

Source
Lookup.scala