HDLBoard: A Virtual DE1-SoC That Runs Your Actual VHDL/Verilog

Learning VHDL or Verilog usually starts with a detour. You install a multi-gigabyte vendor toolchain, track down a board, and sit through synthesis, all to find out whether LEDR <= SW; lights an LED. That's a lot of ceremony for one line of code.

I built HDLBoard for my intro FPGA course at USN (PB1180 Programmerbare logiske kretser). The goal is simple: write HDL, press Start, flip a switch, see an LED. Learn the language first. Timing closure can wait for the next chapter.

"Is it actually simulating?"

Board simulators have a sneaky failure mode. Wire the LEDs straight to the switches for a demo and everything looks perfect, as long as the design happens to be LEDR <= SW;. HDLBoard never does that. Only the simulator (GHDL for VHDL, Icarus for Verilog) writes to the outputs, so the board stays dark until your code drives something. When the first LED lights up, it means something.

Timing that doesn't lie

Simulated time is paced to wall-clock time. A blinker designed for 2 Hz blinks at 2 Hz on screen and on the real board. One honest caveat: dividing a true 50 MHz clock down to 1 Hz takes millions of simulated cycles. For interactive designs there's an optional CLOCK_500Hz port. Just remove it before synthesizing for real hardware.

Looks like the board on your desk

Every component was measured pixel by pixel from reference renders and drawn in pure CSS, with no bitmaps. The switch knobs physically slide instead of changing colour. KEY is active low, so it reads 1111 at rest. Signal names match the entity ports, and LEDR3 sits directly above SW3, just like on the real board.

New: Waveform view

Blinking LEDs show what your design does, but not when. The new waveform view plots your signals over time, so you can see a clock tick, a counter count and an output react to an input, side by side on one timeline. It comes from the same simulator run that drives the board, so what you see is what your code actually did.

It opens from a button next to Clear in the Simulator Output band and takes the place of the testbench/RTL split view. Close it and your split view comes back exactly as you left it. The focus is ease of use for beginners. When you need timing that matches real hardware, that's the point to move on to ModelSim or another professional tool.

What you get

  • Real simulation: GHDL analyse → elaborate → run (Icarus for Verilog). Errors show up with file:line.
  • The board: SW[9:0], KEY[3:0], LEDR[9:0], HEX0–HEX5.
  • Waveform view (new): see your signals plotted over time, straight from the simulation.
  • A small IDE: tabbed editor with syntax highlighting, file explorer with drag-and-drop upload, resizable panes.
  • Testbenches: report/assert output streams live, and the waveform view shows the result. Portless testbenches run at full simulator speed.
  • Real-time pacing: on-screen timing predicts hardware timing.
  • Two ways to run it: a Windows installer with GHDL bundled, or self-host on Linux/macOS/WSL so a whole lab connects over the LAN.

Under the hood

The front end is React + TypeScript + Vite, with a Node.js backend. Each session keeps one simulator process running continuously instead of restarting it on every switch flip. Inputs go in and LEDR/HEX updates come back over a WebSocket. The Windows build wraps everything in Electron and serves only on localhost, so nothing is exposed to the network.

Known limitations: the hosted version has no persistence yet. Reload the page and you're back to the starter project. The Windows app saves your work. Clock dividers from 50 MHz are slow to simulate, which is why the 500 Hz helper exists.

Try it

HDLBoard isn't a replacement for the real board. It's the step before it, where a student's first LED lights up in seconds instead of...

Read more »