
Explore bitwise and equality operators for per-bit operations on buses, including not, and, or, xor, nor, masking, forcing zero, pattern matching, and design considerations for synthesis and simulation.
Why hardware is designed at the register-transfer level and where Verilog fits in the chip design flow. You will see how RTL code becomes real silicon and what hardware description languages let you do that schematics cannot.
The building blocks of every Verilog design: modules, input and output ports, buses and the core keywords. You will learn how a design is divided into modules and how to read and write a simple module.
Describe hardware behaviour with always blocks, sensitivity lists, if and case statements. You will see why behavioral code reads close to natural language and how it maps to logic.
Use continuous assign statements to build a half adder in dataflow style, deriving the sum and carry equations and seeing the gates synthesis creates from them.
Understand what runs in parallel and what runs in order in Verilog, how this differs between simulation and hardware, and how simulation-synthesis mismatches cause real design failures.
Build a full adder three ways: dataflow equations, a behavioral always block and a structural design that instantiates two half adders. Learn module instantiation and port connection conventions.
Write a testbench that drives inputs, applies delays and checks outputs against expected values. You will learn which constructs are for simulation only and how to read the resulting waveforms.
What 0, 1, X and Z mean in Verilog, how they model real hardware such as tri-state buffers and unknown power-up values, and the difference between wire and reg.
Size, base and value in Verilog literals, how unsized and mismatched numbers are extended, and how to represent negative numbers with two's complement.
Bitwise AND, OR, XOR, NAND and NOR on buses, masking and extracting bits, and arithmetic operators with the bit widths needed to capture carry and borrow.
Logical vs case equality and how X values affect them, logical and reduction operators, and logical vs arithmetic shifts, with notes on what is synthesizable.
Join and replicate buses with concatenation, build sign extension, and write compact multiplexing logic with the conditional operator. Includes how operators behave when X or Z is present.
Reuse code with tasks and functions, understand the differences between them, and build a 4-bit adder from smaller blocks with a self-checking test.
Design 2-to-1 and 4-to-1 multiplexers in several styles, including case statements and hierarchical muxes, and see which coding style is clearest and safest.
Design decoders and encoders, add enable and valid outputs, and understand how each maps to logic gates.
Build a priority encoder that picks the highest-priority input and a magnitude comparator, using behavioral code that synthesizes cleanly.
Design an 8-bit barrel shifter and a simple ALU, then learn the combinational coding rules that avoid latches and loops: complete sensitivity lists, full case coverage and default assignments.
Write a structured testbench for combinational blocks, drive stimulus over time and check results, so you can verify each design you build.
Declare signed values, understand two's complement in hardware and see exactly when Verilog sign-extends or zero-extends, with worked examples.
Latches vs flip-flops, level vs edge sensitivity, and how to code a positive-level latch with and without reset. Learn why designers usually avoid latches.
Code a D flip-flop and learn the difference between blocking (=) and non-blocking (<=) assignments, with a shift-register example that shows why clocked logic uses non-blocking.
Add asynchronous reset and set to flip-flops, code positive- and negative-edge flops, and recognise which code infers a flop and which infers a latch.
How synchronous and asynchronous resets are coded and built in hardware, their advantages and risks, active-high vs active-low resets, and reset metastability.
Build register sets with buses and design left and right shift registers, including serial-in and parallel-out variants.
Design a universal shift register with mode control for hold, shift left, shift right and parallel load, then build a synchronous up counter.
Write a testbench with a generated clock and reset sequence for a counter, then design an up-down counter with a direction control.
Design a modulus (mod-N) counter, make designs reusable with parameters, and build a loadable range counter.
Design divide-by-2 and divide-by-4 clock dividers, then the trickier divide-by-3 with a 50% duty cycle using both clock edges.
Design a synchronous FIFO: memory array, read and write pointers, a counter, and the full and empty conditions that make it safe to use.
Extend the FIFO to separate read and write clocks, then design single-port, dual-port and true dual-port RAM and see when read-write collisions can happen.
Design finite state machines in Verilog: state encoding, next-state and output logic, and a Mealy detector for the sequence 101.
Modify the detector to handle overlapping sequences, build the Moore version, and compare how outputs and state counts differ between Mealy and Moore machines.
How the simulator schedules events, what delta delays are, and why blocking and non-blocking assignments update at different times. Essential for writing predictable RTL and testbenches.
Verilog is the most widely used language for describing digital hardware. This course teaches Verilog the way a designer uses it: every construct is tied to the hardware it creates, so you learn to think in circuits, not just code.
You will go from data types and operators to combinational logic, sequential design and complex state machines, with practical design examples throughout.
What you will learn
Verilog data types and operators, including bitwise and equality operators
Modeling combinational logic: muxes, decoders, encoders and arithmetic
Sequential design: flip-flops, resets, registers and counters
Complex sequential logic and finite state machines
Writing synthesizable RTL and avoiding common coding mistakes
Practise with free hands-on labs
Write Verilog, run Icarus Verilog and see waveforms in the vlsideepdive Verilog labs: 47 self-checking labs from half adders to FIFOs and FSMs, plus logic design labs for the fundamentals. The labs run in your browser with no installs or licenses, each comes with a quiz, and the link is in your welcome message.
Who this course is for
ECE and EEE students
VLSI and FPGA beginners
Anyone preparing for RTL design interviews
About the instructor
Vikas Sachdeva has spent close to 20 years in EDA and chip design. He managed the timing constraints and mode-merging products at Fishtail Design Automation, holds a US patent in clock domain crossing verification, and speaks and chairs sessions at DAC and DVCon. He runs vlsideepdive, which offers free VLSI courses and hands-on labs.