The heart of a computer system is an ARITHMETIC ANDLOGIC UNIT (ALU) which is responsible for executing arithmetic(e.g., addition, subtraction, etc.) and logic (e.g., AND, OR, etc.)operations. In this project, you will design, simulate, andimplement a simple 1-bit ALU.
The truth table for ALU is given below:
Operation Selection Inputs Operation Output(s)
S0 S1 A B
0 0 A AND B AB
0 1 A NOR B (A+B)’
1 0 A XNOR B (A⊕B)’
1 1 A SUB B Borrow, Difference