16-Bit ALU Using FPGA: Advanced Logic Circuits and Switching Theory
16-Bit ALU Using FPGA: Advanced Logic Circuits and Switching Theory
S2
S0
0
0
0
0
1
1
S1
0
0
1
1
0
0
0
1
0
1
0
1
OPERATIONS
FUNCTION
A+B
A+B+1
A+1
A-1
B+1
B-1
ADDITION
SUBTRACTION
INCREMENT A
DECREMENT A
INCREMENT B
DECREMENT B
A+B+1
A+B
1
1
1
1
1
1
1
1
0
0
0
0
1
1
1
1
0
0
1
1
0
0
1
1
0
1
0
1
0
1
0
1
NOT A
NOT B
A AND B
A OR B
A NAND B
A NOR B
A XOR B
NOT(A XOR B)
ADDITION WITH
CARRY
SUBTRACTION
WITH BOOROW
NOT A
NOT B
A AND B
A OR B
A NAND B
A NOR B
A EX-OR B
A EX-NOR B
The prototype would make use of logic gates, registers, and states.
The code will be coded using Verilog and synthesized in the FPGA
board and the project shall run on the FPGAs I/O components.