Download presentation
Presentation is loading. Please wait.
1
Lesson 3 0x003 011 Hardware Components
Modified and presented by : Mohamed Zaki
2
Topics Simple Computer Architecture Main Components CPU Architecture
Storage & Memory Devices Screen & Display Bus Systems Input / Output Architecture Executing instruction Instruction set types
3
COMPUTER ARCHITECTURE Von Neumann Architecture
CPU/ Processor Address Bus Main Memory Data Bus Control Bus Input & Output Devices
4
Examples of CPUs Based on the manufacturer: Intel: Celeron Pentium I.
Pentium MMX. ( Multimedia Extension) Pentium II. Pentium III. & Pentium 4. Centrino. ( Mobile Technology) Core 2 DUO Dual core/ Quad core/ Eight core Core i series (Laptop, Desktop, and Mobile Device Processors) Xeon (Server and Workstation Processors) AMD. ARM Dual Core A4,A5, A6 ARM Cortex-A9 MPCore (for iPad & iPhone and others)
5
CPU Architecture The clock: CPU: CPU Components:
CPU : Central Processing Unit. Also called Processor CPU: Is the part of a computer in which arithmetic and logical operations are performed and instructions are decoded then executed. CPU Components: ALU ( Arithmetic and Logic Unit) Is the unit where all Arithmetic and Logic operation are performed CU (Control Unit) Is the unit which controls communication and co-ordination between input/output and other devices. Registers: Are high speed & small in size temporary memory storage areas used during data manipulation ( calculation , comparison , etc..) The clock: It is a circuit for generating pulses that enable computer components to work in an ordered manner .
6
Memory Devices Any memory is constructed from a collection of memory cells. The size of the memory is measured by Bytes (8 cells) Each memory cell is made of Transistors and/or Capacitors connected together. Each cell contains a combination of binary data(0s or 1s). Types of Memory: RAM. Is used as Main Memory of the Computer ROM. (Helps to store data permanently such as Setup-data) Cache Memory ( Helps during program execution )
7
Random Access Memory (RAM)
It also called Main or Primary Memory. Random means: At any time you can access any where Access means: Read or Write data Programs & Data are stored there before processing . The larger amount of RAM, the quicker programs will run. More than one type of RAMs are used in modern PCs, like DRAM(Dynamic RAM) and SDRAM(Synchronous DRAM) DDR SDRAM / DDR2 SDRAM DDR3 SDRAM / DDR4 SDRAM The data will be lost if the power is cut (Volatile Memory). Sequential Access Random Access
8
Random Access Memory (RAM)
DDR DDR 2 DDR 3 memory modules for desktop PCs (DIMM).
9
Read Only Memory (ROM) It holds the firmware program (BIOS) Basic Input/Output System. A set of initial instructions for input and output Reading character from the keyboard Display character on the screen It starts the POST “ Power On Self Test” program It contains auto-startup program that will load the necessary OS programs in RAM. The information remains in the ROM when the computer turned off. ( Nonvolatile Memory)
10
The Differences between ROM and RAM:
ROM (Read Only Memory) RAM (Random Access Memory) Used to store the BIOS by the factory. Mainly, ROM can be used for read only, but we can write or modify the ROM under some conditions. Not volatile memory (i.e. the information remains in the ROM when the computer turned off) Used to store programs such as accounting program, games, word processor by the user. We can use the RAM for read and write data. Volatile memory (i.e. the information in the RAM is removed when the power turned off)
11
Cache Memory Is a small memory, located close to the processor?
Some processors are built with internal cache memory. It has much shorter access time than the RAM. Therefore, it is used to hold instructions and data that has recently been accessed or expected. There are two types of cache memory: L1 and L2. L1 ( Level 1) internal cache, built in with in the CPU. L2 ( Level 2) external cache, built in with in the Motherboard, L2 is lager than L1. ( A+ Book p 131)
12
CPU, RAM, and Cache Diagram
Write through cache. Write back cache. Cache RAM
13
Hard Disk
14
Hard Disk is a data storage device used for storing and retrieving digital information using rapidly rotating discs (platters) coated with magnetic material. A magnetic heads arranged on a moving arm to read and write data to the surfaces.
15
Disk Organization Sector Track
Magnetic polarity determines the bit value (1,0) Sector Bit Value is 1 Bit Value is 0 Track The Format Command is used to create Tracks and Sectors
16
Other Storage Devices Flash Memory SSD DVD Disks Magnetic Tapes
Flash Memory (SSD)Types
17
Storage Device Hierarchy
Size Bytes M Bytes G Bytes G – T Bytes T Bytes Speed 1 nsec 10 nsec 100 nsec msec sec -min Registers Cache Main Memory(RAM) Flash Memory Hard Disks Magnetic Tapes Hard Disk and Tapes have mechanical movements Others do not have and called Solid Sate Devices (SSD)
18
Bus Systems (Connecting them together )
Is a collection of parallel electrical lines which connect the computer components. The buses used to transfer: Data signals. Address signals. Control signals.
19
Bus Systems Address Bus Size of memory that can be addressed= 2L
The address bus is the set of wires carrying the addressing information used to describe the memory location, which the data is being sent or retrieved. The size of the address bus indicates the maximum amount of RAM that a chip can address. Size of memory that can be addressed= 2L Were L = No. of Lines in address bus ( Size of address bus)
20
Bus Systems Address Bus Size of address bus Size of memory 1 21 16
216 ~= 64 KB 2 22 =4 20 220 ~= 1 MB 3 23=8 30 220=1 GB 4 24 =16 32 232=4 GB : : 64 264=16 Exa Byte 10 210 =1024=1KB 11 211=210x21=2 KB 12 212=210x22=4 KB
21
Bus Systems Address Bus Examples: 1) how many addresses can be built by 3 digits (3 lines): 2n = 23 = 8 address bus locations from ( 000 to ) 2): how many addresses can be built by 3 digits (3 lines): 2n = 23 = 8 address bus locations from ( 000 to 111 )
22
Input / Output Architecture
The computer has the ability to send and receive data to and from other devices. We can transfer data in parallel and serial lines. When the CPU wishes to send data to a particular I/O devices it places a unique identity code ( address ) onto the address line. Only the device that recognizes that code will respond to the command that is placed on the control line.
23
Screen Screen is a display device that is typically a panel of lighting elements such Liquid Crystal Display (LCD) or Light Emitting Diode (LED). The screen has a two-dimensional grid of what we call Picture elements (pixels) which is the smallest controllable element of a picture represented on the screen. pixels are often represented using dots or squares Each pixel has three colors (red, green and blue OR cyan, magenta, yellow). You can make any color by mixing those basic three colors
24
Screen The display resolution: is the number of pixels in each dimension that can be displayed It is usually expressed as width × height, with the units in pixels: for example, "1024 × 768" means the width is 1024 pixels and the height is 768 pixels. pixel Different arrangement of Pixels
25
Example
26
Screen Examples of typical resolutions used in modern devices
Given Name Used in 640x 480 VGA Old monitors 800 x 600 SVGA 1024 x 768 XGA Most of devices including tablets 1920 x 1080 HD TV and monitors 1136 x 640 iPhone 5s 2048 x 1536 Retina display Apple tablets 2*(1024 x 768) > 4000 x --- > 8000 x --- 4K 8K Mostly TV
27
Main Memory / RAM / Primary Memory GENERAL PURPOS REGISTER
CPU Architecture Main Memory / RAM / Primary Memory ALU 101010 100001 001010 010100 ؟ Control Unit GENERAL PURPOS REGISTER CIR MAR Program Counter Register MBR Bus : set of wires
28
CPU Registers General purpose registers: Special Purpose Registers:
are used to hold data before and after it is manipulated. Also used for many operation such addition, subtraction multiplication and logic operations Special Purpose Registers: Program counter PC: it is loaded with the address in memory of the first instruction location of a program. After fetching the first instruction, it is increased to point to the next location. Memory Buffer register MBR: All data and instructions pass in and out from the main storage through MBR. Current instruction register CIR: An instruction to be performed will be taken from the main storage via the MBR and placed in register IR. Memory address register MAR : prior to each transfer between the MBR and main storage , the exact source or destination of data in the main storage must be specified by MAR.
29
Executing a Software Program
The chart shows the steps that the CPU uses to execute a software Copy PC contents into MAR & Initiate a memory read. Put the instruction in the MBR. Increment the PC Copy the instruction Which is in the MBR into CIR Decode the CIR Execute the instruction
30
Instruction set types Arithmetic and Logic inst. Set:
Each CPU has a set of instructions Arithmetic and Logic inst. Set: Such as addition, subtraction, multiplication, Increment, decrement, and logical operations, Such as add, sub,mul. I/O instructions: To transfer data between peripherals and memory, or between peripherals and accumulator, Such as mov Processor reference instructions: To stop the microprocessor activities. Such as halt. Fetch (Load) and store instruction: To transfer the data between accumulator and memory, Such as load Memory reference instructions: To access the memory during their execution, it is both Load + store instructions. Transfer of control, or branch instruction: (Executing a Program) To change the program sequence. Such as jmp
32
Examples Why is the difference ?
Similar presentations
© 2025 SlidePlayer.com Inc.
All rights reserved.