Digital System Design
Module 4: Testbench
Testbench and Port Mapping
Testbench In VHDL, a testbench is a module that instantiates the unit under test (UUT) and applie...
Testbench in Combinational Circuit
To use a testbench in a combinational circuit, you need to follow these steps: 1. We must have a ...
Testbench Architecture Models, Assert, and Report
Testbench Architecture Models As mentioned in the previous section, there are threen main testben...
Testbench for Sequential Circuit
Sequential circuit testbenches are similar to those for combinational circuits but include additi...
Read and Write File
In VHDL, you can read and write files using the textio package. The textio package provides proce...
Module 5: Structural Style Programming In VHDL
Structural Style, Port Mapping, and Generic Map
Structural Style Programming Structural Style Programming in VHDL allows designers to build digit...
VHDL Modularity
We will build a 4-bit Ripple Carry Adder using 4 Full Adders in Structural Style Programming. Eac...
Array and Types in VHDL
Array In VHDL, an array is a collection of elements that have the same data type. You can think o...
Module 6: Looping
Module 7: Procedure, Function, and Impure Function
Module 8 : Finite State Machine
Finite State Machine
A Finite State Machine (FSM), or Finite Automata, is a mathematical model of a system whose state...
Finite State Machine in VHDL
Basically, FSM serves to describe the workings of a sequential circuit. Therefore, the VHDL code ...
FSM Implementation Example in VHDL
Moore Machine This FSM has two states: ST0 and ST1. In the ST0 state, the FSM outputs '0', and in...