

Voting systems
In the context of digital circuits, voting systems refer to electronic or logical implementations designed to process multiple inputs and determine a result based on a majority rule or predefined logic.
Example: Committee voting system
We will design an electronic voting system for the Executive Committee of a football team. This committee has four members: the President, the Secretary, the Treasurer, and the Vocal. Each may vote Yes (1) or No (0).
The approval rules are:
- A proposal is approved when three or more members vote in favour.
- In case of a tie (2 in favour and 2 against), the President's vote decides. If the President votes "Yes", the proposal is approved; if he votes "No", it is rejected.
We will design a logic circuit with four inputs (
Define the input variables (
: vote of the President : vote of the Secretary : vote of the Treasurer : vote of the Vocal
The output variable is
We will analyse under which assumptions the proposal will be approved; we will call these the approval conditions and they are derived from the approval rules.
Condition 1: Three or more votes in favour.
We identify all combinations where the sum of P, S, T, V is 3 or 4.
- Approved by three votes in favour
, , and --> ( ) , , and --> ( ) , , and --> ( ) , , and --> ( )
- Approved by four votes in favour
, , and --> ( )
The proposal will be approved if any of these circumstances is met (logical OR). Condition 1 is expressed in Boolean algebra as:
Condition 2: Tie resolved in favour of the President.
We must identify all combinations with two votes for and two against. Of these, those with
- Approved
, , and --> ( ) , , and --> ( ) , , and --> ( )
- Not approved
, , and , , and , , and
The proposal will be approved if any of these assumptions hold. Condition 2 is expressed as:
The output
And therefore the expression for
We build the truth table with all possible cases:
| Votes in favour | |||||||
|---|---|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 |
| 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 |
| 0 | 0 | 1 | 1 | 2 | 0 | 0 | 0 |
| 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 |
| 0 | 1 | 0 | 1 | 2 | 0 | 0 | 0 |
| 0 | 1 | 1 | 0 | 2 | 0 | 0 | 0 |
| 0 | 1 | 1 | 1 | 3 | 1 | 0 | 1 |
| 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 |
| 1 | 0 | 0 | 1 | 2 | 0 | 1 | 1 |
| 1 | 0 | 1 | 0 | 2 | 0 | 1 | 1 |
| 1 | 0 | 1 | 1 | 3 | 1 | 0 | 1 |
| 1 | 1 | 0 | 0 | 2 | 0 | 1 | 1 |
| 1 | 1 | 0 | 1 | 3 | 1 | 0 | 1 |
| 1 | 1 | 1 | 0 | 3 | 1 | 0 | 1 |
| 1 | 1 | 1 | 1 | 4 | 1 | 0 | 1 |
The expression for
TV PS | 00 | 01 | 11 | 10 |
|---|---|---|---|---|
| 00 | 0 | 0 | 0 | 0 |
| 01 | 0 | 0 | 1 | 0 |
| 11 | 1 | 1 | 1 | 1 |
| 10 | 0 | 1 | 1 | 1 |
The next step is to group the '1's into four groups, which we mark with different colours.
TV PS | 00 | 01 | 11 | 10 |
|---|---|---|---|---|
| 00 | 0 | 0 | 0 | 0 |
| 01 | 0 | 0 | 1 | 0 |
| 11 | 1 | 1 | 1 | 1 |
| 10 | 0 | 1 | 1 | 1 |
The fixed variables in the blue group are
TV PS | 00 | 01 | 11 | 10 |
|---|---|---|---|---|
| 00 | 0 | 0 | 0 | 0 |
| 01 | 0 | 0 | 1 | 0 |
| 11 | 1 | 1 | 1 | 1 |
| 10 | 0 | 1 | 1 | 1 |
The fixed variables in the yellow group are
TV PS | 00 | 01 | 11 | 10 |
|---|---|---|---|---|
| 00 | 0 | 0 | 0 | 0 |
| 01 | 0 | 0 | 1 | 0 |
| 11 | 1 | 1 | 1 | 1 |
| 10 | 0 | 1 | 1 | 1 |
The green colour grouping has in common
TV PS | 00 | 01 | 11 | 10 |
|---|---|---|---|---|
| 00 | 0 | 0 | 0 | 0 |
| 01 | 0 | 0 | 1 | 0 |
| 11 | 1 | 1 | 1 | 1 |
| 10 | 0 | 1 | 1 | 1 |
The fixed variables in the green group have in common
TV PS | 00 | 01 | 11 | 10 |
|---|---|---|---|---|
| 00 | 0 | 0 | 0 | 0 |
| 01 | 0 | 0 | 1 | 0 |
| 11 | 1 | 1 | 1 | 1 |
| 10 | 0 | 1 | 1 | 1 |
Finally, in the red group the fixed variables are
This is the final simplified Boolean expression, because all the '1's have already been accounted for in some group.
The digital circuit derived from this expression is the following:

Exercises on Jutge.org: Introduction to Digital Circuit Design
Remember that to access the exercises and for the Judge to evaluate your solutions you must be enrolled in the course. You will find all instructions here.



Xavier Casas, Francesc Madrid
Lliçons.jutge.org
© Universitat Politècnica de Catalunya, 2026
