CS 232: Lab 2

Title image Fall 2026

Lab 2: Programming Hardware

The purpose of this lab is to give you experience writing VHDL code and using the seven-segment displays on the board. There are four 7-segment displays on the DE0 board (User Manual). Each one consists of seven individual bars which can be used to create numbers or letters. In particular, we use them to display the hexadecimal numbers 0 through F, so we often refer to them as the hex displays.

In the lab, we will light up the four bottom segments in a pattern: one at a time will be unlit in a clockwise manner as shown in this recording of an animation (note that this is an old recording and shows widgets for the old boards, but that the main point, i.e. the 7-segment displays, is correct). The lights will be driven by a counter.


Tasks


When you have completed the lab assignment, go ahead and get started on the second project.