Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

Repository files navigation

APAI-LAB01: Basics of Embedded Programming on PULP

Material

Assignment: here Slides: here

Summary:

The target device for the lab sessions is the multi-core PULP platform. The PULP Virtual Platform simulator GVSOC, which is included within the PULP SDK, will be used during the class.

  • Subject(s): hello-world, vector sum, matrix-vector mul, profiling code execution;
  • Programming Language: C;
  • Lab duration: 3h
  • Objective: Embedded programming & profiling. You will learn basics of embedded programming, the pulp architecture, basic operations (sum & matmul), and how to profile your code execution (MAC, cycles) !

How to deliver the assignment:

Use Virtuale, upload only the assignment file named as follows: LAB#_APAI_yourname.pdf

Assignment DEADLINE: Sunday, 18/10/2026 (at 23:59)


Quickstart

Prerequisites

See the "Prerequisites" section of the slides for detailed installation instructions.

  1. (Windows only) Install WSL 2.
  2. Install Docker Desktop (on Windows, choose the Windows version even if you work with WSL).
  3. Install VS Code and the Dev Containers extension.

How to set the environment

  1. Open a terminal in the location where you wish to work (on Windows, a WSL terminal).
  2. Clone this repository:
git clone https://github.com/EEESlab/APAI26-LAB01-PULP-Embedded-Programming.git
  1. Enter the cloned directory:
cd APAI26-LAB01-PULP-Embedded-Programming/
  1. Open the directory in VS Code:
code .
  1. Reopen the project inside the Docker container: press CTRL + Shift + P, type Dev Containers: Reopen in Container and press Enter. The bottom-left corner of VS Code confirms that you are inside the container.
  2. Open a terminal inside VS Code (Terminal -> New Terminal). This terminal runs inside the container, with the PULP SDK already set up.
  3. Now you're ready to start!

How to run the code

Enter one of the exercise folders (00_pulp_hello_world, 01_vector_sum, 02_matrix_vector) and run:

make clean all run

For example, to check that everything works:

cd 00_pulp_hello_world/
make clean all run

You should see the Hello, world! -from PULP message in the VS Code terminal.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages