VHDLBeginner
Testbench: 4-bit subtractor (VHDL)
Verify difference and borrow for subtractions with and without borrow.
Exercise objective
The DUT subtracts two words and indicates the difference and borrow.
Prerequisites
- Read signals and write assertions in a VHDL testbench.
- Understand the circuit under test: The DUT subtracts two words and indicates the difference and borrow.
Skills you will practice
- Difference
- Borrow
- Boundary
Equipment and tools
- The VHDL editor and validation are available in the browser. You do not need an FPGA board for this exercise.