

Simple exercises
In this topic you will see how Boolean algebra, truth tables and logic gates relate in a series of simple exercises.
Example: Employee access control system
In this example we aim to design a logic circuit that determines whether an employee is permitted access to a restricted area of the data centre.
There are three key factors that determine the decision:
- Valid access card (
): The employee must present the card to the reader and it must be recognised as valid. - Recognised fingerprint (
): The employee must scan their fingerprint and it must match the registered one. - Security clearance (
): The employee must hold an active security clearance for this area.
The rules for granting access are:
- The card is valid and the fingerprint is recognised. - The security clearance is active and the fingerprint is recognised. - The security clearance is not active and the card is valid.
We need to design a circuit with three inputs (
First, we construct the truth table of the application:
| 0 | 0 | 0 | 0 | 0 | 1 | 1 |
| 0 | 0 | 1 | 0 | 0 | 0 | 0 |
| 0 | 1 | 0 | 0 | 1 | 1 | 1 |
| 0 | 1 | 1 | 0 | 1 | 0 | 1 |
| 1 | 0 | 0 | 0 | 0 | 1 | 1 |
| 1 | 0 | 1 | 0 | 0 | 1 | 1 |
| 1 | 1 | 0 | 1 | 0 | 1 | 1 |
| 1 | 1 | 1 | 1 | 1 | 1 | 1 |
Next we express the Boolean function of the operation:
Next we draw the digital circuit:

Exercises on Jutge.org: Introduction to Digital Circuit Design
- The Embassy Ball
- Heating-cooling system
- Energy-efficient heating-cooling system
- Robot with light sensors
Remember that to access the exercises and for the Jutge to assess your solutions you must be enrolled in the course. You will find all the instructions here.



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