Testbench with Assertions
Develop a VHDL testbench using assertions for verifying a 4-bit adder. The testbench should stimulate inputs, verify outputs with assert statements, and report errors.
Constraints
- DUT: sum = a + b.
- Test multiple combinations.
- Use assert for mismatches.
- Stop simulation on fatal error.
- Report pass/fail summary.
1entity tb is end tb;2architecture test of tb is3-- TODO4end test;