scanLeftOr

chisel3.util.scanLeftOr
object scanLeftOr

Map each bit to the logical OR of itself and all bits with lower index

Here scanLeft means "start from the left and iterate to the right, where left is the lowest index", a common operation on arrays and lists.

Attributes

Example
scanLeftOr("b00001000".U(8.W)) // Returns "b11111000".U
scanLeftOr("b00010100".U(8.W)) // Returns "b11111100".U
scanLeftOr("b00000000".U(8.W)) // Returns "b00000000".U
Source
Bitwise.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
scanLeftOr.type

Members list

Value members

Concrete methods

def apply(data: UInt): UInt

Attributes

Source
Bitwise.scala