Verilog basics

Learn Verilog

Build a practical foundation in digital design, simulation, and self-checking testbenches.

What you will learn

Work through the lessons in order. Each lesson introduces one idea, shows a focused example, explains the important lines, and gives you a practical exercise.

Start with the learning path

Verilog describes hardware behavior. You will learn how modules, signals, combinational logic, sequential logic, and testbenches work together before moving into SystemVerilog and UVM.

Lesson 1 of 7: Introduction to Verilog

Understand what Verilog describes and why digital hardware behaves differently from ordinary software.

module hello_hardware;

  // Hardware description goes here.

endmodule

What to notice

  • module starts a hardware block and endmodule closes it.
  • Comments begin with // and are ignored by the simulator.
Practice: Create a module called first_design and compile it in EDA Playground.

How to study each lesson

  1. Read the concept before copying the example.
  2. Predict the output or waveform before running the simulator.
  3. Change one input, parameter, or statement and observe the result.
  4. Use a self-checking assertion or comparison whenever possible.
  5. Keep the smallest working example as evidence for the next lesson.