ºÝºÝߣ

ºÝºÝߣShare a Scribd company logo
HYPOTHETICAL MACHINE,
INSTRUCTION FLOW
SCENARIOS
INTRODUCTION
The hypothetical computer described here serves as a model, or
abstraction, of the step-by-step behavior of a real-life digital computer.
Being only a model (and thus a simplification of reality), the hypothetical
computer does not possess all the capabilities of a (typical) real-life
general-purpose computer; however, it operates in, essentially, the
same way.
Thus, by coming to an understanding of this model, you will have come
also to a better understanding of what goes on "under the hood" of
your laptop computer, or smart phone, or other digital data processing
device that you may happen to use.
COMPONENTS OF
HYPOTHETICAL MACHINE
?RAM (main memory):
? 16-bit memory locations
?Central Processing Unit (CPU):
? Control unit (CU): does the decoding (or interpreting) of instructions,
and sends out the electronic signals that cause an instruction to be
executed
? Arithmetic/logic unit (ALU): carries out the arithmetic calculations
(e.g., adding) and logical calculations (e.g., comparing)
? Registers: special, high-speed storage cells (but not part of RAM) that
are directly accessible by the CU and ALU
? Accumulator (AC): Holds data that has just been produced as the result
of an instruction or that is about to be operated upon
? Program Counter (PC): Holds the address of the memory location
containing the next instruction to be executed.
? Instruction Register (IR) Holds the instruction about to be (or being)
executed
COMPONENTS OF
HYPOTHETICAL MACHINE
?I/O Devices:
? keyboard, at which the user can enter integer values
? screen, on which integer values can be displayed
EXAMPLE:
Step 1: Step 2:
Step 3: Step 4:
Step 5: Step 6:
INSTRUCTION FLOW
SCENARIOS
?Fetch the instruction
? The CPU sends the PC to the MAR and sends a read command on
the address bus
? In response to the read command, the memory returns the data
stored at the memory location indicated by PC on the data bus
? The CPU copies the data from the data bus into its MBR
? A fraction of a second later, the CPU copies the data from the MDR to
the instruction register (IR)
? The PC is incremented so that it points to the following instruction in
memory. This step prepares the CPU for the next cycle.
?Decode the instruction
? The opcode fetched from the memory is decoded for the next steps
and moved to the appropriate registers.
INSTRUCTION FLOW
?Reading the effective address
? Direct memory instruction - Nothing is being done.
? Indirect memory instruction - The effective address is
being read from the memory.
?Execute Instruction
? Here, the function of the instruction is performed. If the instruction
involves arithmetic or logic, the Arithmetic Logic Unit is utilized.
DATA FLOW FETCH CYCLE
DATA FLOW INDIRECT CYCLE
DATA FLOW INTERRUPT CYCLE
INSTRUCTION CYCLE STATE
DIAGRAM
Hypothetical machine and instruction flow scenarios

More Related Content

What's hot (20)

Cpu organisation
Cpu organisationCpu organisation
Cpu organisation
Er Sangita Vishwakarma
?
Computer registers
Computer registersComputer registers
Computer registers
Jatin Grover
?
operating system lecture notes
operating system lecture notesoperating system lecture notes
operating system lecture notes
AVC College of Engineering
?
Processor Organization and Architecture
Processor Organization and ArchitectureProcessor Organization and Architecture
Processor Organization and Architecture
Vinit Raut
?
IO Techniques in Computer Organization
IO Techniques in Computer OrganizationIO Techniques in Computer Organization
IO Techniques in Computer Organization
Om Prakash
?
Arbitration in computer organization
 Arbitration in computer organization   Arbitration in computer organization
Arbitration in computer organization
Amit kashyap
?
Shared-Memory Multiprocessors
Shared-Memory MultiprocessorsShared-Memory Multiprocessors
Shared-Memory Multiprocessors
Salvatore La Bua
?
Data transfer and manipulation
Data transfer and manipulationData transfer and manipulation
Data transfer and manipulation
Sanjeev Patel
?
Microprogrammed Control Unit
Microprogrammed Control UnitMicroprogrammed Control Unit
Microprogrammed Control Unit
PreethiSureshkumar1
?
Interrupts
InterruptsInterrupts
Interrupts
Urwa Shanza
?
Bus aribration
Bus aribrationBus aribration
Bus aribration
Saiyam Agrawal
?
System call
System callSystem call
System call
Sumant Diwakar
?
Computer system bus
Computer system busComputer system bus
Computer system bus
Goran W. Hama Ali
?
Process scheduling
Process schedulingProcess scheduling
Process scheduling
Riya Choudhary
?
Memory organization (Computer architecture)
Memory organization (Computer architecture)Memory organization (Computer architecture)
Memory organization (Computer architecture)
Sandesh Jonchhe
?
Cache memory ppt
Cache memory ppt  Cache memory ppt
Cache memory ppt
Arpita Naik
?
Storage management in operating system
Storage management in operating systemStorage management in operating system
Storage management in operating system
DeepikaT13
?
I/O System
I/O SystemI/O System
I/O System
Nagarajan
?
Computer architecture cache memory
Computer architecture cache memoryComputer architecture cache memory
Computer architecture cache memory
Mazin Alwaaly
?
Computer architecture input output organization
Computer architecture input output organizationComputer architecture input output organization
Computer architecture input output organization
Mazin Alwaaly
?
Processor Organization and Architecture
Processor Organization and ArchitectureProcessor Organization and Architecture
Processor Organization and Architecture
Vinit Raut
?
IO Techniques in Computer Organization
IO Techniques in Computer OrganizationIO Techniques in Computer Organization
IO Techniques in Computer Organization
Om Prakash
?
Arbitration in computer organization
 Arbitration in computer organization   Arbitration in computer organization
Arbitration in computer organization
Amit kashyap
?
Shared-Memory Multiprocessors
Shared-Memory MultiprocessorsShared-Memory Multiprocessors
Shared-Memory Multiprocessors
Salvatore La Bua
?
Data transfer and manipulation
Data transfer and manipulationData transfer and manipulation
Data transfer and manipulation
Sanjeev Patel
?
Memory organization (Computer architecture)
Memory organization (Computer architecture)Memory organization (Computer architecture)
Memory organization (Computer architecture)
Sandesh Jonchhe
?
Storage management in operating system
Storage management in operating systemStorage management in operating system
Storage management in operating system
DeepikaT13
?
Computer architecture cache memory
Computer architecture cache memoryComputer architecture cache memory
Computer architecture cache memory
Mazin Alwaaly
?
Computer architecture input output organization
Computer architecture input output organizationComputer architecture input output organization
Computer architecture input output organization
Mazin Alwaaly
?

Similar to Hypothetical machine and instruction flow scenarios (20)

3. IICT_Lecture 03_Computer Org Personal
3. IICT_Lecture 03_Computer Org Personal3. IICT_Lecture 03_Computer Org Personal
3. IICT_Lecture 03_Computer Org Personal
National College of Business Administration and Economics
?
computer Architecture
computer Architecturecomputer Architecture
computer Architecture
umardanjumamaiwada
?
L-1 BCE computer fundamentals final kirti.ppt
L-1 BCE computer fundamentals final kirti.pptL-1 BCE computer fundamentals final kirti.ppt
L-1 BCE computer fundamentals final kirti.ppt
Kirti Verma
?
Chs demo
Chs demoChs demo
Chs demo
david david
?
CPU and memory
CPU and memoryCPU and memory
CPU and memory
Wajiha Muhammad Ismail
?
CPU ARCHITECTURE and COMPUTER PROGRAMS G
CPU ARCHITECTURE and COMPUTER PROGRAMS GCPU ARCHITECTURE and COMPUTER PROGRAMS G
CPU ARCHITECTURE and COMPUTER PROGRAMS G
akudzweisheguri
?
Ch 01 os8e
Ch 01  os8eCh 01  os8e
Ch 01 os8e
Syed Faisal
?
PROGRAMMABLE LOGIC CONTROLLER
PROGRAMMABLE LOGIC CONTROLLERPROGRAMMABLE LOGIC CONTROLLER
PROGRAMMABLE LOGIC CONTROLLER
arunkumar6836
?
Basic of operating system
Basic of operating systemBasic of operating system
Basic of operating system
priyanka jain
?
co1_aiml_new.pptx
co1_aiml_new.pptxco1_aiml_new.pptx
co1_aiml_new.pptx
KUNTALADAS5
?
Intro to cao &store program
Intro to cao &store programIntro to cao &store program
Intro to cao &store program
Mahesh Kumar Attri
?
Lecture 3 Computer architecture-cpu.pptx
Lecture 3 Computer architecture-cpu.pptxLecture 3 Computer architecture-cpu.pptx
Lecture 3 Computer architecture-cpu.pptx
samgamingofficial01
?
Microprocessor
MicroprocessorMicroprocessor
Microprocessor
aaina_katyal
?
Chapter 1.pdf
Chapter 1.pdfChapter 1.pdf
Chapter 1.pdf
AnisZahirahAzman
?
Introduction to-microprocessor
Introduction to-microprocessorIntroduction to-microprocessor
Introduction to-microprocessor
ankitnav1
?
Introduction to-microprocessor
Introduction to-microprocessorIntroduction to-microprocessor
Introduction to-microprocessor
ankitnav1
?
Comp App Lect 2 System Unit.pptx
Comp App Lect 2 System Unit.pptxComp App Lect 2 System Unit.pptx
Comp App Lect 2 System Unit.pptx
MehwishKanwal14
?
1834902155 aka asgn 313
1834902155 aka asgn 3131834902155 aka asgn 313
1834902155 aka asgn 313
FatemaYesminAka
?
Chap 3 CA.pptx
Chap 3 CA.pptxChap 3 CA.pptx
Chap 3 CA.pptx
SahalAhmed4
?
APznzaboj9CF_9DQRT2HR-lWEYeLjr197Vw_ZUktUfDvP5Qqd8SL2ZSNwpIwVoC6MN9lqvglTXM11...
APznzaboj9CF_9DQRT2HR-lWEYeLjr197Vw_ZUktUfDvP5Qqd8SL2ZSNwpIwVoC6MN9lqvglTXM11...APznzaboj9CF_9DQRT2HR-lWEYeLjr197Vw_ZUktUfDvP5Qqd8SL2ZSNwpIwVoC6MN9lqvglTXM11...
APznzaboj9CF_9DQRT2HR-lWEYeLjr197Vw_ZUktUfDvP5Qqd8SL2ZSNwpIwVoC6MN9lqvglTXM11...
rohithzach
?

Recently uploaded (20)

[Webinar] Scaling Made Simple: Getting Started with No-Code Web Apps
[Webinar] Scaling Made Simple: Getting Started with No-Code Web Apps[Webinar] Scaling Made Simple: Getting Started with No-Code Web Apps
[Webinar] Scaling Made Simple: Getting Started with No-Code Web Apps
Safe Software
?
The Future of Repair: Transparent and Incremental by Botond De?nes
The Future of Repair: Transparent and Incremental by Botond De?nesThe Future of Repair: Transparent and Incremental by Botond De?nes
The Future of Repair: Transparent and Incremental by Botond De?nes
ScyllaDB
?
How Discord Indexes Trillions of Messages: Scaling Search Infrastructure by V...
How Discord Indexes Trillions of Messages: Scaling Search Infrastructure by V...How Discord Indexes Trillions of Messages: Scaling Search Infrastructure by V...
How Discord Indexes Trillions of Messages: Scaling Search Infrastructure by V...
ScyllaDB
?
Endpoint Backup: 3 Reasons MSPs Ignore It
Endpoint Backup: 3 Reasons MSPs Ignore ItEndpoint Backup: 3 Reasons MSPs Ignore It
Endpoint Backup: 3 Reasons MSPs Ignore It
MSP360
?
Backstage Software Templates for Java Developers
Backstage Software Templates for Java DevelopersBackstage Software Templates for Java Developers
Backstage Software Templates for Java Developers
Markus Eisele
?
THE BIG TEN BIOPHARMACEUTICAL MNCs: GLOBAL CAPABILITY CENTERS IN INDIA
THE BIG TEN BIOPHARMACEUTICAL MNCs: GLOBAL CAPABILITY CENTERS IN INDIATHE BIG TEN BIOPHARMACEUTICAL MNCs: GLOBAL CAPABILITY CENTERS IN INDIA
THE BIG TEN BIOPHARMACEUTICAL MNCs: GLOBAL CAPABILITY CENTERS IN INDIA
Srivaanchi Nathan
?
Revolutionizing-Government-Communication-The-OSWAN-Success-Story
Revolutionizing-Government-Communication-The-OSWAN-Success-StoryRevolutionizing-Government-Communication-The-OSWAN-Success-Story
Revolutionizing-Government-Communication-The-OSWAN-Success-Story
ssuser52ad5e
?
UiPath Automation Developer Associate Training Series 2025 - Session 1
UiPath Automation Developer Associate Training Series 2025 - Session 1UiPath Automation Developer Associate Training Series 2025 - Session 1
UiPath Automation Developer Associate Training Series 2025 - Session 1
DianaGray10
?
UiPath Agentic Automation Capabilities and Opportunities
UiPath Agentic Automation Capabilities and OpportunitiesUiPath Agentic Automation Capabilities and Opportunities
UiPath Agentic Automation Capabilities and Opportunities
DianaGray10
?
DealBook of Ukraine: 2025 edition | AVentures Capital
DealBook of Ukraine: 2025 edition | AVentures CapitalDealBook of Ukraine: 2025 edition | AVentures Capital
DealBook of Ukraine: 2025 edition | AVentures Capital
Yevgen Sysoyev
?
Unlocking DevOps Secuirty :Vault & Keylock
Unlocking DevOps Secuirty :Vault & KeylockUnlocking DevOps Secuirty :Vault & Keylock
Unlocking DevOps Secuirty :Vault & Keylock
HusseinMalikMammadli
?
Unlock AI Creativity: Image Generation with DALL¡¤E
Unlock AI Creativity: Image Generation with DALL¡¤EUnlock AI Creativity: Image Generation with DALL¡¤E
Unlock AI Creativity: Image Generation with DALL¡¤E
Expeed Software
?
A Framework for Model-Driven Digital Twin Engineering
A Framework for Model-Driven Digital Twin EngineeringA Framework for Model-Driven Digital Twin Engineering
A Framework for Model-Driven Digital Twin Engineering
Daniel Lehner
?
Transform Your Future with Front-End Development Training
Transform Your Future with Front-End Development TrainingTransform Your Future with Front-End Development Training
Transform Your Future with Front-End Development Training
Vtechlabs
?
Future-Proof Your Career with AI Options
Future-Proof Your  Career with AI OptionsFuture-Proof Your  Career with AI Options
Future-Proof Your Career with AI Options
DianaGray10
?
Fl studio crack version 12.9 Free Download
Fl studio crack version 12.9 Free DownloadFl studio crack version 12.9 Free Download
Fl studio crack version 12.9 Free Download
kherorpacca127
?
L01 Introduction to Nanoindentation - What is hardness
L01 Introduction to Nanoindentation - What is hardnessL01 Introduction to Nanoindentation - What is hardness
L01 Introduction to Nanoindentation - What is hardness
RostislavDaniel
?
Brave Browser Crack 1.45.133 Activated 2025
Brave Browser Crack 1.45.133 Activated 2025Brave Browser Crack 1.45.133 Activated 2025
Brave Browser Crack 1.45.133 Activated 2025
kherorpacca00126
?
TrustArc Webinar - Building your DPIA/PIA Program: Best Practices & Tips
TrustArc Webinar - Building your DPIA/PIA Program: Best Practices & TipsTrustArc Webinar - Building your DPIA/PIA Program: Best Practices & Tips
TrustArc Webinar - Building your DPIA/PIA Program: Best Practices & Tips
TrustArc
?
DAO UTokyo 2025 DLT mass adoption case studies IBM Tsuyoshi Hirayama (ƽɽÒã)
DAO UTokyo 2025 DLT mass adoption case studies IBM Tsuyoshi Hirayama (ƽɽÒã)DAO UTokyo 2025 DLT mass adoption case studies IBM Tsuyoshi Hirayama (ƽɽÒã)
DAO UTokyo 2025 DLT mass adoption case studies IBM Tsuyoshi Hirayama (ƽɽÒã)
Tsuyoshi Hirayama
?
[Webinar] Scaling Made Simple: Getting Started with No-Code Web Apps
[Webinar] Scaling Made Simple: Getting Started with No-Code Web Apps[Webinar] Scaling Made Simple: Getting Started with No-Code Web Apps
[Webinar] Scaling Made Simple: Getting Started with No-Code Web Apps
Safe Software
?
The Future of Repair: Transparent and Incremental by Botond De?nes
The Future of Repair: Transparent and Incremental by Botond De?nesThe Future of Repair: Transparent and Incremental by Botond De?nes
The Future of Repair: Transparent and Incremental by Botond De?nes
ScyllaDB
?
How Discord Indexes Trillions of Messages: Scaling Search Infrastructure by V...
How Discord Indexes Trillions of Messages: Scaling Search Infrastructure by V...How Discord Indexes Trillions of Messages: Scaling Search Infrastructure by V...
How Discord Indexes Trillions of Messages: Scaling Search Infrastructure by V...
ScyllaDB
?
Endpoint Backup: 3 Reasons MSPs Ignore It
Endpoint Backup: 3 Reasons MSPs Ignore ItEndpoint Backup: 3 Reasons MSPs Ignore It
Endpoint Backup: 3 Reasons MSPs Ignore It
MSP360
?
Backstage Software Templates for Java Developers
Backstage Software Templates for Java DevelopersBackstage Software Templates for Java Developers
Backstage Software Templates for Java Developers
Markus Eisele
?
THE BIG TEN BIOPHARMACEUTICAL MNCs: GLOBAL CAPABILITY CENTERS IN INDIA
THE BIG TEN BIOPHARMACEUTICAL MNCs: GLOBAL CAPABILITY CENTERS IN INDIATHE BIG TEN BIOPHARMACEUTICAL MNCs: GLOBAL CAPABILITY CENTERS IN INDIA
THE BIG TEN BIOPHARMACEUTICAL MNCs: GLOBAL CAPABILITY CENTERS IN INDIA
Srivaanchi Nathan
?
Revolutionizing-Government-Communication-The-OSWAN-Success-Story
Revolutionizing-Government-Communication-The-OSWAN-Success-StoryRevolutionizing-Government-Communication-The-OSWAN-Success-Story
Revolutionizing-Government-Communication-The-OSWAN-Success-Story
ssuser52ad5e
?
UiPath Automation Developer Associate Training Series 2025 - Session 1
UiPath Automation Developer Associate Training Series 2025 - Session 1UiPath Automation Developer Associate Training Series 2025 - Session 1
UiPath Automation Developer Associate Training Series 2025 - Session 1
DianaGray10
?
UiPath Agentic Automation Capabilities and Opportunities
UiPath Agentic Automation Capabilities and OpportunitiesUiPath Agentic Automation Capabilities and Opportunities
UiPath Agentic Automation Capabilities and Opportunities
DianaGray10
?
DealBook of Ukraine: 2025 edition | AVentures Capital
DealBook of Ukraine: 2025 edition | AVentures CapitalDealBook of Ukraine: 2025 edition | AVentures Capital
DealBook of Ukraine: 2025 edition | AVentures Capital
Yevgen Sysoyev
?
Unlocking DevOps Secuirty :Vault & Keylock
Unlocking DevOps Secuirty :Vault & KeylockUnlocking DevOps Secuirty :Vault & Keylock
Unlocking DevOps Secuirty :Vault & Keylock
HusseinMalikMammadli
?
Unlock AI Creativity: Image Generation with DALL¡¤E
Unlock AI Creativity: Image Generation with DALL¡¤EUnlock AI Creativity: Image Generation with DALL¡¤E
Unlock AI Creativity: Image Generation with DALL¡¤E
Expeed Software
?
A Framework for Model-Driven Digital Twin Engineering
A Framework for Model-Driven Digital Twin EngineeringA Framework for Model-Driven Digital Twin Engineering
A Framework for Model-Driven Digital Twin Engineering
Daniel Lehner
?
Transform Your Future with Front-End Development Training
Transform Your Future with Front-End Development TrainingTransform Your Future with Front-End Development Training
Transform Your Future with Front-End Development Training
Vtechlabs
?
Future-Proof Your Career with AI Options
Future-Proof Your  Career with AI OptionsFuture-Proof Your  Career with AI Options
Future-Proof Your Career with AI Options
DianaGray10
?
Fl studio crack version 12.9 Free Download
Fl studio crack version 12.9 Free DownloadFl studio crack version 12.9 Free Download
Fl studio crack version 12.9 Free Download
kherorpacca127
?
L01 Introduction to Nanoindentation - What is hardness
L01 Introduction to Nanoindentation - What is hardnessL01 Introduction to Nanoindentation - What is hardness
L01 Introduction to Nanoindentation - What is hardness
RostislavDaniel
?
Brave Browser Crack 1.45.133 Activated 2025
Brave Browser Crack 1.45.133 Activated 2025Brave Browser Crack 1.45.133 Activated 2025
Brave Browser Crack 1.45.133 Activated 2025
kherorpacca00126
?
TrustArc Webinar - Building your DPIA/PIA Program: Best Practices & Tips
TrustArc Webinar - Building your DPIA/PIA Program: Best Practices & TipsTrustArc Webinar - Building your DPIA/PIA Program: Best Practices & Tips
TrustArc Webinar - Building your DPIA/PIA Program: Best Practices & Tips
TrustArc
?
DAO UTokyo 2025 DLT mass adoption case studies IBM Tsuyoshi Hirayama (ƽɽÒã)
DAO UTokyo 2025 DLT mass adoption case studies IBM Tsuyoshi Hirayama (ƽɽÒã)DAO UTokyo 2025 DLT mass adoption case studies IBM Tsuyoshi Hirayama (ƽɽÒã)
DAO UTokyo 2025 DLT mass adoption case studies IBM Tsuyoshi Hirayama (ƽɽÒã)
Tsuyoshi Hirayama
?

Hypothetical machine and instruction flow scenarios

  • 2. INTRODUCTION The hypothetical computer described here serves as a model, or abstraction, of the step-by-step behavior of a real-life digital computer. Being only a model (and thus a simplification of reality), the hypothetical computer does not possess all the capabilities of a (typical) real-life general-purpose computer; however, it operates in, essentially, the same way. Thus, by coming to an understanding of this model, you will have come also to a better understanding of what goes on "under the hood" of your laptop computer, or smart phone, or other digital data processing device that you may happen to use.
  • 3. COMPONENTS OF HYPOTHETICAL MACHINE ?RAM (main memory): ? 16-bit memory locations ?Central Processing Unit (CPU): ? Control unit (CU): does the decoding (or interpreting) of instructions, and sends out the electronic signals that cause an instruction to be executed ? Arithmetic/logic unit (ALU): carries out the arithmetic calculations (e.g., adding) and logical calculations (e.g., comparing) ? Registers: special, high-speed storage cells (but not part of RAM) that are directly accessible by the CU and ALU ? Accumulator (AC): Holds data that has just been produced as the result of an instruction or that is about to be operated upon ? Program Counter (PC): Holds the address of the memory location containing the next instruction to be executed. ? Instruction Register (IR) Holds the instruction about to be (or being) executed
  • 4. COMPONENTS OF HYPOTHETICAL MACHINE ?I/O Devices: ? keyboard, at which the user can enter integer values ? screen, on which integer values can be displayed
  • 8. INSTRUCTION FLOW SCENARIOS ?Fetch the instruction ? The CPU sends the PC to the MAR and sends a read command on the address bus ? In response to the read command, the memory returns the data stored at the memory location indicated by PC on the data bus ? The CPU copies the data from the data bus into its MBR ? A fraction of a second later, the CPU copies the data from the MDR to the instruction register (IR) ? The PC is incremented so that it points to the following instruction in memory. This step prepares the CPU for the next cycle. ?Decode the instruction ? The opcode fetched from the memory is decoded for the next steps and moved to the appropriate registers.
  • 9. INSTRUCTION FLOW ?Reading the effective address ? Direct memory instruction - Nothing is being done. ? Indirect memory instruction - The effective address is being read from the memory. ?Execute Instruction ? Here, the function of the instruction is performed. If the instruction involves arithmetic or logic, the Arithmetic Logic Unit is utilized.