Jutge.org
The Virtual Learning Environment for Computer Programming
Majority
X70559 en
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.
The top module must be called majority.
module
majority(a, b, c , d, e , maj);
input
a, b, c , d, e ;
output
maj;
Input
• a, b, c, d and e are the inputs.
Output
• maj is the output implementing the majority function.
Problem information
Author : Jordi Cortadella
Generation : 2013-07-17 16:31:51
© Jutge.org, 2006–2013.
http://www.jutge.org