Build real hardware, one LED at a time.
Write Verilog and watch it run on a 3D FPGA board, right here in your browser: LEDs, buttons, switches, a 7-segment display, an RGB LED and a serial port. Each lesson checks your design, and when it works you can put it on a real board with one click.
- Lesson 1
Light an LED
Your first circuit: drive an output pin high and an LED lights.
LEDs
- Lesson 2
Button to LED
Read an input: an LED that lights while you hold a button.
LEDs · buttons
- Lesson 3
Logic gates on switches
AND, OR, XOR and NOT, one per LED, driven by two switches.
LEDs · switches
- Lesson 4
Blink
Count clock cycles to make an LED blink twice a second.
LEDs · clock
- Lesson 5
FPGA vs microcontroller
Two LEDs blinking at their own pace: what a circuit does that a processor can't.
LEDs · clock
- Lesson 6
Binary counter
Show a number counting up on six LEDs, four steps a second.
LEDs · clock
- Lesson 7
7-segment decoder
Turn a 4-bit number from the switches into a digit on the display.
switches · display
- Lesson 8
Debounce a button
Count button presses without the contacts' bounce counting twice.
LEDs · buttons · clock
- Lesson 9
Running light
One lit LED that runs along the row and wraps around.
LEDs · clock
- Lesson 10
Dim an LED (PWM)
Switch an LED on and off fast to set its brightness from the switches.
LEDs · switches · clock
- Lesson 11
Colour mixer
Mix red, green and blue on an RGB LED, then make it cycle by itself.
switches · RGB LED · clock
- Lesson 12
Traffic light
A state machine: green, yellow, red, with a timer for each.
LEDs · clock
- Lesson 13
Stopwatch
Tenths of a second on the display, with start/stop and reset buttons.
buttons · display · clock
- Lesson 14
Reaction game
Wait for the light, hit the button, see your reaction time.
LEDs · buttons · display · clock
- Lesson 15
Dice roller
Roll while you hold the button, land on 1–6 when you let go.
buttons · display · clock
- Lesson 16
Say hello over serial
Send text to the computer over the USB serial port.
buttons · serial · clock
- Lesson 17
Serial echo
Receive bytes on rx and send each one straight back.
serial · clock
- Lesson 18
Serial-controlled LEDs
Type a digit 0–5 to switch that LED on or off.
LEDs · serial · clock
- Lesson 19
Serial calculator
Send 3+4 and a new line; the board replies 7.
serial · clock
- Lesson 20
Beep
A buzzer that plays a 440 Hz note while you hold a button.
buttons · buzzer · clock
- Lesson 21
Switch piano
Switches pick a note from C to the next C; the buzzer plays it.
switches · buzzer · clock
- Lesson 22
Doorbell
One press plays ding (high) then dong (low), then stops.
buttons · buzzer · clock
- Lesson 23
Scrolling text
HELLO marches across the 4-digit display.
display · clock
- Lesson 24
Digital clock
Minutes and seconds on the display, with a button to set the minutes.
buttons · display · clock
- Lesson 25
Scoreboard
Two players, two buttons, the score in decimal on the display.
buttons · switches · display · clock
- Lesson 26
Breathing LED
An LED that slowly fades up and down, like a sleeping laptop.
LEDs · clock
- Lesson 27
Drive a servo
Point a hobby servo with the switches.
switches · servo · clock
- Lesson 28
Shift register
Drive 8 more LEDs from three pins through a 74HC595.
shift register · clock
- Lesson 29
Keypad scanner
Read a 4×4 keypad and show the key on the display.
display · keypad · clock
- Lesson 30
Final project: up/down counter
Put it all together: buttons, a decimal display and binary LEDs.
LEDs · buttons · display · clock