1. Task 1: Behavior Simulation of Full Adder (Week 2)¶
Table of Contents
- Objective: Understand the simple concurrent signal assignment statement, the inertial delay model, and the simulation of a design.
1.1. Knowledge Points¶
- Data Type
- bit, p51-53
- array, enumeration, p56-57
- std_logic, p58-60
- Operators, p61-65
- Logic Operators: and, or, nand, nor, xor, xnor,
- Adding: +, -, &
- Concurrent Statements
- simple concurrent signal assignment (CSA) statement, p71-74
- Delay Model
- Inertial delay model, p86-88
- Test Bench
- Self study Chapter 5.3, p142-148
L1: s1 <= (A xor B) after gate_delay;
L2: s2 <= (Cin and s1) after gate_delay;
L3: s3 <= (A and B) after gate_delay;
L4: sum <= (s1 xor Cin) after gate_delay;
L5: cout <= (s2 or s3) after gate_delay;