SlideShare a Scribd company logo
1 of 19
Introduction to Computer
Architecture

      Ankush Srivastava
      Email:- anksri000@gmail.com
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?
Bits & Bytes
   kilo, mega, and giga are different in
    binary!

bit (b) – binary digit
Byte (B) – 8 binary digits
KiloByte (KB) – 210 bytes
MegaByte (MB) – 220 bytes
GigaByte (GB) – 230 bytes
Storage Scam!
   Example: iPod Nano 8GB
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...
Major Components of a Computer

   Central Processing Unit (CPU)
   Random Access Memory (RAM)
   Hard Drive / Disk
ON-OFF-ON-ON




         1               0            1          1

   Several ways to remember the state of a switch:
       Electrical – RAM, flash memory
       Magnetic – Hard drives, magnetic tapes
       Optical – CDs, DVDs
What does memory look like?
                         Address    Data
   Memory ~ RAM            0        36
   Looks like a table      1       3765
   Address and Data        2       786
   Address is the          3       356
    location                4       252
   Data is the actual      5      67980
    value                   6       2355
   Memory stores both      7       4234
    data and assembly       8       3466
    instructions
Central Processing Unit (CPU)
   Also called the “chip”
    or “processor”
   The brain of the                  Control
                                                Address Bus
                                       Unit
    computer                                     Memory
   Major components:                  ALU
       Arithmetic Logic Unit                   Data Bus

        (ALU)
           calculator
       Control unit
           controls the calculator
       Communication bus
        systems
   What’s a bus?!?
Fetch-Execute Cycle
1.   Fetch instruction from
     memory
2.   Decode instruction in        Control
                                            Address Bus


     control unit
                                   Unit
                                             Memory


3.   Execute instruction (data     ALU
                                            Data Bus
     may be fetched from
     memory)
4.   Store results if necessary
5.   Repeat!
Registers
   Temporary storage containers used
    inside the CPU
   Extremely fast
   Fixed size, usually multiples of 8-bits
       Also called a “word”
       Example: 32-bit machines (4-byte words)
   How large is a word in a 64-bit
    machine?
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
Memory Hierarchy
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
Hard Drives
CD/DVDs
   Lands and pits used to represent
    binary
   Optical medium - lasers and refraction
    used to read lands and pits
Direct Access
   also known as “random access”
   No need to go through other data to get
    the data you want
   We already know where the data is, so
    we just get it
   “Magic data retrieval” – no
    movement/motion
   Example: registers, cache, RAM
Sequential Access
   also known as “serial-access”
   Data is ordered in some sequential
    fashion
   To get to your data, you need to go
    through other data in front of it
   Example:
       Fast-forwarding through a tape to get to
        the song you want
Direct-Access vs. Sequential Access
   Direct-Access:
       Advantage: fast access
       Disadvantage: data cannot be accessed in sequential or sorted
        order
           Data is placed randomly on the disk
           Accessing things in order then requires an index file
           Slower when trying to access sequential data that is not already in
            order (back-and-forth-and-back-and-forth)
       Example: hard drives (disks)
   Sequential Access
       Advantage: Simple to organize (already in some sequential
        order)
       Disadvantage: Slow when accessing specific things in no order
       Example: magnetic tape backups
   Could we implement sequential access using a hard
    disk?

More Related Content

What's hot

CPU Architecture - Basic
CPU Architecture - BasicCPU Architecture - Basic
CPU Architecture - BasicYong Heui Cho
 
0 introduction to computer architecture
0 introduction to computer architecture0 introduction to computer architecture
0 introduction to computer architectureaamc1100
 
Instruction Set Architecture (ISA)
Instruction Set Architecture (ISA)Instruction Set Architecture (ISA)
Instruction Set Architecture (ISA)Gaditek
 
General register organization (computer organization)
General register organization  (computer organization)General register organization  (computer organization)
General register organization (computer organization)rishi ram khanal
 
Introduction to computer architecture and organization
Introduction to computer architecture and organizationIntroduction to computer architecture and organization
Introduction to computer architecture and organizationMuhammad Ishaq
 
Von neumann architecture
Von neumann architectureVon neumann architecture
Von neumann architectureHaiderAli759482
 
Computer Organization and Architecture.
Computer Organization and Architecture.Computer Organization and Architecture.
Computer Organization and Architecture.CS_GDRCST
 
Computer Hardware And Configuration
Computer Hardware And ConfigurationComputer Hardware And Configuration
Computer Hardware And Configurationwaqar ahmed
 
instruction cycle ppt
instruction cycle pptinstruction cycle ppt
instruction cycle pptsheetal singh
 
Computer Memory Hierarchy Computer Architecture
Computer Memory Hierarchy Computer ArchitectureComputer Memory Hierarchy Computer Architecture
Computer Memory Hierarchy Computer ArchitectureHaris456
 
02 Computer Evolution And Performance
02  Computer  Evolution And  Performance02  Computer  Evolution And  Performance
02 Computer Evolution And PerformanceJeanie Delos Arcos
 

What's hot (20)

Memory management
Memory managementMemory management
Memory management
 
CPU Architecture - Basic
CPU Architecture - BasicCPU Architecture - Basic
CPU Architecture - Basic
 
0 introduction to computer architecture
0 introduction to computer architecture0 introduction to computer architecture
0 introduction to computer architecture
 
Instruction Set Architecture (ISA)
Instruction Set Architecture (ISA)Instruction Set Architecture (ISA)
Instruction Set Architecture (ISA)
 
General register organization (computer organization)
General register organization  (computer organization)General register organization  (computer organization)
General register organization (computer organization)
 
Introduction to computer architecture and organization
Introduction to computer architecture and organizationIntroduction to computer architecture and organization
Introduction to computer architecture and organization
 
Functional units
Functional unitsFunctional units
Functional units
 
Von neumann architecture
Von neumann architectureVon neumann architecture
Von neumann architecture
 
computer Architecture
computer Architecturecomputer Architecture
computer Architecture
 
Interrupts
InterruptsInterrupts
Interrupts
 
Computer Organization and Architecture.
Computer Organization and Architecture.Computer Organization and Architecture.
Computer Organization and Architecture.
 
Parallel processing
Parallel processingParallel processing
Parallel processing
 
Cache memory
Cache memoryCache memory
Cache memory
 
Computer Hardware And Configuration
Computer Hardware And ConfigurationComputer Hardware And Configuration
Computer Hardware And Configuration
 
instruction cycle ppt
instruction cycle pptinstruction cycle ppt
instruction cycle ppt
 
Computer Memory Hierarchy Computer Architecture
Computer Memory Hierarchy Computer ArchitectureComputer Memory Hierarchy Computer Architecture
Computer Memory Hierarchy Computer Architecture
 
CISC & RISC Architecture
CISC & RISC Architecture CISC & RISC Architecture
CISC & RISC Architecture
 
BASIC STRUCTURE OF COMPUTERS.pptx
BASIC STRUCTURE OF COMPUTERS.pptxBASIC STRUCTURE OF COMPUTERS.pptx
BASIC STRUCTURE OF COMPUTERS.pptx
 
02 Computer Evolution And Performance
02  Computer  Evolution And  Performance02  Computer  Evolution And  Performance
02 Computer Evolution And Performance
 
pipelining
pipeliningpipelining
pipelining
 

Viewers also liked

Computer architecture and organization
Computer architecture and organizationComputer architecture and organization
Computer architecture and organizationTushar B Kute
 
Computer Architecture – An Introduction
Computer Architecture – An IntroductionComputer Architecture – An Introduction
Computer Architecture – An IntroductionDilum Bandara
 
1 Computer Architecture
1 Computer Architecture1 Computer Architecture
1 Computer Architecturefika sweety
 
BASIC COMPUTER ARCHITECTURE
BASIC COMPUTER ARCHITECTURE BASIC COMPUTER ARCHITECTURE
BASIC COMPUTER ARCHITECTURE Himanshu Sharma
 
Basic Computer Architecture
Basic Computer ArchitectureBasic Computer Architecture
Basic Computer ArchitectureYong Heui Cho
 
Ram and-rom-chips
Ram and-rom-chipsRam and-rom-chips
Ram and-rom-chipsAnuj Modi
 
Computer Organization Lecture Notes
Computer Organization Lecture NotesComputer Organization Lecture Notes
Computer Organization Lecture NotesFellowBuddy.com
 
Advanced computer architecture
Advanced computer architectureAdvanced computer architecture
Advanced computer architectureMd. Mahedi Mahfuj
 
Introduction to CA course
Introduction to CA courseIntroduction to CA course
Introduction to CA courseHoang Nguyen
 
Computer_Architecture_O_ECEG-3163_01_Introduction (1)
Computer_Architecture_O_ECEG-3163_01_Introduction (1)Computer_Architecture_O_ECEG-3163_01_Introduction (1)
Computer_Architecture_O_ECEG-3163_01_Introduction (1)Nebiyu Musie
 
Computer architecture
Computer architectureComputer architecture
Computer architectureRozase Patel
 
Computer system architecture
Computer system architectureComputer system architecture
Computer system architectureKumar
 
Computer architecture short note (version 8)
Computer architecture short note (version 8)Computer architecture short note (version 8)
Computer architecture short note (version 8)Nimmi Weeraddana
 
Computer organization and architecture
Computer organization and architectureComputer organization and architecture
Computer organization and architectureSubesh Kumar Yadav
 
History of Computing Hardware
History of Computing HardwareHistory of Computing Hardware
History of Computing Hardwarehplap
 
Instruction Set Architecture – II
Instruction Set Architecture – IIInstruction Set Architecture – II
Instruction Set Architecture – IIDilum Bandara
 

Viewers also liked (20)

Computer architecture and organization
Computer architecture and organizationComputer architecture and organization
Computer architecture and organization
 
Computer Architecture – An Introduction
Computer Architecture – An IntroductionComputer Architecture – An Introduction
Computer Architecture – An Introduction
 
1 Computer Architecture
1 Computer Architecture1 Computer Architecture
1 Computer Architecture
 
BASIC COMPUTER ARCHITECTURE
BASIC COMPUTER ARCHITECTURE BASIC COMPUTER ARCHITECTURE
BASIC COMPUTER ARCHITECTURE
 
Basic Computer Architecture
Basic Computer ArchitectureBasic Computer Architecture
Basic Computer Architecture
 
Tute
TuteTute
Tute
 
Ram vs rom
Ram vs romRam vs rom
Ram vs rom
 
Ram and-rom-chips
Ram and-rom-chipsRam and-rom-chips
Ram and-rom-chips
 
Computer Organization Lecture Notes
Computer Organization Lecture NotesComputer Organization Lecture Notes
Computer Organization Lecture Notes
 
Advanced computer architecture
Advanced computer architectureAdvanced computer architecture
Advanced computer architecture
 
Introduction to CA course
Introduction to CA courseIntroduction to CA course
Introduction to CA course
 
Computer_Architecture_O_ECEG-3163_01_Introduction (1)
Computer_Architecture_O_ECEG-3163_01_Introduction (1)Computer_Architecture_O_ECEG-3163_01_Introduction (1)
Computer_Architecture_O_ECEG-3163_01_Introduction (1)
 
Computer architecture
Computer architectureComputer architecture
Computer architecture
 
Computer system architecture
Computer system architectureComputer system architecture
Computer system architecture
 
Computer architecture short note (version 8)
Computer architecture short note (version 8)Computer architecture short note (version 8)
Computer architecture short note (version 8)
 
Computer organization and architecture
Computer organization and architectureComputer organization and architecture
Computer organization and architecture
 
What is excel
What is excelWhat is excel
What is excel
 
History of Computing Hardware
History of Computing HardwareHistory of Computing Hardware
History of Computing Hardware
 
Instruction Set Architecture – II
Instruction Set Architecture – IIInstruction Set Architecture – II
Instruction Set Architecture – II
 
supercomputer
supercomputersupercomputer
supercomputer
 

Similar to Introduction to Computer Architecture

Nd0201 systemcomponents internal
Nd0201 systemcomponents internalNd0201 systemcomponents internal
Nd0201 systemcomponents internalPanzer944
 
PERFORM CALCULATION AND MENSURATION.pptx
PERFORM CALCULATION AND MENSURATION.pptxPERFORM CALCULATION AND MENSURATION.pptx
PERFORM CALCULATION AND MENSURATION.pptxEchelleOgatis
 
computer hardware servicing powerpointpres
computer hardware servicing powerpointprescomputer hardware servicing powerpointpres
computer hardware servicing powerpointpresRYANCENRIQUEZ
 
Computer hardware servicing lesson 2:Perform Mensuration And Calculation
Computer hardware servicing lesson 2:Perform Mensuration And CalculationComputer hardware servicing lesson 2:Perform Mensuration And Calculation
Computer hardware servicing lesson 2:Perform Mensuration And CalculationA J
 
Technical presentation
Technical presentationTechnical presentation
Technical presentationconnorhowe131
 
CSC103 Processing, Memory & Storage
CSC103 Processing, Memory & StorageCSC103 Processing, Memory & Storage
CSC103 Processing, Memory & StorageRichard Homa
 
Malvin harding computer components presentation
Malvin harding computer components presentationMalvin harding computer components presentation
Malvin harding computer components presentationmalvin95
 
Basic hardware concept
Basic hardware concept Basic hardware concept
Basic hardware concept Danilo Anos
 
Lecture 2 - Computer Hardware & Operating Systems
Lecture 2 - Computer Hardware & Operating SystemsLecture 2 - Computer Hardware & Operating Systems
Lecture 2 - Computer Hardware & Operating SystemsJack Hyman
 
computer hardware servicing lesson 2 ppt
computer hardware servicing lesson 2 pptcomputer hardware servicing lesson 2 ppt
computer hardware servicing lesson 2 pptRYANCENRIQUEZ
 
Malvin harding computer components presentation complete
Malvin harding computer components presentation completeMalvin harding computer components presentation complete
Malvin harding computer components presentation completemalvin95
 

Similar to Introduction to Computer Architecture (20)

Intro comparch
Intro comparchIntro comparch
Intro comparch
 
Lecture 02 hardware
Lecture 02 hardwareLecture 02 hardware
Lecture 02 hardware
 
Lecture#06 inner workings of the cpu
Lecture#06   inner workings of the cpuLecture#06   inner workings of the cpu
Lecture#06 inner workings of the cpu
 
Nd0201 systemcomponents internal
Nd0201 systemcomponents internalNd0201 systemcomponents internal
Nd0201 systemcomponents internal
 
Computer Introduction-Lecture02
Computer Introduction-Lecture02Computer Introduction-Lecture02
Computer Introduction-Lecture02
 
PERFORM CALCULATION AND MENSURATION.pptx
PERFORM CALCULATION AND MENSURATION.pptxPERFORM CALCULATION AND MENSURATION.pptx
PERFORM CALCULATION AND MENSURATION.pptx
 
Computer hardware and its components
Computer hardware and its componentsComputer hardware and its components
Computer hardware and its components
 
computer hardware servicing powerpointpres
computer hardware servicing powerpointprescomputer hardware servicing powerpointpres
computer hardware servicing powerpointpres
 
Computer hardware servicing lesson 2:Perform Mensuration And Calculation
Computer hardware servicing lesson 2:Perform Mensuration And CalculationComputer hardware servicing lesson 2:Perform Mensuration And Calculation
Computer hardware servicing lesson 2:Perform Mensuration And Calculation
 
Technical presentation
Technical presentationTechnical presentation
Technical presentation
 
CSC103 Processing, Memory & Storage
CSC103 Processing, Memory & StorageCSC103 Processing, Memory & Storage
CSC103 Processing, Memory & Storage
 
Malvin harding computer components presentation
Malvin harding computer components presentationMalvin harding computer components presentation
Malvin harding computer components presentation
 
Basic hardware concept
Basic hardware concept Basic hardware concept
Basic hardware concept
 
Coa presentation3
Coa presentation3Coa presentation3
Coa presentation3
 
Lecture 2 - Computer Hardware & Operating Systems
Lecture 2 - Computer Hardware & Operating SystemsLecture 2 - Computer Hardware & Operating Systems
Lecture 2 - Computer Hardware & Operating Systems
 
Computer hardware
Computer hardwareComputer hardware
Computer hardware
 
computer hardware servicing lesson 2 ppt
computer hardware servicing lesson 2 pptcomputer hardware servicing lesson 2 ppt
computer hardware servicing lesson 2 ppt
 
Malvin harding computer components presentation complete
Malvin harding computer components presentation completeMalvin harding computer components presentation complete
Malvin harding computer components presentation complete
 
Lecture 2
Lecture 2Lecture 2
Lecture 2
 
Hardware (2)
Hardware (2)Hardware (2)
Hardware (2)
 

More from Ankush Srivastava

More from Ankush Srivastava (12)

Land Mine Detection and Image Processing
Land Mine Detection and Image ProcessingLand Mine Detection and Image Processing
Land Mine Detection and Image Processing
 
Comparative study of Salt & Pepper filters and Gaussian filters
Comparative study of Salt & Pepper filters and Gaussian filtersComparative study of Salt & Pepper filters and Gaussian filters
Comparative study of Salt & Pepper filters and Gaussian filters
 
Microprocessor
MicroprocessorMicroprocessor
Microprocessor
 
Data transferschemes
Data transferschemesData transferschemes
Data transferschemes
 
Dynamic RAM
Dynamic RAMDynamic RAM
Dynamic RAM
 
Pin 8085
Pin 8085Pin 8085
Pin 8085
 
Html
HtmlHtml
Html
 
Creating an executable jar file
Creating an executable jar fileCreating an executable jar file
Creating an executable jar file
 
Introduction to Multimedia
Introduction to MultimediaIntroduction to Multimedia
Introduction to Multimedia
 
Image processing SaltPepper Noise
Image processing SaltPepper NoiseImage processing SaltPepper Noise
Image processing SaltPepper Noise
 
Neurons
NeuronsNeurons
Neurons
 
Search Engine
Search EngineSearch Engine
Search Engine
 

Recently uploaded

Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Shubhangi Sonawane
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701bronxfugly43
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 

Recently uploaded (20)

Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 

Introduction to Computer Architecture

  • 1. Introduction to Computer Architecture Ankush Srivastava Email:- anksri000@gmail.com
  • 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) – 210 bytes MegaByte (MB) – 220 bytes GigaByte (GB) – 230 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. ON-OFF-ON-ON 1 0 1 1  Several ways to remember the state of a switch:  Electrical – RAM, flash memory  Magnetic – Hard drives, magnetic tapes  Optical – CDs, DVDs
  • 8. What does memory look like? Address Data  Memory ~ RAM 0 36  Looks like a table 1 3765  Address and Data 2 786  Address is the 3 356 location 4 252  Data is the actual 5 67980 value 6 2355  Memory stores both 7 4234 data and assembly 8 3466 instructions
  • 9. Central Processing Unit (CPU)  Also called the “chip” or “processor”  The brain of the Control Address Bus Unit computer Memory  Major components: ALU  Arithmetic Logic Unit Data Bus (ALU)  calculator  Control unit  controls the calculator  Communication bus systems  What’s a bus?!?
  • 10. Fetch-Execute Cycle 1. Fetch instruction from memory 2. Decode instruction in Control Address Bus control unit Unit Memory 3. Execute instruction (data ALU Data Bus may be fetched from memory) 4. Store results if necessary 5. Repeat!
  • 11. Registers  Temporary storage containers used inside the CPU  Extremely fast  Fixed size, usually multiples of 8-bits  Also called a “word”  Example: 32-bit machines (4-byte words)  How large is a word in a 64-bit machine?
  • 12. 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
  • 14. 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
  • 16. CD/DVDs  Lands and pits used to represent binary  Optical medium - lasers and refraction used to read lands and pits
  • 17. Direct Access  also known as “random access”  No need to go through other data to get the data you want  We already know where the data is, so we just get it  “Magic data retrieval” – no movement/motion  Example: registers, cache, RAM
  • 18. Sequential Access  also known as “serial-access”  Data is ordered in some sequential fashion  To get to your data, you need to go through other data in front of it  Example:  Fast-forwarding through a tape to get to the song you want
  • 19. Direct-Access vs. Sequential Access  Direct-Access:  Advantage: fast access  Disadvantage: data cannot be accessed in sequential or sorted order  Data is placed randomly on the disk  Accessing things in order then requires an index file  Slower when trying to access sequential data that is not already in order (back-and-forth-and-back-and-forth)  Example: hard drives (disks)  Sequential Access  Advantage: Simple to organize (already in some sequential order)  Disadvantage: Slow when accessing specific things in no order  Example: magnetic tape backups  Could we implement sequential access using a hard disk?