Move dE1 across all six displays
Online version: https://fpga.labsland.com/altera/digital-logic/lab-01/part-06/
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
LabsLand Online Editor · DE1-SoC
Physical DE1-SoCCyclone V · 5CSEMA5F31C6 · camera, switches and buttons in the browser
Build in Quartus and upload the bitstream
Download and extract the Quartus project for your HDL. Open marquee.qpf in Quartus Prime Lite with the Cyclone V device package. Edit the marquee design. Use SW9…7 to choose the source character for each display. Rotations 0 through 5 wrap the message. Codes 6 and 7 must blank it.
Choose Processing → Start Compilation. Verify that the fitter completed for 5CSEMA5F31C6. In the DE1-SoC binary upload lab, choose Standard, upload output_files/marquee.sof and wait for the programming confirmation. Locate the LED or HEX labels on the board camera before taking your readings.
If your course uses a LabsLand classroom, the upload opens a firmware library instead. Choose Browse files, wait until the SOF is selected, then choose Enter board with selected firmware.
- Get the starterDownload
marquee.v - Open the LabsLand Online EditorOpen the lab Choose DE1-SoC · Verilog when you open the lab. LabsLand asks you to sign in. Use the access your course or institution provides.
- Follow the worksheetPredict first, then build, read the board and hand in. The build steps are below.
- Install Quartus Prime Lite with Cyclone V supportSkip this if it is already installed.
- Download the activityDownload worksheet and Quartus project Includes the worksheet and the Quartus project.
- Complete the design and compileStart with Predict the wrap in the worksheet below, then complete the design as its build steps describe. Open
marquee.qpfand choose Processing → Start Compilation. Quartus writesoutput_files/marquee.sof. - Upload the bitstream to LabsLandUpload bitstream LabsLand asks you to sign in. Use the access your course or institution provides.
Already compiled? Upload your .sof directly
Starter files · Verilog · VHDL · SystemVerilog
Worksheet and starter (.zip) for offline work or printing
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
