You cannot submit this assignment

You need to sign in and enrol to submit exercises.

Objectives

This exercise will introduce basic concepts of SystemVerilog as design language:

  1. Hello world module
  2. Simulation with Questa

Instructions

The focus in this exercise is to verify the build environment.

Preparing the environment

The simulations in the exercises are run with the Linux build of Questa, so the first task is to configure and start a virtual machine:
  • VMWare instructions
  • Start the terminal
  • Before you can compile and simulate your code you need to add the used tools to your environment path:
  • $ source /opt/questa/questa.sh 
    • Note that this sets the path variable for the current session only, so this has to be done every time you start the terminal

  • You can also use Modelsim on linux-desktop servers


  • Git repositories

    We have two git repositories on the course: the group repository and a personal one. These files are found in the personal repository.

    You can still do this as a group: just decide whose repository you will use.

  • Clone your git repository
  • Navigate to folder ex_systemverilog in your repository
  • Create a library for the project with:
  • $ vlib sv_ex_lib           # Create your own design library ...
    $ vmap work $PWD/sv_ex_lib # ... and map it as 'work'
  • Then you can compile and run the simulation with:
  • $ vlog hello.sv
    $ vsim -do "run -all" -c hello
    • the -c flag starts the simulation in console without the GUI

(Helpful?) Tips / good practices / conventions

  • Between sessions you lose the "sourced" paths so if you get an error that the run script cannot find the compiler/simulator run the sourcing script as before
  • Always comment what you're doing in the code! Commenting in SystemVerilog works as in C/C++ i.e. // or /* ... */
  • Remember to indent the code and use descriptive variable/class names (as in the given code package or some other sensible way..), readibility is nice.
  • SystemVerilog resources:
    • SystemVerilog standard: doc/IEEE-1800-2012.pdf

Posting submission...

Earned points

0 / 0

Exercise info

Assignment category
SystemVerilog Intro
Your submissions
0
Deadline
Sunday, 8 February 2026, 23:58
Late submission deadline
Sunday, 22 February 2026, 23:59
Group size
1-3
Total number of submitters
0