Home › Practice › RTL Design › Three judges vote
Three judges vote
EasyRTLcombinational
A talent show has three judges. A contestant goes through when at least two of them press yes.
Concept first. A logic gate is a yes/no rule: it looks at some inputs that are 0 or 1 and gives back a 0 or a 1. Rules like "at least two of three" can be said in words first, and only then turned into gates. Try listing every way two judges can agree, then ask what happens when all three agree.
What to build.
vote3(a, b, c)has one outputy.y = 1when two or three of the inputs are 1, otherwise 0.- No clock. The output follows the inputs.
No install and no sign-up needed. You write your answer in the editor and Nishkam checks it.