Topic 1 Introduction To The Microprocessor and Computer
Topic 1 Introduction To The Microprocessor and Computer
Topic 1 Introduction To The Microprocessor and Computer
the
Microprocessor
and Computer
WMSU
• Control
– Within the computer, a control unit manages the computer’s
resources and orchestrates the performance of its functional
parts in response to instructions.
COMPUTER STRUCTURE
When computer functions come together
Computer Structure
The following components are structures of a single-
processor computer:
• Main memory
– Stores data.
Computer Structure
• I/O
– Moves data between the computer and its external
environment.
• System interconnection
– Some mechanism that provides for communication among
CPU, main memory, and I/O.
– A common example of system interconnection is by means of a
system bus, consisting of a number of conducting wires to
which all the other components attach
Central Processing Unit
The most interesting and in some ways the most complex
component is the CPU. Its major structural components are as
follows:
• Control unit
– Controls the operation of the CPU and hence the computer. (Control)
• Arithmetic and logic unit (ALU)
– Performs the computer’s data processing functions. (Processing)
• Registers
– Provides storage internal to the CPU. (Memory)
• CPU interconnection
– Some mechanism that provides for communication among the control
unit, ALU, and registers. (Communication)
CPU Diagram
Arithmetic Logic unit
• The ALU contains electronic circuits necessary to perform
arithmetic and logical operations.
• The arithmetic operations are ADD, SUBSTRACT,
MULTIPLY, DIVIDE, etc.
• The logical operations include COMPARE, SHIFT,
ROTATE, AND, OR, etc
• The control unit analyses each instruction in the program
and sends the relevant signals to all other units – ALU,
Memory, Input unit and Output unit
Instructions Inside a Computer (General
Idea)
• A computer program consists of both instructions and data.
The program is fed into the computer through the input unit
and stored in the memory.
• In order to execute the program, the instructions have to be
fetched from memory one by one.
• This fetching of instructions is done by the control unit.
• After an instruction is fetched, the control unit decodes the
instruction.
• According to the instruction, the control unit issues control
signals to other units.
Instructions Inside a Computer (General
Idea)
o After an instruction is executed, the result of the
instruction is stored in memory or stored temporarily in
the control unit or ALU, so that this can be used by the
next instruction.
o The results of a program are taken out of the computer
through the output unit.
o The control unit, ALU and registers are collectively known
as Central Processing Unit (CPU)