Recap of Single Bus Organization - 14.4.2 | 14. Handling Different Addressing Modes | Computer Organisation and Architecture - Vol 2
K12 Students

Academics

AI-Powered learning for Grades 8–12, aligned with major Indian and international curricula.

Professionals

Professional Courses

Industry-relevant training in Business, Technology, and Design to help professionals and graduates upskill for real-world careers.

Games

Interactive Games

Fun, engaging games to boost memory, math fluency, typing speed, and English skills—perfect for learners of all ages.

Interactive Audio Lesson

Listen to a student-teacher conversation explaining the topic in a relatable way.

Introduction to Single Bus Architecture

Unlock Audio Lesson

0:00
Teacher
Teacher

Welcome everyone! Today we’re discussing the single bus organization. Can anyone tell me why this architecture is significant?

Student 1
Student 1

Is it because it connects all components allowing them to share a single communication path?

Teacher
Teacher

Exactly! This organization simplifies connections between the CPU, memory, and input/output devices. Now, can anyone name some registers involved in this architecture?

Student 2
Student 2

The Program Counter and Memory Address Register?

Student 3
Student 3

And don't forget the Memory Data Register!

Teacher
Teacher

"Great! Remember, the acronym

Addressing Modes – Immediate Mode

Unlock Audio Lesson

0:00
Teacher
Teacher

Now, let’s look at the immediate addressing mode. Can anyone explain what it is?

Student 4
Student 4

It stores the operand directly in the instruction itself!

Teacher
Teacher

Correct! Would you like to walk us through the steps of fetching an instruction using immediate addressing mode?

Student 1
Student 1

Sure! First, we load the Program Counter into the bus, then we fetch the instruction.

Student 2
Student 2

And after that, we load the immediate value from the instruction register to the specified register.

Teacher
Teacher

Excellent! So there are four steps in total: fetching, loading the PC, and transferring the operand. Now remember the acronym: **F-Load-T** for Fetch, Load, and Transfer. Let’s apply this knowledge to the next addressing mode.

Direct Addressing Mode

Unlock Audio Lesson

0:00
Teacher
Teacher

Let’s discuss the direct addressing mode. How does it differ from the immediate mode?

Student 3
Student 3

In direct mode, the operand is stored in a memory location specified by the instruction!

Teacher
Teacher

Correct! What are the steps we follow in direct addressing mode?

Student 4
Student 4

First, we fetch the instruction, then the address is loaded into MAR.

Student 1
Student 1

Then we wait for memory to be ready, and finally load the content into the designated register.

Teacher
Teacher

Brilliant! In direct mode, we need six steps. Let’s remember this using the mnemonic **F-Await-LF**: Fetch, Address, Load, and Finish. Great job everyone!

Indirect Addressing Mode

Unlock Audio Lesson

0:00
Teacher
Teacher

Now, can anyone share what indirect addressing mode entails?

Student 2
Student 2

In indirect mode, the address specified in the instruction points to another memory location!

Teacher
Teacher

That’s right! Now how many steps does it require?

Student 3
Student 3

It’s more complex and requires seven steps, because we must access two memory locations.

Teacher
Teacher

Perfect! Remember the number **7** when you think about the indirect mode. The hint to remember this is **IF-7 Steps**: Instructions Fetching with 7 steps. Let's summarize the main points we've covered.

Review of Addressing Modes

Unlock Audio Lesson

0:00
Teacher
Teacher

To conclude, we explored three addressing modes: immediate, direct, and indirect. Can anyone summarize the main differences?

Student 4
Student 4

Immediate uses the operand directly in the instruction, direct fetches it from a specified memory location, and indirect points to another memory location!

Student 2
Student 2

And the number of steps is 4 for immediate, 6 for direct, and 7 for indirect mode!

Teacher
Teacher

Excellent recap! Remember these distinctions as they form the foundation for understanding how CPUs operate. The mnemonic **I-D-C**: Immediate, Direct, and Indirect will help you recall the types. Thank you all for participating!

Introduction & Overview

Read a summary of the section's main ideas. Choose from Basic, Medium, or Detailed.

Quick Overview

This section provides a recap of the single bus architecture and its role in managing different addressing modes during instruction execution.

Standard

In this section, the discussion revolves around the single bus architecture for instruction execution, focusing on addressing modes such as immediate, direct, and indirect. It highlights the step-by-step control signals needed for executing instructions across various addressing modes and summarizes the micro-instruction sequences.

Detailed

Detailed Summary

This section reiterates the functionality of a single bus organization in computer architecture, specifically focusing on addressing modes which dictate how instructions are executed. The single bus architecture allows different components like the Program Counter (PC), Memory Address Register (MAR), and Memory Data Register (MDR) to interact efficiently. The instruction execution process is segmented into several phases: fetching the instruction, decoding it, and executing based on the obtained addressing modes.

Different addressing modes are explored: immediate, direct, and indirect. Each mode comes with a unique sequence of control signals and micro-instructions essential for executing the respective instruction. For instance, an immediate mode typically requires fewer steps compared to direct and indirect modes. The section concludes with the significance of understanding these addressing modes, which are fundamental to enhancing programming efficiency and optimizing CPU operations.

Youtube Videos

One Shot of Computer Organisation and Architecture for Semester exam
One Shot of Computer Organisation and Architecture for Semester exam

Audio Book

Dive deep into the subject with an immersive audiobook experience.

Overview of Single Bus Architecture

Unlock Audio Book

Signup and Enroll to the course for listening the Audio Book

Basically, we have a program counter, memory address register, and memory data register, which is taking the data from memory. We also have the ALU, which has a Y as the input from the bus. There is a multiplexer that takes a constant as the input required to increment the program counter. The output of the ALU is stored in a temporary register called Z. This is your register bank, instruction register, and it directly goes into the instruction decoder, generating the control signals for the instruction.

Detailed Explanation

In a single bus organization, we use a shared communication path (the bus) to connect all the components – such as the program counter and registers. Data flows through this bus, which simplifies the architecture by reducing the number of connections needed between components. The program counter holds the address of the next instruction to be executed, while the memory address register holds the address of memory locations for data retrieval. The ALU performs arithmetic and logic operations, using inputs from the bus. The multiplexer facilitates selecting between different inputs, such as a constant value to increment the program counter.

Examples & Analogies

Think of this system like a single-lane road where multiple cars (data) can use the same lane (bus) to get to their destination (memory/ALU). Each car takes turns driving along the road to reach either a restaurant (data register) or a parking lot (instruction register) where they will do their job (fetch or execute instructions).

Instruction Fetch Steps

Unlock Audio Book

Signup and Enroll to the course for listening the Audio Book

We have seen that the first 3 steps consist of instruction fetch. In step 1, the program counter value is loaded into the bus, and the bus sends this value to the memory address register. Memory is set to read mode. The ALU adds program counter value with a constant (the next memory location), and this value is loaded back into the program counter in the next iteration. In step 2, the accumulator holds the value of PC = PC + 1, and the instruction from the memory location is dumped to the memory data register. Step 3 confirms the memory is ready and now transfers the instruction from the memory data register to the instruction register via the bus.

Detailed Explanation

Instruction fetching involves getting the instruction from memory to be executed. In the first three steps: 1) the program counter’s address is placed on the bus to access memory, 2) the program counter is then incremented to point to the next instruction, and 3) the fetched instruction is moved from the memory to the instruction register. This is vital for the processor to know what task it needs to perform next. The first three steps are essential and uniform for all instructions, setting the stage for further instruction processing.

Examples & Analogies

Imagine this process as a chef (CPU) preparing to cook (execute an instruction). The chef first fetches the recipe (instruction) from a cookbook (memory), checks the next page (incrementing the PC), and prepares to begin cooking. Only once the recipe is fetched can the cooking start!

Addressing Modes and Their Control Signals

Unlock Audio Book

Signup and Enroll to the course for listening the Audio Book

The next stages depend on the type of instruction. If the instruction is direct, in step 4, we get the value of M from the instruction register, which indicates the specific memory location with the operand. This value is then loaded into the memory address register, and the memory is set to read mode. Similarly, if it’s an indirect addressing mode, it requires more steps compared to direct mode. In immediate addressing mode, the operand is retrieved directly from the instruction.

Detailed Explanation

Addressing modes define how the instruction specifies the operand needed for execution. In direct addressing, the instruction contains the memory address directly. Indirect addressing involves an additional lookup, as the address points to another location where the operand is stored. The control signals generated vary accordingly, with indirect mode needing more steps to navigate the extra layer of memory. Immediate addressing, however, is most efficient as it requires simply pulling the value directly from the instruction.

Examples & Analogies

Consider this as selecting vegetables for cooking. Using direct addressing is like selecting an onion by pointing directly to it. In indirect addressing, you point to a basket that contains another basket that has the onion. With immediate addressing, you already have the chopped onion written into your recipe! Each mode represents a different way of determining where to get the necessary ingredients.

Definitions & Key Concepts

Learn essential terms and foundational ideas that form the basis of the topic.

Key Concepts

  • Single Bus Architecture: A communication system where a single bus connects different components.

  • Addressing Modes: Different ways to specify operand locations for instructions.

  • Immediate Mode: Operand directly specified within the instruction.

  • Direct Mode: Operand fetched from a specified memory location.

  • Indirect Mode: Operand fetched from a location pointed to by another address.

Examples & Real-Life Applications

See how the concepts apply in real-world scenarios to understand their practical implications.

Examples

  • In immediate mode, an instruction like LOAD R1, 32 directly specifies the value to load into the register R1.

  • In direct mode, an instruction like LOAD R1, M would fetch the operand from the memory address pointed by M.

  • In indirect mode, an instruction like LOAD R1, (M) would first retrieve the address from M and then fetch the real operand from that address.

Memory Aids

Use mnemonics, acronyms, or visual cues to help remember key information more easily.

🎵 Rhymes Time

  • In immediate mode, the value is clear, direct and indirect, bring the data near!

📖 Fascinating Stories

  • Imagine a treasure map: immediate tells you where to dig, direct shows you the treasure's box, and indirect gives you another map to find the first!

🧠 Other Memory Gems

  • Remember I-D-I for Immediate, Direct, Indirect when addressing!

🎯 Super Acronyms

Use **PC-MAR-MDR** to remember key registers in the bus architecture!

Flash Cards

Review key concepts with flashcards.

Glossary of Terms

Review the Definitions for terms.

  • Term: Single Bus Architecture

    Definition:

    A computer organization where a single bus is used for communication among all components.

  • Term: Program Counter (PC)

    Definition:

    A register that holds the address of the next instruction to be executed.

  • Term: Memory Address Register (MAR)

    Definition:

    A register that contains the address of the memory location to read from or write to.

  • Term: Memory Data Register (MDR)

    Definition:

    A register that holds the data being transferred to or from the memory.

  • Term: Addressing Mode

    Definition:

    Method used to specify an operand for the instruction.