BitFlow
Board Lab

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.

Your progress0 / 30
  1. Lesson 1

    Light an LED

    Your first circuit: drive an output pin high and an LED lights.

    LEDs

  2. Lesson 2

    Button to LED

    Read an input: an LED that lights while you hold a button.

    LEDs · buttons

  3. Lesson 3

    Logic gates on switches

    AND, OR, XOR and NOT, one per LED, driven by two switches.

    LEDs · switches

  4. Lesson 4

    Blink

    Count clock cycles to make an LED blink twice a second.

    LEDs · clock

  5. Lesson 5

    FPGA vs microcontroller

    Two LEDs blinking at their own pace: what a circuit does that a processor can't.

    LEDs · clock

  6. Lesson 6

    Binary counter

    Show a number counting up on six LEDs, four steps a second.

    LEDs · clock

  7. Lesson 7

    7-segment decoder

    Turn a 4-bit number from the switches into a digit on the display.

    switches · display

  8. Lesson 8

    Debounce a button

    Count button presses without the contacts' bounce counting twice.

    LEDs · buttons · clock

  9. Lesson 9

    Running light

    One lit LED that runs along the row and wraps around.

    LEDs · clock

  10. Lesson 10

    Dim an LED (PWM)

    Switch an LED on and off fast to set its brightness from the switches.

    LEDs · switches · clock

  11. Lesson 11

    Colour mixer

    Mix red, green and blue on an RGB LED, then make it cycle by itself.

    switches · RGB LED · clock

  12. Lesson 12

    Traffic light

    A state machine: green, yellow, red, with a timer for each.

    LEDs · clock

  13. Lesson 13

    Stopwatch

    Tenths of a second on the display, with start/stop and reset buttons.

    buttons · display · clock

  14. Lesson 14

    Reaction game

    Wait for the light, hit the button, see your reaction time.

    LEDs · buttons · display · clock

  15. Lesson 15

    Dice roller

    Roll while you hold the button, land on 1–6 when you let go.

    buttons · display · clock

  16. Lesson 16

    Say hello over serial

    Send text to the computer over the USB serial port.

    buttons · serial · clock

  17. Lesson 17

    Serial echo

    Receive bytes on rx and send each one straight back.

    serial · clock

  18. Lesson 18

    Serial-controlled LEDs

    Type a digit 0–5 to switch that LED on or off.

    LEDs · serial · clock

  19. Lesson 19

    Serial calculator

    Send 3+4 and a new line; the board replies 7.

    serial · clock

  20. Lesson 20

    Beep

    A buzzer that plays a 440 Hz note while you hold a button.

    buttons · buzzer · clock

  21. Lesson 21

    Switch piano

    Switches pick a note from C to the next C; the buzzer plays it.

    switches · buzzer · clock

  22. Lesson 22

    Doorbell

    One press plays ding (high) then dong (low), then stops.

    buttons · buzzer · clock

  23. Lesson 23

    Scrolling text

    HELLO marches across the 4-digit display.

    display · clock

  24. Lesson 24

    Digital clock

    Minutes and seconds on the display, with a button to set the minutes.

    buttons · display · clock

  25. Lesson 25

    Scoreboard

    Two players, two buttons, the score in decimal on the display.

    buttons · switches · display · clock

  26. Lesson 26

    Breathing LED

    An LED that slowly fades up and down, like a sleeping laptop.

    LEDs · clock

  27. Lesson 27

    Drive a servo

    Point a hobby servo with the switches.

    switches · servo · clock

  28. Lesson 28

    Shift register

    Drive 8 more LEDs from three pins through a 74HC595.

    shift register · clock

  29. Lesson 29

    Keypad scanner

    Read a 4×4 keypad and show the key on the display.

    display · keypad · clock

  30. Lesson 30

    Final project: up/down counter

    Put it all together: buttons, a decimal display and binary LEDs.

    LEDs · buttons · display · clock

Runs for real

Your Verilog is synthesized to gates in your browser and simulated cycle by cycle. Nothing is faked or pre-recorded.

Checked for you

Each lesson drives your design like a test bench would and tells you which goal failed and why.

Then on a real board

Build for a Tang Nano 9K, iCEstick or iCEBreaker and program it from the flasher. No toolchain to install.