The majority function is very powerful and general. It is becoming quite interesting as post-CMOS devices can directly implement this function in a dense manner. It is useful in arithmetic operations.
Desired solution
A LogicValue:majority() function, similar to the unary or() that produces true when the majority of bits are 1.
We can have various components that implement the Logic form of this.
Motivation
The majority function is very powerful and general. It is becoming quite interesting as post-CMOS devices can directly implement this function in a dense manner. It is useful in arithmetic operations.
Desired solution
A LogicValue:majority() function, similar to the unary or() that produces true when the majority of bits are 1.
We can have various components that implement the Logic form of this.
Alternatives considered
No response
Additional details
No response