Skip to content
Digital circuitsCHIP Chair Logo

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 (T): The employee must present the card to the reader and it must be recognised as valid.
  • Recognised fingerprint (H): The employee must scan their fingerprint and it must match the registered one.
  • Security clearance (S): The employee must hold an active security clearance for this area.

The rules for granting access are:

  • R1 - The card is valid and the fingerprint is recognised.
  • R2 - The security clearance is active and the fingerprint is recognised.
  • R3 - The security clearance is not active and the card is valid.

We need to design a circuit with three inputs (T, H, S) and one output (A). The output A determines whether access is granted, taking the value 1 for granted access and 0 for denied access.

First, we construct the truth table of the application:

THSR1R2R3A
0000011
0010000
0100111
0110101
1000011
1010011
1101011
1111111

Next we express the Boolean function of the operation:

A=R1+R2+R3=(TH)+(SH)+(ST)

Next we draw the digital circuit:

example

Exercises on Jutge.org: Introduction to Digital Circuit Design

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.



CHIP Chair Logos

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

lliçons.jutge.org