bit_operations library

Documentation-only family index. Import package:rohd_hcl/rohd_hcl.dart.

Classes

BitwiseMux
Selects each output bit independently among N inputs.
BitwisePopcount
Base hardware for counting equal or unequal corresponding bits.
Count
Count 1 or 0.
CountLeadingZeros
Counts the zeros above the most significant set bit of a Logic.
CountTrailingZeros
Counts the zeros below the least significant set bit of a Logic.
Find
Find functionality
FindPattern
FindPattern functionality
FirstMatchPrefix
Selects the eligible prefix through its first matching lane.
Majority
A combinational strict-majority function on an input vector.
OneHotMux<T extends Logic>
Selects the OR of every case whose bit in selector is set.
Pad
Widens inp to at least atLeast bits by inserting bits equal to fill at the least significant end (lsbs true) or the most significant end (lsbs false).
PriorityMux
Compatibility priority mux with flat case and result ports.
RotateLeft
Rotates a Logic to the left.
RotateLeftFixed
Rotates left by a fixed amount.
RotateRight
Rotates a Logic to the right.
RotateRightFixed
Rotates right by a fixed amount.
SetBits
Sets the count least significant bits (lsbs true) or most significant bits (lsbs false) of inp to fill.
SignedShifter
A bit shifter that takes a positive or negative shift amount
SparseToDense
Scatters valid unsigned binary indices into a boolean bit vector.
WithSet
Overwrites the bits of subject starting at start with value.
XnorPopcount
Counts equal corresponding bits, producing a binary similarity score.
XorPopcount
Counts unequal corresponding bits, producing the Hamming distance.

Enums

RotateDirection
A direction for something to rotate.

Extensions

LogicMajority on Logic
Hardware operations for a strict majority of bits.
RotateLogic on Logic
Adds rotation functions to Logic.
RotateLogicValue on LogicValue
Adds rotation functions to LogicValue.