Majority of 5 inputs

Design a circuit that implements the 5-input majority function, that is, the output is 1 when there are more ones than zeros at the inputs.

Specification

module majority(a, b, c, d, e, maj);
    input a, b, c, d, e;
    output maj;

Input

Output

Problem information

Author: Jordi Cortadella

Generation: 2026-02-03T12:16:31.264Z

© Jutge.org, 2006–2026.
https://jutge.org