Design a twolevel circuit that implements a 4bit majority fu
Design a two-level circuit that implements a 4-bit majority function, that is, the output is 1 if three or more inputs are asserted. Use verilog module to simulate the design. Analysis the modelsim simulation waveforms to verify the circuit.
Solution
A B C Y
0 0 0 1
0 0 0 0
0 0 1 1
0 0 1 1
0 1 0 0
0 1 0 1
0 1 1 0
0 1 1 1
1 1 0 1
1 1 0 0
1 1 1 1
1 0 1 1
1 0 0 0
1 0 0 1
1 0 1 1
1 1 1 0
1 1 0 0
1 1 0 1

