Try a DE1-SoC FPGA Online: Run a SystemVerilog LED Chaser

Leer en español

A red light steps along the edge of a DE1-SoC board. Flip a switch in your browser and the light travels the other way. LabsLand connects your browser to a physical board in a university lab. The camera shows its LEDs, and the switches on your screen supply inputs to the circuit running there. The public demo comes with the design already loaded. You can try the DE1-SoC LED chaser without owning a board or installing Quartus.

DE1-SoC board at the University of Washington with SW0 and SW1 switched on.
On the board at the University of Washington, we flipped SW0 and SW1 and pressed KEY0. You can try the same sequence on whichever board the demo assigns you.

What is the DE1-SoC?

Terasic makes the development board. Its Altera Cyclone V SoC combines FPGA logic with an Arm processor system. This experiment uses the FPGA side: the SystemVerilog design describes a clocked circuit that moves the illuminated position. You can see its outputs on the board camera.

Run the design and change one input

  1. On the demo page choose Start demo. In the guided editor, select Run on real FPGA. The project is supplied for you; the demo handles synthesis and upload.
  2. Wait for Program ready in the board view. Find the moving LED and the two illuminated seven-segment digits before touching the controls.
  3. Flip SW0 to reverse the direction. Try SW1 to change the speed, keeping SW2 and SW3 in their original positions. KEY0 resets the pattern. HEX0 reports the LED position and HEX1 the speed setting.
DE1-SoC guided demo with the synthesis, upload and live board steps.
The public demo opens with a SystemVerilog LED chaser ready to run.
Live DE1-SoC board camera, lit LED and seven-segment displays alongside the switch controls.
The University of Deusto board during our run. The switches at right are the inputs you can change from your browser.

Which route should I use for a class?

For a lecture demonstration, start with the fixed LED chaser. Ask students which switch they would change to reverse the light without speeding it up. For a design assignment, the DE1-SoC lab with online IDE lets students with course access edit and compile their own VHDL, Verilog or SystemVerilog. The first logic gates lesson gives them a requirement they can test with real switches and LEDs.

If your class already builds in Quartus, keep that workflow. Students can use the DE1-SoC binary-upload lab to send their compiled .sof file to a board. Check that the design targets the right board and pin assignments before uploading.

Teaching VHDL? In the truth tables and Karnaugh maps lesson students start with a truth table and simplify the logic before testing their design.

This post is also available in Español.

Luis

Luis Rodríguez Gil is CTO of LabsLand and one of its co-founders. He has been taking part for over 8 years in remote labs research. Now he works in LabsLand to ensure that this innovative technology reaches its full potential for education.