ALU performs arithmetic and logic operations. It is also one of the most fundamental units of many computing circuits, including the central processing unit (CPU) of computers and the graphic processing unit (GPU) of video cards.
In this repo you can find independent modules that can perform 8-bit arithmetic operations like ADDITION
, SUBTRACTION
and logic operations like AND
, OR
,NAND
,NOR
,XOR
,XNOR
.
Inputs of an ALU are primarily the operands which are the data to be operated on. In addition, an ALU has opcodes (operation codes) as inputs to control the type of operation the ALU shall perform.