Executive Committee X16063


Statement
 

pdf   zip   verilog

html

The Executive Committee of a prestigious football team has four members: President (P), Secretary (S), Treasurer (T) and Vocal (V). For the approval of proposals, the Committee has an electronic voting system in which each member can press the “Yes” or “No” buttons. The proposals are approved when three members vote in favour. In case of a tie, the qualified vote of the President decides.

Design a circuit that receives the votes of the four members (0=“No”, 1=“Yes”) and outputs a signal indicating whether the proposal is approved (1=“Approved”, 0=“Rejected”).

Specification

module votes(P, S, T, V, Approved); input P, S, T, V; output Approved;

Input

  • P, S, T and V are the votes of the President, Secretary, Treasurer and Vocal, respectively.

Output

  • Approved is the signal that indicates whether the proposal has been approved.
Information
Author
Jordi Cortadella
Language
English
Official solutions
Unknown. This problem is being checked.
User solutions
Verilog