Lab 4: Usage of mutexes

Contents

Contents. 2

Setup. 2

Description. 2

Change history. 2

Setup

For this lab, you will need a Xilinx Zybo Z7-20 FPGA Board and a USB cable. Connect the USB cable to the PC and the Zybo Z7-20 board to connector PROG/UART. With this cable, the programming of the FPGA will be done, as well as serial communication between the board and PC.

Description

Basing on the hardware and operating system from previous labs, write the software using mutexes in multi-threaded system. Demonstrate the operation. For example: write a program with several threads. Each thread is printing a message on the terminal at random moments of time. Mutex should prevent from simultaneous writes to the terminal by different threads.

Results required to complete the exercise

Present the operation of your software and prove that mutex is working.

Change history

Adaptation to version Vivado 2018.3: M. Wójcikowski (08/2020).