11 Arithmetic Logic Unit (ALU) Flashcards
What is the ALU?
Combinational circuit
It carries out arithmetic operations such as:
addition • subtraction • multiplication • others
It carries out logic operations such as:
AND, OR, NAND, etc • Comparisons (>=, ==, etc
It outputs status bits for the Flags/Status register to show:
Carry/borrow from add/subt operations
- Negative results from an operation
- Zero results from an operation
ALU symbol
The ALU employs the following for its operation:
Two N-bit data inputs, e.g, A and B inputs
- One N-bit data output, e.g., Y output
- A control input that specifies which operation to execute, e.g., F input
Example operations performed by the ALU?
Opcode
operation code used to let the ALU know what is the required operation.
Mnemonics,
easily remembered alphabetic code for the opcode. Mnemonic is used by the Engineer, but by the ALU.
machine language
ALU understand machine language
What is the status register?
The status register contains information about the state of the microprocessor after an operation has been executed.
The status register allows the program to take a certain action based on a particular condition that resulted from a previous instruction
Common flags?
The Common instruction set of the microprocessor? ALU or Register operation
Instruction Set of the microprocessor
What does an instruction set do/contain?