Understanding Verilog
What Verilog is used for, how it describes a circuit, and where it fits in an FPGA project.
Verilog describes circuits and their connections. It supports behavioral simulation, RTL synthesis for FPGA or ASIC targets, and architecture maintenance as text.
Classic Verilog belongs to IEEE 1364; SystemVerilog incorporates it into IEEE 1800. This path uses Verilog-2001 syntax in .v files.
Describe a first module
A module contains the interface and logic. This lock allows opening when a badge is recognized and the door is closed: