Microcontrollers: The Arithmetic Logic Unit
In Microcontrollers: The Arithmetic Logic Unit, you'll learn ...
- The purpose of an arithmetic logic unit (ALU) in the central core of a central processing unit (CPU).
- How arithmetic and logical operations are performed within a CPU
- How the instruction from the machine code from a compiled computer program gets translated into useful code for the ALU to determine which operation to perform
- How ALUs were designed in early computers
Overview
The arithmetic logic unit (ALU) is the central core of a central processing unit (CPU). The ALU is simply a digital circuit that performs arithmetic and logical operations on binary numbers. They are combinational logic circuits which means that their outputs change asynchronously in response to changes to their inputs. ALU circuits perform operations on integer binary numbers. All microcontrollers contain an arithmetic logic unit (ALU). It is a fundamental building block of the CPU.
An ALU has two integer inputs called operands and another input called an opcode. The opcode instructs the ALU which instruction to perform (like addition, subtraction, decrement, increment, AND, OR, NOT, XOR, etc.). The opcode code is a binary code that comes from the instruction set (or program) that is being executed.
The instructions or program will contain both the operands or numbers to be used and the opcode that tells the ALU what to do with the numbers, eg. add the numbers. These instructions are usually written in a higher-level programming language and are stored in the computer's main memory. A compiler will compile the higher-level language program and convert it to machine code. The computer executes one instruction at a time.
This course focuses on the ALU. The course explains how arithmetic and logical operations are performed within a CPU. This course explains how the instruction from the machine code from a compiled computer program gets translated into useful code for the ALU to determine which operation to perform and where the data is coming from.
Specific Knowledge or Skill Obtained
This course teaches the following specific knowledge and skills:
- How an ALU selects its different functions
- How ALUs were designed in early computers
- How an ALU uses its operands
- How an ALU uses its opcode
- How an ALU performs subtraction
- How a full adder works with carry in and carry out
- The difference between a half adder and a full adder
- The logic diagram of a full adder
- How to describe an ALUs operations with a truth table
- How an instruction set is converted into machine code
- How machine code is decomposed into an opcode that configures the ALU for a particular operation
- How an ALU is integrated into a CPU
- How the fetch-decode-execute cycle works in a CPU
- The significance of the 74181 ALU in early computers
- How many arithmetic and logic operations that a 74181 ALU can perform
- The schematic and truth table of the 74181 ALU
Certificate of Completion
You will be able to immediately print a certificate of completion after passing a multiple-choice quiz consisting of 28 questions. PDH credits are not awarded until the course is completed and quiz is passed.
This course is applicable to professional engineers in: | ||
Alabama (P.E.) | Alaska (P.E.) | Arkansas (P.E.) |
Delaware (P.E.) | District of Columbia (P.E.) | Florida (P.E. Area of Practice) |
Georgia (P.E.) | Idaho (P.E.) | Illinois (P.E.) |
Illinois (S.E.) | Indiana (P.E.) | Iowa (P.E.) |
Kansas (P.E.) | Kentucky (P.E.) | Louisiana (P.E.) |
Maine (P.E.) | Maryland (P.E.) | Michigan (P.E.) |
Minnesota (P.E.) | Mississippi (P.E.) | Missouri (P.E.) |
Montana (P.E.) | Nebraska (P.E.) | Nevada (P.E.) |
New Hampshire (P.E.) | New Jersey (P.E.) | New Mexico (P.E.) |
New York (P.E.) | North Carolina (P.E.) | North Dakota (P.E.) |
Ohio (P.E. Self-Paced) | Oklahoma (P.E.) | Oregon (P.E.) |
Pennsylvania (P.E.) | South Carolina (P.E.) | South Dakota (P.E.) |
Tennessee (P.E.) | Texas (P.E.) | Utah (P.E.) |
Vermont (P.E.) | Virginia (P.E.) | West Virginia (P.E.) |
Wisconsin (P.E.) | Wyoming (P.E.) |