A02- Fetch, Execution and IO

 CPU (Central Processing Unit), also called the Processor is the "heart" of the computer.

Data is stored in Bits.

  • One byte is equal to 8 bits.
  • A bit can be either 0 or 1.
  • A pulse of 5 volt of electricity can represent 1 bit and a pulse of 0 volt can represent 0 bit.
  • With fiber optic cable, 1 bit is represented by the presence of light and 0 by the absence of light.
  • ASCII- American Standard Code for Information Interchange
Functional Units

  • Organized into words of typically 32 bits which contains 4 bytes.
Cache Memory
  • Adjunct to the main memory
  • Much smaller and faster than the main memory
  • Holds section of the data currently being executed.
Processor
  • Logic circuits for performing arithmetic and logic operations.
  • Timing and control Circuits for fetching program instructions and data from main memory, one after another
  • Registers (16 or 32), each of which hold one word of operand data sections of the program and data currently being executed.
Processor
Arithmetic and Logic Unit
  • Most computer operations are executed in the ALU of the processor.
Control Unit
  • Memory, ALU and I/O units store and process information and perform input and output operations.
  • Control Unit makes sure that the operations of this unit are coordinated.
  • It also directs all the activities in the computer.
Instruction Cycle or Machine Cycle
  • Computer system derives its power by being able to repeat the basic operations billions of times per second.
  • A single cycle consists of Fetch, Decode, Execute, Memory Access and Write Back phases.
Instruction Type
  • Load: Read a data operand from memory or an input device into the processor.
  • Store: Write a data operant from a processor register to memory or an output device.
  • Operate: Perform an arithmetic or logic operation on data operands in processor register.

Processor components
  • The program counter (PC) register holds the memory address of the instruction. In most processors, the PC is incremented after fetching an instruction, and holds the memory address of (" points to") the next instruction that would be executed.
  • The instruction register (IR) holds the current instruction.
  • General purpose registers hold data and addresses.
  • Control circuits and the arithmetic and logic unit (ALU) fetch and execute instructions.
PC: Program Counter
  • As each instruction gets fetched, the program counter increases its stored value by 1.
  • After each instruction is fetched, the program counter points to the next instruction in the sequence.
  • When the computer restarts or is reset, the program counter normally reverts to 0.
Handling I/O Devices
An application program can:
  1.  Read data from an input device.
  2. Write data to an output display screen.
  3. Sence the readiness of an input or output device to perform a transfer.
Performance
How quickly can program be executed?
  1. Speed of electronic circuits in the processor.
  2. Access time to cache and main memory.
  3. Design of the instruction set.
  4. Number of operations that can be done at the same time (parallelism).
Technology
Improvement in the materials used for transistors means instructions can be executed faster.
Improvement in process technology mean more transistors can be placed on a
chip leading to:
•More logic functionality
•More memory storage capacity
 
You want a fast CPU for the new computer you are building, and your motherboard only has one CPU socket. To increase the processing power, you need a CPU that provides more than one processor. What is this CPU called?
A. multicore 
B. multiple
C. multifaceted
D. multicast.


Comments

Popular posts from this blog

Topic D02 Introduction to Linux

EO2-Linux Network and Process Managment

Topic D01- Container Technology