Computer Architecture I

A.Y. 2026/2027
6
Max ECTS
60
Overall hours
SSD
INFO-01/A
Language
Italian
Learning objectives
The course introduces the principles at the base of a computer; simple logic gates are first presented, and then combined, thought a succession of intermediate abstraction layers, into the design of ALU firmware and of a MIPS architecture, capable of executing programs with a core machine language.
Expected learning outcomes
The student will be familiar with the basic principles underlying the processing of digital information. In particular, (s)he will have the skills needed to understand, analyze and design
combinatorial and sequential circuits.
Single course

This course cannot be attended as a single course. Please check our list of single courses to find the ones available for enrolment.

Course syllabus and organization

Group 1

Lesson period
First semester
Course syllabus
HEORY
Introduction
The reference architecture. The execution cycle of an instruction. History of the computer. How to code the information. Binary representation of digital numbers.

Combinatorial logic and algebra
Operations on binary numbers. The fundamental operations: addition and subtraction. Binary representation of floating point numbers. Combinatorial logic. Boole algebra: variables and operators. Circuital implementation (logical gates). From circuit to function. Universal gates. From functions to circuits. The truth tables. From truth tables to circuits: the first canonic form. Implementation of logical functions in PLAs or ROMs. Noticible combinatorial circuits. Exercises.

Arithmetic-logical units
Adder. The carry problem. Hardware multipliers. Design of an ALU with two stages. Adder on 32 bits. Support to the comparison operations. Carry ahead. Introduction to firmware. Firmware circuits for multiplication and division. Arithmetics and adders for floating point numbers.

Sequential logic
Temporization of boolean circuits. Sequential circuits. Transition tables. Eccitation tables. The latch SC and the latch D. Registers and the Register file. Temporization problems. The flip-flops. Finite state machines. From specifications to the project. The state transition graph and the state transition table. Coding the STT. Synthesis of the circuit of a finite state machine. Examples.

Introduction to CPU
A simple CPU and its control unit. Instruction format. Introduction on assembly language and machine code.

LABORATORY
The laboratory is focused on developing, analysing and testing combinatorial and sequential circuits, through VHDL, a hardware description language.
The laboratory program is the following:
- Introduction to VHDL
- Synthesis of logic gates
- Synthesis of complex combinatorial structures
- Synthesis of sequential structures
- Synthesis of registers, counters and finite state machines and their timing
Prerequisites for admission
None
Teaching methods
a) Frontal lessons + b) Laboratory on the subject. Attending lessons and laboratory is strong advised.
Teaching Resources
Slides for both theory and laboratory will be provided as a guide through the material covered.

Basic text for Computer Architecture courses I and II (available in both English and Italian):
· ""Computer Organization & Design: The Hardware/Software Interface", D.A. Patterson and J.L. Hennessy, Morgan Kaufmann Publishers, Sixth Edition, 2020. NB Morgan Kaufman also published a version of the text for RISC-V and for ARM, not adopted in this course.

For the laboratory, links to material available on-line will be provided.
Assessment methods and Criteria
The evaluation is performed through a written exam followed by an oral exam and a laboratory test.
In the written exam, that lasts three hours, the student has to solve exercises that required to apply the concepts learnt in the course and to answer to some open questions. Possibly, part of the written exam can be a filter constituted of ten questions with multiple choice answer.
The oral exam is based on the discussion on what had been produced in the written exam and on questions related to the program.
For the laboratory part, the exam, lasts about 3 hours and it consists in the realization of a small complete project: combinatorial + sequential circuit. During the exam the student can browse through the material provided by the teacher.
Each exam is evaluated in thirtieth and final evaluation is the average of the score assigned to the three exams.
In all the three exams, evaluation takes into consideration the level and depth of knowledge and the clarity of language.

The written exam and the laboratory exam can be sustained in different rounds, but inside a time span no longer than 6 months or three consecutive rounds (the least restrictive applies).
INFO-01/A - Informatics - University credits: 6
Laboratories: 24 hours
Lessons: 36 hours
Shifts:
Lab. A
Professor: Re' Matteo
Lab. B
Professor: Rivolta Massimo Walter
Lab. C
Professor: Trucco Gabriella

Group 2

Responsible
Course syllabus
Theory part:
· introduction to topics, objectives, and course organization;
· logical representation and processing of information: binary encodings for natural numbers, integers, and real numbers, logic functions, and Boolean algebra;
· physical representation and processing of information: logic gates and truth tables;
· synthesis of logic functions with combinational circuits, implementation of the Arithmetic Logic Unit (ALU);
· information storage: elements of sequential logic (flip-flops, latches, clock synchronization);
· synthesis of sequential circuits, Finite State Machines (FSM);
· design of a single-cycle CPU and an overview of the multi-cycle case.

The laboratory is intended as an introduction to the VHDL language (VHSIC Hardware Description Language). The program focuses on the description, simulation, and functional verification of logic circuits, covering the coding of fundamental digital structures. From the basics of combinational logic to sequential circuits (registers and counters) and the design of Finite State Machines (FSM), the laboratory provides the essential tools to translate functional specifications into working hardware implementations.
The laboratory program includes:
· introduction to VHDL;
· synthesis of logic gates;
· synthesis of complex combinational structures;
· synthesis of sequential structures;
· synthesis of registers, counters, Finite State Machines, and their timing.
Prerequisites for admission
None
Teaching methods
The theory part consists of lectures where slides are presented and made available in PDF format through the Ariel platform.
The laboratory part consists of guided computer-based practical sessions. The software tools used, exercise texts, and a selection of their solutions are made available through the Ariel platform.
Attendance is recommended for both the theory and laboratory parts.
Teaching Resources
Teaching website available on the myAriel platform.
Slides, exercises, and other supplementary material will be provided for both the theory and the laboratory parts.
The theory part is based on the topics covered in: "Computer Organization and Design" by David A. Patterson and John L. Hennessy, Zanichelli - 5th edition.
For the laboratory part, links to online material will be provided.
Assessment methods and Criteria
For the theory part, the assessment consists of a written exam followed by an optional oral exam. The written exam requires solving exercises and answering open-ended questions and multiple-choice quizzes. Each exercise involves applying the principles and techniques presented during lectures. Accessing teaching materials is not permitted during the exam.
For the laboratory part, the assessment consists of completing a set of computer-based exercises. Each exercise involves designing a digital circuit that complies with a given specification. Accessing teaching materials is not permitted during the exam.
Both tests (theory and laboratory) result in a grade out of thirty, which is communicated through the Ariel platform. If both grades are greater than or equal to 18, the student passes the exam with a final grade equal to the weighted average of the theory grade (weighted 2/3) and the laboratory grade (weighted 1/3). The two tests can be passed in different exam sessions, but within a time frame of at most 6 months or three consecutive exam sessions (whichever is less restrictive).
Assessments will take into account the mastery of techniques, the correctness and elegance of the solutions, as well as clarity of exposition and formal presentation.
INFO-01/A - Informatics - University credits: 6
Laboratories: 24 hours
Lessons: 36 hours
Shifts:
Professor: Trucco Gabriella
Lab. A
Professor: Re' Matteo
Lab. B
Professor: Rivolta Massimo Walter
Lab. C
Professor: Trucco Gabriella