Digital Logic Lab 7

LabsLand extension · Simulated wind station

Keep the runway alert on during controller reset

A gust has stopped the airport turbine. A technician holds the controller in reset. Should the runway warning stay on? Use the board LEDs and the station readout to find out.

This extension follows Digital Logic Lab 7 and assumes you can trace a state machine. Your controller runs on a physical DE1-SoC. The board exchanges signals with a simulated turbine and weather station.

Lab setup

Physical DE1-SoCSimulated wind station

  1. Get the starterDownload wind_interlock.v
  2. Open the LabsLand Online EditorOpen the lab LabsLand asks you to sign in. Use the access your course or institution provides.

Verilog · VHDL · SystemVerilog

Prepare the station

  1. Open the LabsLand DE1-SoC Online Editor in your HDL. Create a source file named wind_interlock with that language's extension, paste the matching starter, and select the file as the top level.
  2. Under User interface, choose Change → Simulations → Airport Wind Station → Apply interface. Synthesize the design and send it to the board. Wait for programming to finish and the weather controls to connect.
  3. Choose Restart activity to return the simulated weather to its starting conditions. Pulse SW0 high, then low, to initialize the controller. These controls act on different parts of the experiment.

Check the connection

Choose Calm. Raise SW0. LEDR8 should light while Active and Generator stay at zero. Lower SW0 and choose Steady wind. LEDR6 should light when the FPGA receives steady wind. If weather buttons change the scene but LEDR6 never changes, check the selected interface and top-level file before diagnosing the alert.

Reproduce the problem

Use the station's Current outputs as well as the board LEDs. LEDR5 mirrors the runway alert, LEDR3 shows the generator command, and LEDR1–0 show the controller state. An active command can outlast generation while the rotor slows.

Five red LEDs lit above the switches on the physical UW board

During steady generation on this UW board, the five lit LEDs were LEDR7, 6, 4, 3 and 1. Find the generator indicator in the row above the switches before changing the wind.

Action What to record
Choose Calm Read Active, Generator, Runway alert and the two state bits.
Choose Steady wind Wait for alignment and generation. Compare the rotor's motion with Generator.
Choose Wind direction change Watch alignment fall and generation pause. Wait for generation to resume.
Choose High-wind gust Record the alert, the generator and the rotor after it settles.
Keep the gust selected. Hold SW0 high Compare your prediction with LEDR5 and the Runway alert output.
Release SW0 without changing the weather Which output changes? What input stayed the same?

Inspect the assignment to runway_alert. Which of its inputs describes the weather, and which belongs to the turbine controller? Edit just that relationship. Repeat the gust and reset sequence with the repaired build. The generator must stay off during the gust. After restoring calm, check that the alert clears.

Explain the evidence

Hand in a before/after pair for the held-reset case, the corrected expression, and a short explanation of why a stored motion state makes a poor source for the alert. The camera and browser update at different rates. If you miss a brief state, repeat the transition and use a local testbench to examine individual clock edges.

For an offline check, the supplied bench changes the weather and alignment bits at the connector and shortens the clock divider. The bench includes the reserved wind code, which the weather buttons do not produce. On a campus board, use a testbench or a correctly mapped compatible peripheral to supply these signals. The DE1-SoC switches alone do not reproduce the 3D plant.

Run the connector test locally

Use one of these commands from the extracted worksheet folder. Run the resulting file with vvp wind-test. The starter should stop at the held-reset check.

# Verilog
iverilog -g2005-sv -s check_wind -o wind-test starter/wind_interlock.v tests/check_wind.v

# SystemVerilog
iverilog -g2012 -s check_wind -o wind-test starter/wind_interlock.sv tests/check_wind.v

# VHDL (GHDL 6 + Icarus Verilog)
ghdl --synth --std=08 --out=verilog -gCLOCKS_PER_TICK=8 starter/wind_interlock.vhd -e wind_interlock > wind-model.v
iverilog -g2005-sv -DFIXED_DIVIDER -s check_wind -o wind-test wind-model.v tests/check_wind.v

Airport Wind Station was developed with the University of Washington Remote Hub Lab (RHLAB) and integrated with LabsLand. Zhiyun “ZZ” Zhang created the 3D assets and visualization foundation. Luis Rodríguez Gil developed the integration, interface and state model. Brian Chap contributed to the activity specification. Professor Rania Hussein leads RHLAB and is REDTAIL's principal investigator. Development was supported in part by the U.S. National Science Foundation, award 2336745. The findings and opinions are the authors'. Station documentation and acknowledgments

LabsLand material license