Digital Design & Verilog: Foundations to Advanced RTL
Course Scope
This curriculum teaches digital design from fundamental logic to functional Register-Transfer Level (RTL) architecture. The course requires no previous hardware description knowledge.
The curriculum contains ten modules. Modules 1 through 3 explain digital logic theory, Boolean algebra, and state machine architecture. Starting in Module 4, lessons implement designs using Verilog. Module 7 introduces production RTL design patterns. Modules 9 and 10 introduce SystemVerilog constructs and complete capstone projects.
Target Audience: Engineering students, FPGA designers, software engineers transitioning to hardware, and practicing engineers who require foundational knowledge.
Course Map
Modules
Module 1 — Foundations of Digital Logic
This module covers fundamental mathematics and digital logic principles required before writing hardware description code.
| Section | Topics |
|---|---|
| 1.1 Number Systems & Arithmetic | Binary, hex, octal, signed numbers, two’s complement, overflow |
| 1.2 Boolean Algebra | Axioms, theorems, De Morgan’s laws, SOP/POS canonical forms |
| 1.3 Logic Gates & Truth Tables | AND/OR/NOT/NAND/NOR/XOR, CMOS intuition, universal gates |
| 1.4 Karnaugh Maps & Logic Minimization | 2–4 variable K-maps, prime implicants, don’t cares, Quine-McCluskey |
| 1.5 Combinational Building Blocks | MUXes, decoders, encoders, priority encoders, comparators |
25 lessons · Start here → Why Does Your Computer Only Know Two Numbers?
Module 2 — Combinational Circuit Design
This module teaches functional arithmetic units, adders, subtractors, multipliers, ALUs, and combinational timing hazards.
| Section | Topics |
|---|---|
| 2.1 Adder Circuits | Half adder, full adder, ripple carry, carry lookahead, carry select |
| 2.2 Subtractors & ALU Design | Two’s complement subtraction, basic ALU |
| 2.3 Multipliers & Shifters | Array multiplier, Wallace tree, barrel shifter |
| 2.4 Hazards in Combinational Logic | Static and dynamic hazards, detection, and elimination |
Module 3 — Sequential Circuit Design
This module explains sequential circuits, state storage, clocking, and finite state machines.
| Section | Topics |
|---|---|
| 3.1 Latches & Flip-Flops | SR latch, D/JK/T flip-flops, setup, hold, propagation delay |
| 3.2 Synchronous vs. Asynchronous Design | Industrial requirements for synchronous digital design |
| 3.3 Finite State Machines | Mealy and Moore models, state diagrams, state encoding, FSM design |
| 3.4 Registers & Shift Registers | Parallel load, SISO/SIPO/PISO, bidirectional registers |
| 3.5 Counters | Synchronous and ripple counters, up/down, modulo-N, ring, decade |
| 3.6 Memory Elements | SRAM/DRAM cells, ROM types, register files |
Module 4 — Introduction to Verilog HDL
This module introduces hardware description principles, modules, ports, data types, and structural and dataflow modeling.
| Section | Topics |
|---|---|
| 4.1 Hardware Description Principles | Simulation versus synthesis, design and verification flows |
| 4.2 Verilog Language Basics | Modules, ports, wire and reg data types, parameters, directives |
| 4.3 Operators | Arithmetic, bitwise, reduction, conditional, equality operators |
| 4.4 Structural Modeling | Module instantiation, port connection, primitive gates, netlists |
| 4.5 Dataflow Modeling | Continuous assignments, assign syntax, synthesis rules |
Module 5 — Behavioral Verilog for Synthesis
This module teaches synthesizable behavioral constructs that map directly to digital registers and combinational gates.
| Section | Topics |
|---|---|
| 5.1 Procedural Blocks | always and initial blocks, blocking (=) and non-blocking (<=) assignments |
| 5.2 Sensitivity Lists & Combinational Blocks | always @(*), incomplete sensitivity lists, unwanted latch inference |
| 5.3 Conditional & Case Statements | if-else, case/casex/casez, full case, latch prevention |
| 5.4 Loops in Verilog | for/while/repeat/forever, synthesis constraints |
| 5.5 Modeling Flip-Flops & Registers | Synchronous and asynchronous resets, clock enable, clock gating |
| 5.6 Modeling FSMs in Verilog | State machine procedural coding, one-hot and binary encoding, safe FSMs |
Module 6 — Verilog for Testbench & Simulation
This module covers simulation-only language features used to verify hardware designs.
| Section | Topics |
|---|---|
| 6.1 Testbench Architecture | Self-checking testbench structure, Device Under Test (DUT) instantiation |
| 6.2 Simulation Constructs | $display, $monitor, file I/O operations, simulation timing control |
| 6.3 Clocks & Reset Sequences | Clock generation patterns, reset assertion sequences |
| 6.4 Writing Self-Checking Tests | $error, reference models, automated verification |
| 6.5 Waveform Analysis | Value Change Dump (VCD) files, GTKWave viewer, simulation debugging |
Module 7 — Advanced RTL Design Techniques
This module teaches professional design patterns used in ASIC and FPGA engineering.
| Section | Topics |
|---|---|
| 7.1 Parameterized & Scalable Modules | parameter, localparam, generate blocks, scalable structures |
| 7.2 Arithmetic Circuits in RTL | Signed arithmetic implementation, saturation logic, pipelined math |
| 7.3 Pipeline Design | Throughput, latency, pipeline stages, stalls, bubbles, MAC unit |
| 7.4 FIFOs — Synchronous & Asynchronous | Status flags, Gray code pointers, asynchronous FIFO design |
| 7.5 Clock Domain Crossing | Metastability, synchronizer flip-flops, multi-bit CDC, handshakes |
| 7.6 Low-Power Design Techniques | Clock gating, power gating, operand isolation |
Module 8 — RTL Coding for Quality & Synthesis
This module covers coding styles, timing constraints, and design analysis for efficient logic synthesis.
| Section | Topics |
|---|---|
| 8.1 RTL Coding Guidelines & Style | Naming conventions, reset consistency, simulation-synthesis consistency |
| 8.2 Synthesis-Aware Coding | Priority encoders, resource sharing, synthesis optimization |
| 8.3 Timing Constraints & STA Basics | Setup and hold paths, critical path analysis, SDC constraints |
| 8.4 Common RTL Bugs & Debugging | X-propagation, unintended latch inference, reset faults, multiple drivers |
Module 9 — SystemVerilog for Design & Verification
This module introduces modern SystemVerilog extensions for hardware design and functional verification.
| Section | Topics |
|---|---|
| 9.1 SystemVerilog Design Enhancements | logic type, always_ff, always_comb, typedef, struct, interfaces |
| 9.2 SystemVerilog Verification Basics | Classes, constrained random verification, modern testbench structure |
| 9.3 SystemVerilog Assertions (SVA) | Immediate and concurrent assertions, sequence operators, properties |
Module 10 — Capstone Projects
This module contains five complete RTL systems designed from technical specifications to verified simulation.
| Project | Description |
|---|---|
| Project 1 — 8-bit RISC Processor Core | Instruction set architecture, datapath, control unit, pipeline stages |
| Project 2 — UART Controller | Baud rate generation, FSM transmitter/receiver, self-checking testbench |
| Project 3 — SPI Master Controller | Four SPI operational modes, CPOL/CPHA, shift register, CS control |
| Project 4 — Synchronous SRAM Controller | Address decoding, read/write timing, parameterized memory model |
| Project 5 — AXI4-Lite Slave Interface | Ready/valid handshake protocol, internal register file, error response |
Tools Used in This Course
Simulation and synthesis exercises use open-source electronic design automation (EDA) tools:
- Icarus Verilog — Verilog simulation engine
- Verilator — Cycle-accurate simulator
- GTKWave — Digital waveform viewer
- Yosys — Logic synthesis suite
Getting Started
To begin studying digital logic foundations, open Module 1:
→ Module 1: Foundations of Digital Logic
If you have completed digital logic foundations, you can start directly with Verilog in Module 4.