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
1or0. - 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
selectoris set. - Pad
-
Widens
inpto at leastatLeastbits by inserting bits equal tofillat the least significant end (lsbstrue) or the most significant end (lsbsfalse). - 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
countleast significant bits (lsbstrue) or most significant bits (lsbsfalse) ofinptofill. - 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
subjectstarting atstartwithvalue. - 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.