intel / rohd-hcl

A hardware component library developed with ROHD.
https://pub.dev/packages/rohd_hcl
BSD 3-Clause "New" or "Revised" License
81 stars 23 forks source link

Majority function support #86

Open desmonddak opened 3 months ago

desmonddak commented 3 months ago

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