Skip to content
Tutorials Center
My learning

Topics

Lesson 1 of 37 ยท Getting Started

What Is VHDL?

Learn what VHDL is, how a hardware description language differs from software, where VHDL is used (FPGAs, ASICs) and how to think in parallel circuits.

VHDL stands for VHSIC Hardware Description Language, where VHSIC means "Very High Speed Integrated Circuit". It was created in the 1980s for the US Department of Defense so that contractors could describe chips in a precise, machine-readable way. It became the IEEE 1076 standard in 1987 and has been revised several times since (1993, 2002, 2008, 2019). Today VHDL is used to design FPGAs, ASICs and the digital parts of many embedded products, especially in aerospace, defense, telecom, automotive and industrial systems.

The key sentence to remember is this: VHDL describes hardware, it does not run as a program. You write text, a tool reads it, and the result is either a simulation (a model of the circuit running on your computer) or a netlist of gates and flip-flops that is loaded into a chip. Everything else in this course follows from that idea.

What runs on this site. There is no VHDL simulator or FPGA on this website, so the VHDL code in these lessons is shown in read-only blocks, and we print output only when we are sure what a real simulator such as GHDL prints. For the ideas behind the code (gates settling, state machines, bit vectors, clock edges) we give you small runnable C programs that are clearly labelled as stand-ins. They are models of the concept, not VHDL itself. To run real VHDL, install the free GHDL simulator, as explained in the design flow lesson.

Description, not instructions

A software language such as C or Python is a list of steps the processor carries out one after another. A hardware description language is a description of a structure: which parts exist, how they are wired, and how their outputs depend on their inputs. A tiny VHDL fragment shows the difference:

VHDL
y <= (a and b) or (not c);

This is not "compute y once, then move on". It says: there is a net called y, and it is always driven by an AND gate, an inverter and an OR gate wired like this. Whenever a, b or c changes, y follows. The line has no position in time. You could write ten such lines in any order and the circuit would be identical.

Parallel by nature

Real circuits have no program counter. Every gate in a chip is powered at the same moment, and every gate reacts to its inputs continuously. That is why VHDL's main building block, the concurrent statement, executes "all at once". The first stand-in below models a tiny circuit as three separate "gates" and re-evaluates them in a loop until nothing changes, which is roughly what a simulator does.

C Stand-in (C): three gates settling

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with scanf or fgets), it gets the next line from this box.

Notice that the OR gate is written first in the loop, yet the result is correct. In a circuit the order of statements does not matter, only the wiring does.

Order matters in software, not in hardware

The second stand-in makes the contrast concrete. The same two assignments are run first as normal C (sequential), then as a hardware-style model where both right-hand sides are read from the old values and all updates take effect together.

C Stand-in (C): sequential vs simultaneous update

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with scanf or fgets), it gets the next line from this box.

In VHDL, the statements a <= b; b <= a; inside a clocked process really do swap the two registers, because signal assignments are scheduled and applied together. You will see exactly why in Signals and Variables.

What you can do with VHDL

Use What VHDL produces
FPGA design A configuration file (bitstream) that wires up logic blocks
ASIC design Gate-level netlist, later turned into a silicon layout
Verification Testbenches that check a design in simulation
Modeling Behavioral models of memories, buses and whole systems

VHDL is also strongly typed and verbose compared with its main rival, Verilog/SystemVerilog. That strictness catches mistakes early (you cannot add a bit to an integer by accident), and it is one reason VHDL is popular where reliability matters.

VHDL at a glance

Describes hardware Structure and behavior
Parallel All statements run at once
Strongly typed Fewer silent mistakes
Two uses Simulate it or synthesize it

Text goes in, a simulation or a netlist comes out.

1 / 2

Simulation and synthesis

Two tools read your code for different purposes. A simulator executes the model so you can watch signals change over time. A synthesizer turns it into real gates, flip-flops and wiring. Not everything you can simulate can be synthesized: statements such as wait for 10 ns; or file reading make sense only in simulation. Part of becoming good at VHDL is knowing which subset of the language maps to hardware. Chapter 7 returns to this in detail.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. What does VHDL code primarily describe?

    VHDL is a hardware description language. You describe circuits, and tools simulate them or turn them into gates.
  2. 2. In VHDL, you write the line y <= a and b; before the line z <= y or c;. If you swap the two lines, what happens to the circuit?

    Concurrent statements describe wiring, not steps, so their order in the file does not change the circuit.
  3. 3. Which statement about VHDL is true?

    VHDL is strongly typed, so mixing types such as bit and integer without conversion is an error. It targets FPGAs and ASICs and is also simulated.
  4. 4. Why does this site show VHDL code in read-only blocks?

    The runners support languages such as C, but not a VHDL simulator. Stand-ins model the concepts, and real code can be run with GHDL on your own computer.

Summary

  • VHDL (IEEE 1076) is a hardware description language used for FPGAs, ASICs, modeling and verification.
  • You describe circuits; tools either simulate them or synthesize them into gates.
  • Concurrent statements run in parallel, so their order in the file does not matter.
  • VHDL is strongly typed, which prevents many silent errors.
  • Only a subset of VHDL can be synthesized; the rest is for simulation and testbenches.

Next: The VHDL Design Flow