Presentation is loading. Please wait.

Presentation is loading. Please wait.

Introduction to Computer Architecture. What is binary? We use the decimal (base 10) number system Binary is the base 2 number system Ten different numbers.

Similar presentations


Presentation on theme: "Introduction to Computer Architecture. What is binary? We use the decimal (base 10) number system Binary is the base 2 number system Ten different numbers."— Presentation transcript:

1 Introduction to Computer Architecture

2 What is binary? We use the decimal (base 10) number system Binary is the base 2 number system Ten different numbers are used in base 10. How many are used in base 2?

3 Bits & Bytes kilo, mega, and giga are different in binary! bit (b) – binary digit Byte (B) – 8 binary digits KiloByte (KB) – 2 10 bytes MegaByte (MB) – 2 20 bytes GigaByte (GB) – 2 30 bytes

4 Storage Scam! Example: iPod Nano 8GB

5 What is computer architecture? What does “architecture” mean? Layout and interactions of a computer system What is a computer system? Input  Process  Output Can a computer system be more than one computer? Think of an example...

6 Major Components of a Computer Central Processing Unit (CPU) Random Access Memory (RAM) Hard Drive / Disk

7 Central Processing Unit (CPU) Also called the “chip” or “processor” The brain of the computer Major components:  Arithmetic Logic Unit (ALU) calculator  Control unit controls the calculator  Communication bus systems What’s a bus?!? Control Unit ALU Memory Address Bus Data Bus

8 Fetch-Execute Cycle (Machine Instruction Cycle) 1. Fetch instruction from memory 2. Decode instruction in control unit 3. Execute instruction (data may be fetched from memory) 4. Store results if necessary 5. Repeat! Control Unit ALU Memory Address Bus Data Bus

9 ON-OFF-ON-ON 1 0 1 1 Several ways to remember the state of a switch:  Electrical – RAM, flash memory, ROM  Magnetic – Hard drives, magnetic tapes  Optical – CDs, DVDs

10 Primary Memory Memory level CPU accesses closest RAM ~ Random Access Memory  Volatile storage (data is NOT saved when computer is off)  Used to store everything (OS, programs, etc.) while computer is on ROM ~ Read-Only Memory  Non-volatile storage  Often holds the computer’s BIOS (Basic Input/Output System) when computer first loads

11 What does memory look like? Memory ~ RAM Looks like a table Address and Data Address is the location Data is the actual value Memory stores both data and assembly instructions AddressData 036 13765 2786 3356 4252 567980 62355 74234 83466

12 Registers Temporary storage containers used inside the CPU Extremely fast MAR ~ Memory Address Register  Holds the address of where you are fetching from MDR ~ Memory Data Register  Holds the data that was fetched from memory Many other registers too (for all CPU calculations)

13 Fetch-Execute Cycle (Machine Instruction Cycle) 1. Fetch instruction from memory 2. Decode instruction in control unit 3. Execute instruction (data may be fetched from memory) 4. Store results if necessary 5. Repeat! Control Unit ALU Memory Address Bus Data Bus

14 Fetch-Execute Animation http://www.hartismere.com/staticvle/ict skills/FetchExecute.swf http://www.hartismere.com/staticvle/ict skills/FetchExecute.swf

15 Memory Hierarchy

16 Cache Slower than registers Faster than RAM Located in front of main RAM Different levels of cache Level1 (L1) and Level2 (L2) Size is usually around 1 MB

17 Virtual Memory What if a program is too big for RAM? If a program is too big for memory (RAM), then we start using the hard drive (disk) to store data Prevents the computer from stalling/crashing (BUT IT IS SLOW)

18 Hard Drives Persistent storage Non-volatile storage Why do we need it? Other types of persistent storage?

19 CD/DVD/BluRays Lands and pits used to represent binary Optical medium - lasers and refraction used to read lands and pits http://electronics.howstuffworks.com/cd4.ht m http://electronics.howstuffworks.com/cd4.ht m


Download ppt "Introduction to Computer Architecture. What is binary? We use the decimal (base 10) number system Binary is the base 2 number system Ten different numbers."

Similar presentations


Ads by Google