Introduction to Looping Constructs

Introduction to Looping Constructs

Looping constructs are VHDL instructions that allow a program to repeat the same block of code, a process known as iteration (similar to C).

Loops in VHDL are divided into two main categories based on how they function and what they create.


1. Sequential Loops (Inside a process)

These loops are similar to those in traditional programming languages. They describe an algorithm or a sequence of operations that execute step-by-step.

There are two main types of sequential loops:


2. Concurrent Loops (Outside a process)

This type of loop is unique to hardware description languages. It doesn't describe an algorithm but instead describes the replication of hardware structures. It acts like copy and pasting ICs on a breadboard.

image

(well, that's the gist of it)


Revision #2
Created 2025-10-03 16:23:54 UTC by JD
Updated 2025-10-03 16:42:36 UTC by JD