SlideShare ist ein Scribd-Unternehmen logo
1 von 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?

Weitere ähnliche Inhalte

Was ist angesagt?

Chapter 3 - Top Level View of Computer / Function and Interconection
Chapter 3 - Top Level View of Computer / Function and InterconectionChapter 3 - Top Level View of Computer / Function and Interconection
Chapter 3 - Top Level View of Computer / Function and InterconectionCésar de Souza
 
Lecture1 - Computer Architecture
Lecture1 - Computer ArchitectureLecture1 - Computer Architecture
Lecture1 - Computer ArchitectureVolodymyr Ushenko
 
Computer Organization and Architecture.
Computer Organization and Architecture.Computer Organization and Architecture.
Computer Organization and Architecture.CS_GDRCST
 
Computer registers
Computer registersComputer registers
Computer registersDeepikaT13
 
Memory organization (Computer architecture)
Memory organization (Computer architecture)Memory organization (Computer architecture)
Memory organization (Computer architecture)Sandesh Jonchhe
 
Introduction to computer architecture and organization
Introduction to computer architecture and organizationIntroduction to computer architecture and organization
Introduction to computer architecture and organizationMuhammad Ishaq
 
Arithmetic Logic Unit (ALU)
Arithmetic Logic Unit (ALU)Arithmetic Logic Unit (ALU)
Arithmetic Logic Unit (ALU)Student
 
instruction cycle ppt
instruction cycle pptinstruction cycle ppt
instruction cycle pptsheetal singh
 
Comuputer processor
Comuputer processorComuputer processor
Comuputer processorSanjeev Jain
 
Central Processing Unit
Central Processing UnitCentral Processing Unit
Central Processing UnitJan Ralph
 
CPU-Central Processing Unit (With History and Complete Detail)
CPU-Central Processing Unit (With History and Complete Detail)CPU-Central Processing Unit (With History and Complete Detail)
CPU-Central Processing Unit (With History and Complete Detail)Adeel Rasheed
 
Intro to Bits, Bytes, and Storage
Intro to Bits, Bytes, and StorageIntro to Bits, Bytes, and Storage
Intro to Bits, Bytes, and StorageJohn Goldsworthy
 
Computer organization
Computer organizationComputer organization
Computer organizationishapadhy
 

Was ist angesagt? (20)

Chapter 3 - Top Level View of Computer / Function and Interconection
Chapter 3 - Top Level View of Computer / Function and InterconectionChapter 3 - Top Level View of Computer / Function and Interconection
Chapter 3 - Top Level View of Computer / Function and Interconection
 
Lecture1 - Computer Architecture
Lecture1 - Computer ArchitectureLecture1 - Computer Architecture
Lecture1 - Computer Architecture
 
Computer Organization and Architecture.
Computer Organization and Architecture.Computer Organization and Architecture.
Computer Organization and Architecture.
 
Computer registers
Computer registersComputer registers
Computer registers
 
Memory organization (Computer architecture)
Memory organization (Computer architecture)Memory organization (Computer architecture)
Memory organization (Computer architecture)
 
Instruction codes
Instruction codesInstruction codes
Instruction codes
 
Interrupts
InterruptsInterrupts
Interrupts
 
Introduction to computer architecture and organization
Introduction to computer architecture and organizationIntroduction to computer architecture and organization
Introduction to computer architecture and organization
 
Memory Hierarchy
Memory HierarchyMemory Hierarchy
Memory Hierarchy
 
Random Access Memory ppt
Random Access Memory pptRandom Access Memory ppt
Random Access Memory ppt
 
Arithmetic Logic Unit (ALU)
Arithmetic Logic Unit (ALU)Arithmetic Logic Unit (ALU)
Arithmetic Logic Unit (ALU)
 
instruction cycle ppt
instruction cycle pptinstruction cycle ppt
instruction cycle ppt
 
Comuputer processor
Comuputer processorComuputer processor
Comuputer processor
 
Disk management
Disk managementDisk management
Disk management
 
Micro programmed control
Micro programmed controlMicro programmed control
Micro programmed control
 
Functional units
Functional unitsFunctional units
Functional units
 
Central Processing Unit
Central Processing UnitCentral Processing Unit
Central Processing Unit
 
CPU-Central Processing Unit (With History and Complete Detail)
CPU-Central Processing Unit (With History and Complete Detail)CPU-Central Processing Unit (With History and Complete Detail)
CPU-Central Processing Unit (With History and Complete Detail)
 
Intro to Bits, Bytes, and Storage
Intro to Bits, Bytes, and StorageIntro to Bits, Bytes, and Storage
Intro to Bits, Bytes, and Storage
 
Computer organization
Computer organizationComputer organization
Computer organization
 

Andere mochten auch

Computer architecture and organization
Computer architecture and organizationComputer architecture and organization
Computer architecture and organizationTushar B Kute
 
Computer architecture
Computer architectureComputer architecture
Computer architectureRishabha Garg
 
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
 

Andere mochten auch (20)

Computer architecture and organization
Computer architecture and organizationComputer architecture and organization
Computer architecture and organization
 
Computer architecture
Computer architectureComputer architecture
Computer architecture
 
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
 

Ähnlich wie 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 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 And Configuration
Computer Hardware And ConfigurationComputer Hardware And Configuration
Computer Hardware And Configurationwaqar ahmed
 
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
 

Ähnlich wie 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 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 And Configuration
Computer Hardware And ConfigurationComputer Hardware And Configuration
Computer Hardware And Configuration
 
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)
 

Mehr von Ankush Srivastava

Mehr von 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
 

Kürzlich hochgeladen

Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Seán Kennedy
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfTechSoup
 
Textual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSTextual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSMae Pangan
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
 
The Contemporary World: The Globalization of World Politics
The Contemporary World: The Globalization of World PoliticsThe Contemporary World: The Globalization of World Politics
The Contemporary World: The Globalization of World PoliticsRommel Regala
 
Expanded definition: technical and operational
Expanded definition: technical and operationalExpanded definition: technical and operational
Expanded definition: technical and operationalssuser3e220a
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSJoshuaGantuangco2
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxVanesaIglesias10
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxlancelewisportillo
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptxmary850239
 
Presentation Activity 2. Unit 3 transv.pptx
Presentation Activity 2. Unit 3 transv.pptxPresentation Activity 2. Unit 3 transv.pptx
Presentation Activity 2. Unit 3 transv.pptxRosabel UA
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfVanessa Camilleri
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 

Kürzlich hochgeladen (20)

Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
 
Textual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSTextual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHS
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
 
The Contemporary World: The Globalization of World Politics
The Contemporary World: The Globalization of World PoliticsThe Contemporary World: The Globalization of World Politics
The Contemporary World: The Globalization of World Politics
 
Expanded definition: technical and operational
Expanded definition: technical and operationalExpanded definition: technical and operational
Expanded definition: technical and operational
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptx
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptxYOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
 
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptxINCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx
 
Presentation Activity 2. Unit 3 transv.pptx
Presentation Activity 2. Unit 3 transv.pptxPresentation Activity 2. Unit 3 transv.pptx
Presentation Activity 2. Unit 3 transv.pptx
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptxLEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdf
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 

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?