SlideShare una empresa de Scribd logo
1 de 56
Computer
Systems
Organization
Chapter 5
Learning Objectives (1 of 2)
• Enumerate the characteristics of the Von Neumann
architecture
• Describe the components of a random access
memory system, including how fetch and store
operations work, and the use of cache memory to
speed up access time
• Diagram the components of a typical
arithmetic/logic unit (ALU) and illustrate how the
ALU data path operates
Learning Objectives (2 of 2)
• Describe the operation of the control unit and
explain how it implements the stored program
characteristic of the Von Neumann architecture
• List and explain the types of instructions in a typical
instruction set, and how instructions are commonly
encoded
• Diagram the organization of a typical Von Neumann
machine
• Show the sequence of steps, using the book’s
notation, in the fetch, decode, and execute cycle to
perform a typical instruction
Introduction (1 of 2)
• This chapter changes the level of abstraction and
focuses on a higher level of computer system
construction
• Focus on functional units and computer
organization
• A hierarchy of abstractions hides unnecessary
details
• Change focus from transistors to gates and to
circuits as the basic unit
• Discusses in detail the Von Neumann architecture
Introduction (2 of 2)
The Components of a Computer System
(1 of 2)
Von Neumann architecture is the foundation for
nearly all modern computers
• The four major subsystems of the Von Neumann
architecture
– Memory
– Input/output
– Arithmetic/logic unit (ALU)
– Control Unit
 ALU and control unit are often bundled inside the
central processing unit (CPU)
The Components of a Computer System
(2 of 2)
The Components of a Computer System
Memory and Cache (1 of 9)
• Memory: functional unit where data is stored/retrieved
• Random access memory (RAM)
– Organized into cells, each given a unique address
– Equal time to access any cell
– Cell values may be read and changed
• Read-only memory (ROM): A type of RAM with
prerecorded information that cannot be modified or
changed
• Cell size/memory width is typically 8 bits
• Maximum memory size/address space is 2N, where
N is length of address
The Components of a Computer System
Memory and Cache (2 of 9)
The Components of a Computer System
Memory and Cache (3 of 9)
N Maximum Memory Size (2N)
16 65,536
20 1,048,576
22 4,194,304
24 16,777,216
32 4,294,967,296
40 1,099,511,627,776
50 1,125,899,906,842,624
The Components of a Computer System
Memory and Cache (4 of 9)
• Fetch: retrieve from memory (nondestructive
fetch)
• Store: write to memory (destructive store)
• Memory access time
– Time required to fetch/store
– Modern RAM requires 5-10 nanoseconds
• Memory address register (MAR) holds memory
address to access
• Memory data register (MDR) receives data from
fetch and holds data to be stored
The Components of a Computer System
Memory and Cache (5 of 9)
• Memory system circuits: decoder and fetch/store
controller
• Decoder converts MAR into signal to a specific
memory cell
– One-dimensional versus two-dimensional memory
organization
• Fetch/Store controller ► traffic cop for MDR
– Takes in a signal that indicates fetch or store
– Routes data flow to/from memory cells and MDR
The Components of a Computer System
Memory and Cache (6 of 9)
The Components of a Computer System
Memory and Cache (7 of 9)
The Components of a Computer System
Memory and Cache (9 of 9)
• RAM speeds increased more slowly than CPU
speeds
• Cache memory is fast but expensive
– Built into the CPU for fast access times
• Principle of locality
– Values close to recently accessed memory are more
likely to be accessed
– Load neighbors into cache and keep recent values
there
• Cache hit rate: percentage of times values are
found in cache
I/O
MASS
STORAGE
Chapter 5
The Components of a Computer System
Input/Output and Mass Storage
• Input/output (I/O) connects the processor to the
outside world
– Humans: keyboard, monitor, etc.
– Data storage: hard drive, DVD, flash drive
– Other computers: network
• RAM = volatile memory (gone without power)
• Mass storage systems = nonvolatile memory
– Direct access storage devices (DASDs)
– Sequential access storage devices (SASDs)
The Components of a Computer System
I/O and Mass Storage (1 of 6)
DASDs
• Disks: Hard drives and optical media (CDs/DVDs)
– Tracks: concentric rings around the disk surface
– Sectors: fixed size segments of tracks, unit of
retrieval
– Time to retrieve data based on
 Seek time
 Latency
 Transfer time
• Other nondisk DASDs: flash memory and solid-
state drives (random access mass storage)
The Components of a Computer System
I/O and Mass Storage (2 of 6)
The Components of a Computer System
I/O and Mass Storage (3 of 6)
• DASDs and SASDs are orders of magnitude slower
than RAM: (microseconds or milliseconds).
• I/O Controller manages data transfer with slow I/O
devices, freeing processor to do other work.
• Controller sends an interrupt signal to processor
when I/O task is done.
The Components of a Computer System
I/O and Mass Storage (4 of 6)
The Components of a Computer System
The Arithmetic/Logic Unit
• ALU is part of the processor
• Contains circuits for arithmetic
– Addition, subtraction, multiplication, and division
• Contains circuits for comparison and logic
– Equality, and, or, not
• Contains registers: high-speed, dedicated memory
connected to circuits
• Data path: how information flows in the ALU
– From registers to circuits
– From circuits back to registers
The Components of a Computer System
I/O and Mass Storage (5 of 6)
The Components of a Computer System
I/O and Mass Storage (6 of 6)
ALU
CONTROL
UNIT
Chapter 5
The Components of a Computer System
The ALU (1 of 4)
• How is the operation to perform chosen?
– Option 1: decoder signals one circuit to run.
– Option 2: run all circuits, multiplexer selects one
output from all circuits.
• In practice, option 2 is usually chosen.
The Components of a Computer System
The ALU (2 of 4)
• Information flow
– Data comes in from outside to registers
– Signal comes from registers to ALU
– Signal moves from ALU to multiplexer
– Multiplexer selects the value to keep and discards
the rest
– Result from the multiplexer goes back to the register
and then to outside
The Components of a Computer System
The ALU (3 of 4)
The Components of a Computer System
The ALU (4 of 4)
The Components of a Computer System
The Control Unit (1 of 9)
• Stored program characteristic
– Programs are encoded in binary and stored in
computer’s memory
• Control unit fetches instructions from memory,
decodes them, and executes them
• Instructions encoded
– Operation code (op code) tells which operation
– Addresses tell which memory addresses/registers to
operate on
The Components of a Computer System
The Control Unit (2 of 9)
The Components of a Computer System
The Control Unit (3 of 9)
• Machine language
– Binary strings encode instructions
– Instructions can be carried out by hardware
– Sequences of instructions encode algorithms
• Instruction set
– Instructions implemented by a particular chip
– Each kind of processor has a different instruction set
(speaks a different language)
The Components of a Computer System
The Control Unit (4 of 9)
• Reduced instruction set computer (RISC)
– Small instruction sets
– Each instruction highly optimized
– Easy to design hardware
• Complex instruction set computer (CISC)
– Large instruction set
– Single instruction can do a lot of work
– Complex to design hardware
• Modern hardware is a compromise between RISC
and CISC
The Components of a Computer System
The Control Unit (5 of 9)
Instruction set examples:
• Data transfer, e.g., move data from memory to
register
• Arithmetic, e.g., add, but also AND
• Comparison: compare two values
• Branch: change to a nonsequential instruction
– Branching allows for conditional and loop forms
– E.g., JUMPLT a = If previous comparison of A and B
found A < B, then jump to instruction at address a
The Components of a Computer System
The Control Unit (6 of 9)
The Components of a Computer System
The Control Unit (7 of 9)
Control unit contains:
• Program counter (PC) register: holds address of
next instruction
• Instruction register (IR): holds encoding of current
instruction
• Instruction decoder circuit
– Decodes op code of instruction and signals helper
circuits, one per instruction
 Helpers send addresses to proper circuits
 Helpers signal ALU, I/O controller, and memory
The Components of a Computer System
The Control Unit (8 of 9)
The Components of a Computer System
The Control Unit (9 of 9)
VON NEUMANN
ARCHITECTURE
Chapter 5
Putting the Pieces Together—the Von
Neumann Architecture (1 of 9)
• Combine previous pieces: Von Neumann machine
• Fetch/decode/execute phase
– Machine repeats until HALT instruction or error
– Also called Von Neumann cycle
• Fetch phase: get next instruction into memory
• Decode phase: instruction decoder gets op code
• Execute phase: different for each instruction
Putting the Pieces Together—the Von
Neumann Architecture (2 of 9)
Putting the Pieces Together—the Von
Neumann Architecture (3 of 9)
Notation for computer’s behavior
CON(A) Contents of memory cell A
A → B Send value in register A to register B
(special registers: PC, MAR, MDR, IR,
ALU, R, GT, EQ, LT, +1)
FETCH Initiate a memory fetch operation
STORE Initiate a memory store operation
ADD Instruct the ALU to select the output of
the adder circuit
SUBTRACT Instruct the ALU to select the output of
the subtract circuit
Putting the Pieces Together—the Von
Neumann Architecture (4 of 9)
Fetch phase
1. PC → MAR Send address in PC to MAR
2. FETCH Initiate fetch, data to MDR
3. MDR → IR Move instruction in MDR to IR
4. PC + 1 → PC Add one to PC
Decode phase
1. IRop → instruction decoder
Putting the Pieces Together—the Von
Neumann Architecture (5 of 9)
Putting the Pieces Together—the Von
Neumann Architecture (6 of 9)
Execution phase
LOAD X meaning CON(X) → R
1. IRaddr → MAR Send address X to MAR
2. FETCH Initiate fetch, data to MDR
3. MDR → R Copy data in MDR into R
STORE X meaning R → CON(X)
1. IRaddr → MAR Send address X to MAR
2. R → MDR Send data in R to MDR
3. STORE Initiate store of MDR to X
Putting the Pieces Together—the Von
Neumann Architecture (7 of 9)
ADD X meaning R + CON(X) → R
1. IRaddr → MAR Send address X to MAR
2. FETCH Initiate fetch, data to MDR
3. MDR → ALU Send data in MDR to ALU
4. R → ALU Send data in R to ALU
5. ADD Select ADD circuit as result
6. ALU → R Copy selected result to R
JUMP X meaning get next instruction from X
1. IRaddr → PC Send address X to PC
Putting the Pieces Together—the Von
Neumann Architecture (8 of 9)
COMPARE X meaning:
if CON(X) > R, then GT = 1, else 0
if CON(X) = R, then EQ = 1, else 0
if CON(X) < R, then LT = 1, else 0
1. IRaddr → MAR Send address X to MAR
2. FETCH Initiate fetch, data to MDR
3. MDR → ALU Send data in MDR to ALU
4. R → ALU Send data in R to ALU
5. SUBTRACT Evaluate CON(X) – R
Sets EQ, GT, and LT
Putting the Pieces Together—the Von
Neumann Architecture (9 of 9)
JUMPGT X meaning:
if GT = 1, then jump to X,
else continue to next instruction
1. IF GT = 1 THEN IRaddr → PC
Non–Von Neumann Architectures (1 of 6)
• Problems to solve are always larger
• Computer chip speeds no longer increase
exponentially
• Reducing size puts gates closer together, faster
– Speed of light pertains to signals through wire
– Cannot put gates much closer together
– Heat production increases too fast
• Von Neumann bottleneck: inability of sequential
machines to handle larger problems
Non–Von Neumann Architectures (2 of 6)
Non–Von Neumann Architectures (3 of 6)
• Non–Von Neumann architectures
– Other ways to organize computers
– Most are experimental/theoretical, EXCEPT parallel
processing
• Parallel processing
– Many processing units operating at the same time
– Supercomputers (in the past)
– Desktop multicore machines and “the cloud” (in the
present)
– Quantum computing (in the future)
Non–Von Neumann Architectures (4 of 6)
MIMD parallel processing
• Multiple instruction stream/Multiple data streams
– Cluster computing
• Multiple, independent processors
• Each ALU operates on its own data
• Each processor can operate independently
– On its own data
– On its own program
– At its own rate
Non–Von Neumann Architectures (5 of 6)
Non–Von Neumann Architectures (6 of 6)
Varieties of MIMD systems
• Special-purpose systems: newer supercomputers
• Cluster computing: standard machines
communicating over LAN or WAN
• Grid computing: machines of varying power, over
large distances/Internet
– Examples
 SETI project
 BOINC at Berkley
• Hot research area ► parallel algorithms
– Need to take advantage of all this processing power
Summary (1 of 2)
• We must abstract in order to manage system
complexity—no more writing instructions in machine
language.
• Von Neumann architecture is standard for modern
computing.
• Von Neumann machines have memory, I/O, ALU, and
control unit; programs are stored in memory;
execution is sequential unless program says
otherwise.
• Memory is organized into addressable cells; data is
fetched and stored based on MAR and MDR; uses
decoder and fetch/store controller.
Summary (2 of 2)
• Mass data storage is nonvolatile; disks store and
fetch sectors of data stored in tracks.
• I/O is slow, needs dedicated controller to free CPU.
• ALU performs computations, moving data to/from
dedicated registers.
• Control unit fetches, decodes, and executes
instructions; instructions are written in machine
language.
• Parallel processing architectures can perform
multiple instructions at one time.

Más contenido relacionado

Similar a WEEK6_COMPUTER_ORGANIZATION.pptx

BAIT1003 Chapter 2
BAIT1003 Chapter 2BAIT1003 Chapter 2
BAIT1003 Chapter 2limsh
 
Bca 2nd sem-u-1.2 digital logic circuits, digital component
Bca 2nd sem-u-1.2 digital logic circuits, digital componentBca 2nd sem-u-1.2 digital logic circuits, digital component
Bca 2nd sem-u-1.2 digital logic circuits, digital componentRai University
 
digital logic circuits, digital component
digital logic circuits, digital componentdigital logic circuits, digital component
digital logic circuits, digital componentRai University
 
VON_NEUMANN_ARCHITECTURE_PPT_COAA final.pptx
VON_NEUMANN_ARCHITECTURE_PPT_COAA final.pptxVON_NEUMANN_ARCHITECTURE_PPT_COAA final.pptx
VON_NEUMANN_ARCHITECTURE_PPT_COAA final.pptxSanketGangode
 
B.sc cs-ii -u-1.2 digital logic circuits, digital component
B.sc cs-ii -u-1.2 digital logic circuits, digital componentB.sc cs-ii -u-1.2 digital logic circuits, digital component
B.sc cs-ii -u-1.2 digital logic circuits, digital componentRai University
 
Ch 2 inside systems unit
Ch 2 inside systems unitCh 2 inside systems unit
Ch 2 inside systems unitSajid Mewati
 
Brief Introduction.ppt
Brief Introduction.pptBrief Introduction.ppt
Brief Introduction.pptMollyZolly
 
Unit 1 processormemoryorganisation
Unit 1 processormemoryorganisationUnit 1 processormemoryorganisation
Unit 1 processormemoryorganisationKarunamoorthy B
 
Unit 2 processor&amp;memory-organisation
Unit 2 processor&amp;memory-organisationUnit 2 processor&amp;memory-organisation
Unit 2 processor&amp;memory-organisationPavithra S
 
Synchronization linux
Synchronization linuxSynchronization linux
Synchronization linuxSusant Sahani
 
Report in SAD
Report in SADReport in SAD
Report in SADjesseledm
 
cache cache memory memory cache memory.pptx
cache cache memory memory cache memory.pptxcache cache memory memory cache memory.pptx
cache cache memory memory cache memory.pptxsaimawarsi
 
Computer Organization: Introduction to Microprocessor and Microcontroller
Computer Organization: Introduction to Microprocessor and MicrocontrollerComputer Organization: Introduction to Microprocessor and Microcontroller
Computer Organization: Introduction to Microprocessor and MicrocontrollerAmrutaMehata
 
The central processing unit by group 5 2015
The central processing unit by group 5 2015The central processing unit by group 5 2015
The central processing unit by group 5 2015Tendai Karuma
 
Chapter4 Data Processing
Chapter4 Data ProcessingChapter4 Data Processing
Chapter4 Data ProcessingMuhammad Waqas
 

Similar a WEEK6_COMPUTER_ORGANIZATION.pptx (20)

Cpu
CpuCpu
Cpu
 
BAIT1003 Chapter 2
BAIT1003 Chapter 2BAIT1003 Chapter 2
BAIT1003 Chapter 2
 
Bca 2nd sem-u-1.2 digital logic circuits, digital component
Bca 2nd sem-u-1.2 digital logic circuits, digital componentBca 2nd sem-u-1.2 digital logic circuits, digital component
Bca 2nd sem-u-1.2 digital logic circuits, digital component
 
OS-Part-01.pdf
OS-Part-01.pdfOS-Part-01.pdf
OS-Part-01.pdf
 
digital logic circuits, digital component
digital logic circuits, digital componentdigital logic circuits, digital component
digital logic circuits, digital component
 
VON_NEUMANN_ARCHITECTURE_PPT_COAA final.pptx
VON_NEUMANN_ARCHITECTURE_PPT_COAA final.pptxVON_NEUMANN_ARCHITECTURE_PPT_COAA final.pptx
VON_NEUMANN_ARCHITECTURE_PPT_COAA final.pptx
 
B.sc cs-ii -u-1.2 digital logic circuits, digital component
B.sc cs-ii -u-1.2 digital logic circuits, digital componentB.sc cs-ii -u-1.2 digital logic circuits, digital component
B.sc cs-ii -u-1.2 digital logic circuits, digital component
 
Ch 2 inside systems unit
Ch 2 inside systems unitCh 2 inside systems unit
Ch 2 inside systems unit
 
Brief Introduction.ppt
Brief Introduction.pptBrief Introduction.ppt
Brief Introduction.ppt
 
5120224.ppt
5120224.ppt5120224.ppt
5120224.ppt
 
Ch1 introduction
Ch1   introductionCh1   introduction
Ch1 introduction
 
Unit 1 processormemoryorganisation
Unit 1 processormemoryorganisationUnit 1 processormemoryorganisation
Unit 1 processormemoryorganisation
 
Unit 2 processor&amp;memory-organisation
Unit 2 processor&amp;memory-organisationUnit 2 processor&amp;memory-organisation
Unit 2 processor&amp;memory-organisation
 
Basic computer architecture
Basic computer architectureBasic computer architecture
Basic computer architecture
 
Synchronization linux
Synchronization linuxSynchronization linux
Synchronization linux
 
Report in SAD
Report in SADReport in SAD
Report in SAD
 
cache cache memory memory cache memory.pptx
cache cache memory memory cache memory.pptxcache cache memory memory cache memory.pptx
cache cache memory memory cache memory.pptx
 
Computer Organization: Introduction to Microprocessor and Microcontroller
Computer Organization: Introduction to Microprocessor and MicrocontrollerComputer Organization: Introduction to Microprocessor and Microcontroller
Computer Organization: Introduction to Microprocessor and Microcontroller
 
The central processing unit by group 5 2015
The central processing unit by group 5 2015The central processing unit by group 5 2015
The central processing unit by group 5 2015
 
Chapter4 Data Processing
Chapter4 Data ProcessingChapter4 Data Processing
Chapter4 Data Processing
 

Último

Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 

Último (20)

Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 

WEEK6_COMPUTER_ORGANIZATION.pptx

  • 2. Learning Objectives (1 of 2) • Enumerate the characteristics of the Von Neumann architecture • Describe the components of a random access memory system, including how fetch and store operations work, and the use of cache memory to speed up access time • Diagram the components of a typical arithmetic/logic unit (ALU) and illustrate how the ALU data path operates
  • 3. Learning Objectives (2 of 2) • Describe the operation of the control unit and explain how it implements the stored program characteristic of the Von Neumann architecture • List and explain the types of instructions in a typical instruction set, and how instructions are commonly encoded • Diagram the organization of a typical Von Neumann machine • Show the sequence of steps, using the book’s notation, in the fetch, decode, and execute cycle to perform a typical instruction
  • 4. Introduction (1 of 2) • This chapter changes the level of abstraction and focuses on a higher level of computer system construction • Focus on functional units and computer organization • A hierarchy of abstractions hides unnecessary details • Change focus from transistors to gates and to circuits as the basic unit • Discusses in detail the Von Neumann architecture
  • 6. The Components of a Computer System (1 of 2) Von Neumann architecture is the foundation for nearly all modern computers • The four major subsystems of the Von Neumann architecture – Memory – Input/output – Arithmetic/logic unit (ALU) – Control Unit  ALU and control unit are often bundled inside the central processing unit (CPU)
  • 7. The Components of a Computer System (2 of 2)
  • 8. The Components of a Computer System Memory and Cache (1 of 9) • Memory: functional unit where data is stored/retrieved • Random access memory (RAM) – Organized into cells, each given a unique address – Equal time to access any cell – Cell values may be read and changed • Read-only memory (ROM): A type of RAM with prerecorded information that cannot be modified or changed • Cell size/memory width is typically 8 bits • Maximum memory size/address space is 2N, where N is length of address
  • 9. The Components of a Computer System Memory and Cache (2 of 9)
  • 10. The Components of a Computer System Memory and Cache (3 of 9) N Maximum Memory Size (2N) 16 65,536 20 1,048,576 22 4,194,304 24 16,777,216 32 4,294,967,296 40 1,099,511,627,776 50 1,125,899,906,842,624
  • 11. The Components of a Computer System Memory and Cache (4 of 9) • Fetch: retrieve from memory (nondestructive fetch) • Store: write to memory (destructive store) • Memory access time – Time required to fetch/store – Modern RAM requires 5-10 nanoseconds • Memory address register (MAR) holds memory address to access • Memory data register (MDR) receives data from fetch and holds data to be stored
  • 12. The Components of a Computer System Memory and Cache (5 of 9) • Memory system circuits: decoder and fetch/store controller • Decoder converts MAR into signal to a specific memory cell – One-dimensional versus two-dimensional memory organization • Fetch/Store controller ► traffic cop for MDR – Takes in a signal that indicates fetch or store – Routes data flow to/from memory cells and MDR
  • 13. The Components of a Computer System Memory and Cache (6 of 9)
  • 14. The Components of a Computer System Memory and Cache (7 of 9)
  • 15. The Components of a Computer System Memory and Cache (9 of 9) • RAM speeds increased more slowly than CPU speeds • Cache memory is fast but expensive – Built into the CPU for fast access times • Principle of locality – Values close to recently accessed memory are more likely to be accessed – Load neighbors into cache and keep recent values there • Cache hit rate: percentage of times values are found in cache
  • 17. The Components of a Computer System Input/Output and Mass Storage • Input/output (I/O) connects the processor to the outside world – Humans: keyboard, monitor, etc. – Data storage: hard drive, DVD, flash drive – Other computers: network • RAM = volatile memory (gone without power) • Mass storage systems = nonvolatile memory – Direct access storage devices (DASDs) – Sequential access storage devices (SASDs)
  • 18. The Components of a Computer System I/O and Mass Storage (1 of 6) DASDs • Disks: Hard drives and optical media (CDs/DVDs) – Tracks: concentric rings around the disk surface – Sectors: fixed size segments of tracks, unit of retrieval – Time to retrieve data based on  Seek time  Latency  Transfer time • Other nondisk DASDs: flash memory and solid- state drives (random access mass storage)
  • 19. The Components of a Computer System I/O and Mass Storage (2 of 6)
  • 20. The Components of a Computer System I/O and Mass Storage (3 of 6) • DASDs and SASDs are orders of magnitude slower than RAM: (microseconds or milliseconds). • I/O Controller manages data transfer with slow I/O devices, freeing processor to do other work. • Controller sends an interrupt signal to processor when I/O task is done.
  • 21. The Components of a Computer System I/O and Mass Storage (4 of 6)
  • 22. The Components of a Computer System The Arithmetic/Logic Unit • ALU is part of the processor • Contains circuits for arithmetic – Addition, subtraction, multiplication, and division • Contains circuits for comparison and logic – Equality, and, or, not • Contains registers: high-speed, dedicated memory connected to circuits • Data path: how information flows in the ALU – From registers to circuits – From circuits back to registers
  • 23. The Components of a Computer System I/O and Mass Storage (5 of 6)
  • 24. The Components of a Computer System I/O and Mass Storage (6 of 6)
  • 26. The Components of a Computer System The ALU (1 of 4) • How is the operation to perform chosen? – Option 1: decoder signals one circuit to run. – Option 2: run all circuits, multiplexer selects one output from all circuits. • In practice, option 2 is usually chosen.
  • 27. The Components of a Computer System The ALU (2 of 4) • Information flow – Data comes in from outside to registers – Signal comes from registers to ALU – Signal moves from ALU to multiplexer – Multiplexer selects the value to keep and discards the rest – Result from the multiplexer goes back to the register and then to outside
  • 28. The Components of a Computer System The ALU (3 of 4)
  • 29. The Components of a Computer System The ALU (4 of 4)
  • 30. The Components of a Computer System The Control Unit (1 of 9) • Stored program characteristic – Programs are encoded in binary and stored in computer’s memory • Control unit fetches instructions from memory, decodes them, and executes them • Instructions encoded – Operation code (op code) tells which operation – Addresses tell which memory addresses/registers to operate on
  • 31. The Components of a Computer System The Control Unit (2 of 9)
  • 32. The Components of a Computer System The Control Unit (3 of 9) • Machine language – Binary strings encode instructions – Instructions can be carried out by hardware – Sequences of instructions encode algorithms • Instruction set – Instructions implemented by a particular chip – Each kind of processor has a different instruction set (speaks a different language)
  • 33. The Components of a Computer System The Control Unit (4 of 9) • Reduced instruction set computer (RISC) – Small instruction sets – Each instruction highly optimized – Easy to design hardware • Complex instruction set computer (CISC) – Large instruction set – Single instruction can do a lot of work – Complex to design hardware • Modern hardware is a compromise between RISC and CISC
  • 34. The Components of a Computer System The Control Unit (5 of 9) Instruction set examples: • Data transfer, e.g., move data from memory to register • Arithmetic, e.g., add, but also AND • Comparison: compare two values • Branch: change to a nonsequential instruction – Branching allows for conditional and loop forms – E.g., JUMPLT a = If previous comparison of A and B found A < B, then jump to instruction at address a
  • 35. The Components of a Computer System The Control Unit (6 of 9)
  • 36. The Components of a Computer System The Control Unit (7 of 9) Control unit contains: • Program counter (PC) register: holds address of next instruction • Instruction register (IR): holds encoding of current instruction • Instruction decoder circuit – Decodes op code of instruction and signals helper circuits, one per instruction  Helpers send addresses to proper circuits  Helpers signal ALU, I/O controller, and memory
  • 37. The Components of a Computer System The Control Unit (8 of 9)
  • 38. The Components of a Computer System The Control Unit (9 of 9)
  • 40. Putting the Pieces Together—the Von Neumann Architecture (1 of 9) • Combine previous pieces: Von Neumann machine • Fetch/decode/execute phase – Machine repeats until HALT instruction or error – Also called Von Neumann cycle • Fetch phase: get next instruction into memory • Decode phase: instruction decoder gets op code • Execute phase: different for each instruction
  • 41. Putting the Pieces Together—the Von Neumann Architecture (2 of 9)
  • 42. Putting the Pieces Together—the Von Neumann Architecture (3 of 9) Notation for computer’s behavior CON(A) Contents of memory cell A A → B Send value in register A to register B (special registers: PC, MAR, MDR, IR, ALU, R, GT, EQ, LT, +1) FETCH Initiate a memory fetch operation STORE Initiate a memory store operation ADD Instruct the ALU to select the output of the adder circuit SUBTRACT Instruct the ALU to select the output of the subtract circuit
  • 43. Putting the Pieces Together—the Von Neumann Architecture (4 of 9) Fetch phase 1. PC → MAR Send address in PC to MAR 2. FETCH Initiate fetch, data to MDR 3. MDR → IR Move instruction in MDR to IR 4. PC + 1 → PC Add one to PC Decode phase 1. IRop → instruction decoder
  • 44. Putting the Pieces Together—the Von Neumann Architecture (5 of 9)
  • 45. Putting the Pieces Together—the Von Neumann Architecture (6 of 9) Execution phase LOAD X meaning CON(X) → R 1. IRaddr → MAR Send address X to MAR 2. FETCH Initiate fetch, data to MDR 3. MDR → R Copy data in MDR into R STORE X meaning R → CON(X) 1. IRaddr → MAR Send address X to MAR 2. R → MDR Send data in R to MDR 3. STORE Initiate store of MDR to X
  • 46. Putting the Pieces Together—the Von Neumann Architecture (7 of 9) ADD X meaning R + CON(X) → R 1. IRaddr → MAR Send address X to MAR 2. FETCH Initiate fetch, data to MDR 3. MDR → ALU Send data in MDR to ALU 4. R → ALU Send data in R to ALU 5. ADD Select ADD circuit as result 6. ALU → R Copy selected result to R JUMP X meaning get next instruction from X 1. IRaddr → PC Send address X to PC
  • 47. Putting the Pieces Together—the Von Neumann Architecture (8 of 9) COMPARE X meaning: if CON(X) > R, then GT = 1, else 0 if CON(X) = R, then EQ = 1, else 0 if CON(X) < R, then LT = 1, else 0 1. IRaddr → MAR Send address X to MAR 2. FETCH Initiate fetch, data to MDR 3. MDR → ALU Send data in MDR to ALU 4. R → ALU Send data in R to ALU 5. SUBTRACT Evaluate CON(X) – R Sets EQ, GT, and LT
  • 48. Putting the Pieces Together—the Von Neumann Architecture (9 of 9) JUMPGT X meaning: if GT = 1, then jump to X, else continue to next instruction 1. IF GT = 1 THEN IRaddr → PC
  • 49. Non–Von Neumann Architectures (1 of 6) • Problems to solve are always larger • Computer chip speeds no longer increase exponentially • Reducing size puts gates closer together, faster – Speed of light pertains to signals through wire – Cannot put gates much closer together – Heat production increases too fast • Von Neumann bottleneck: inability of sequential machines to handle larger problems
  • 51. Non–Von Neumann Architectures (3 of 6) • Non–Von Neumann architectures – Other ways to organize computers – Most are experimental/theoretical, EXCEPT parallel processing • Parallel processing – Many processing units operating at the same time – Supercomputers (in the past) – Desktop multicore machines and “the cloud” (in the present) – Quantum computing (in the future)
  • 52. Non–Von Neumann Architectures (4 of 6) MIMD parallel processing • Multiple instruction stream/Multiple data streams – Cluster computing • Multiple, independent processors • Each ALU operates on its own data • Each processor can operate independently – On its own data – On its own program – At its own rate
  • 54. Non–Von Neumann Architectures (6 of 6) Varieties of MIMD systems • Special-purpose systems: newer supercomputers • Cluster computing: standard machines communicating over LAN or WAN • Grid computing: machines of varying power, over large distances/Internet – Examples  SETI project  BOINC at Berkley • Hot research area ► parallel algorithms – Need to take advantage of all this processing power
  • 55. Summary (1 of 2) • We must abstract in order to manage system complexity—no more writing instructions in machine language. • Von Neumann architecture is standard for modern computing. • Von Neumann machines have memory, I/O, ALU, and control unit; programs are stored in memory; execution is sequential unless program says otherwise. • Memory is organized into addressable cells; data is fetched and stored based on MAR and MDR; uses decoder and fetch/store controller.
  • 56. Summary (2 of 2) • Mass data storage is nonvolatile; disks store and fetch sectors of data stored in tracks. • I/O is slow, needs dedicated controller to free CPU. • ALU performs computations, moving data to/from dedicated registers. • Control unit fetches, decodes, and executes instructions; instructions are written in machine language. • Parallel processing architectures can perform multiple instructions at one time.