Lab 1

Move dE1 across all six displays

Digital Logic · Lab 1, Part VI · DE1-SoC

Extend the four-display circuit to six positions. Store the message inside the circuit. Three switches now control its rotation, leaving the other switches free.

Lab setup

Physical DE1-SoCCyclone V · 5CSEMA5F31C6 · camera, switches and buttons in the browser

  1. Get the starterDownload marquee.v
  2. Open the LabsLand Online EditorOpen the lab LabsLand asks you to sign in. Use the access your course or institution provides.
  3. Follow the worksheetPredict first, then build, read the board and hand in. The build steps are below.

Starter files · Verilog · VHDL · SystemVerilog

Predict the wrap

Read HEX5 through HEX0 from left to right. At rotation zero the three leftmost digits are blank and the three rightmost read dE1. Sketch the next six positions, including the return to zero. At which setting does the first character reappear on the right?

Build

Create marquee in your HDL editor, select it as the top-level file and paste the starter. Complete the source index so each display selects one of six stored characters using SW9…7. Each step from 0 to 5 moves the message one position left. In this activity both spare codes, 6 and 7, blank every display. Choose Standard, synthesize and upload.

Read the board

SW9…7 Prediction, HEX5 to HEX0 Camera reading
000
001
010
011
100
101
110 and 111
000 again

Use a dash for each blank. Change one of the lower seven switches while SW9…7 remains fixed and check whether the message moves. Explain the difference between selecting a rotation directly and advancing a stored rotation counter.

Hand in

Submit a sketch of the six possible source positions for HEX0, the eight code readings and an explanation of how you wrap an index at six instead of eight.

Adapted from FPGAcademy Digital Logic 21.1, Lab 1, Part VI. LabsLand wrote the DE1-SoC test cases and reference implementations. Verilog handout · VHDL handout · MIT notice