ScholarQuill logoScholarQuillUniversity Notes
My Semester
Explore Notes
Past Papers12 New
Video CoursesNew
Search
Settings
Study Tools
GPA/CGPA Calculator
Schedule & To-Do
Student Portal
Contact
Contact
ScholarQuill logo
My Semester
Explore Notes
Past Papers12 New
Video CoursesNew
Search
Settings
GPA/CGPA Calculator
Schedule & To-Do
Student Portal
Contact
ScholarQuill logoScholarQuillUniversity Notes
Study PortalCOMP3137System Bus
Ctrl + K
Login
Explore
Search
Semester
Papers
CGPA
    COMP3137

    Computer Organization and Assembly Language

    Progress0 / 73 done
    Topics73
    1Introduction to Computer Organization2Assembly Language3Comparison of Low-Level and High-Level Languages
    4General Purpose and Special Purpose Registers5Introduction and Usage of RAM6Processor7Registers8System Bus9Instruction Execution Cycle10Assembly and Machine Language11Assembler12Linker and Link Libraries13Programmer's View of a Computer System14RISC and CISC Architecture15Physical Address Calculation16Basic Memory Organization17CPU Organization18Top Level View of Computer Function and Interconnection19Assembler Instruction Cycle20Execute Cycle21Interrupts22Interrupt Cycle23Memory Connection24Input/Output Connection25CPU Connection26MASM27MIPS28Defining Data in MASM Assembler29Elements of Assembly Language30Integer Constants31Integer Expressions32Real Number Constants33Character Constants34String Constants35Reserved Words36Identifiers37Directives38Instructions39The NOP (No Operation) Instruction40Adding and Subtracting Integer41INC and DEC Instructions42NEG Instruction43How to Move Integer Number in Register44Adding and Subtracting Numbers in Registers45Declaration and Initialization of Variables46Moving Data from Variable to Register47Data Definition Statement48BYTE and SBYTE Data49WORD and SWORD Data50Defining DWORD and SDWORD Data51Knowledge about Different Data Types52Operations, Array & Loops53Division and Multiplication in Assembly54Jumps Based on Specific Flags55Jumps Based on Equality56Simple Jump Statements57Jumps Based on Specific Condition58Code Examples59Practice on MASM60Procedures61File Operations Procedures62Labels in Procedures63Stack64Runtime Stack65Conditional Control Flow Directives66Compound Expressions67Data Representation & Conversion68Architecture69Data Path70Control Unit71Critical Path72General Principles of Pipelining73Pipelined Y86 Implementations
    8 min read
    Topic 8 of 73
    Topic Study Note Illustration
    08

    System Bus

    The system bus is a collection of pathways or lines used to transfer data between different components of a computer system. It is the primary communication channel...

    System Bus in Computer Architecture

    The system bus is a collection of pathways or lines used to transfer data between different components of a computer system. It is the primary communication channel between the CPU, memory, and I/O devices (input/output devices) and enables the exchange of data, instructions, and control signals. In essence, the system bus acts as the data highway that connects all major parts of the computer, allowing them to communicate efficiently.


    Key Components of a System Bus

    The system bus is typically divided into three main types of buses, each with a specific role in the data transfer process:

    1. Data Bus (for transferring data)
    2. Address Bus (for specifying the memory addresses)
    3. Control Bus (for coordinating the operations and data flow)

    1. Data Bus

    • Function: The data bus carries the actual data between the CPU, memory, and other components of the system. It is the pathway for the transfer of data to and from the CPU, memory, and I/O devices.
    • Width: The width of the data bus (measured in bits) determines how much data can be transferred at once. For example, an 8-bit data bus can transfer 8 bits of data at a time, while a 32-bit or 64-bit data bus can transfer 32 or 64 bits, respectively.
    • Example: If the CPU needs to read data from memory, it will place the address of the memory location on the address bus and then fetch the data from that address over the data bus.

    2. Address Bus

    • Function: The address bus is used to carry the memory addresses of the locations where data is to be read from or written to. It tells the system where the data is located or should be stored.
    • Unidirectional: The address bus is typically unidirectional, meaning data flows in one direction—from the CPU to memory or I/O devices—indicating where the data should be fetched or stored.
    • Width: The width of the address bus determines the maximum amount of memory the system can access. For example, a 16-bit address bus can access 2^16 = 65,536 memory locations, or 64 KB of memory. A 32-bit address bus can access up to 4 GB of memory.
    • Example: When the CPU wants to fetch data from a specific location in memory, it places the memory address on the address bus, and memory reads the data from that address.

    3. Control Bus

    • Function: The control bus is responsible for coordinating the activities of the CPU, memory, and other peripherals by transmitting control signals. These signals tell the system which operation is being performed (e.g., read, write, interrupt), as well as timing signals for synchronization.
    • Bidirectional: The control bus is often bidirectional, allowing signals to travel in both directions. It carries signals like:
      • Read/Write signals: Tells whether the operation is a read or a write.
      • Clock signals: Synchronizes the timing of operations.
      • Interrupt signals: Indicate the need for attention from the CPU, often used for handling I/O requests.
      • Bus Request/Grant signals: Indicate whether a device is requesting access to the system bus.

    Bus Architecture: How It Works

    1. CPU to Memory Communication:

      • The CPU places the memory address it wants to access on the address bus.
      • It sends a control signal over the control bus to indicate whether it wants to read or write data.
      • If reading, the CPU waits for the data to be placed on the data bus by the memory.
      • If writing, the CPU places the data to be written on the data bus, and the memory stores it at the specified address.
    2. I/O Devices Communication:

      • When the CPU needs to communicate with an I/O device (like a keyboard, printer, or disk), the address bus is used to specify which device is being accessed.
      • The CPU sends control signals over the control bus to manage the flow of data between the CPU and the I/O device.
      • Data is transferred over the data bus.

    Bus Width and Data Transfer Rate

    • Bus Width: Refers to the number of lines (bits) in the data, address, and control buses. The width determines how much data can be transferred at once and also impacts the overall system performance.

      • Example: A 32-bit system bus means the data bus, address bus, and control bus are all 32 bits wide. This allows for faster data transfer and larger addressable memory compared to a 16-bit bus.
    • Data Transfer Rate: The speed at which data can be transferred across the system bus. The data transfer rate depends on the bus width and the clock speed of the CPU. A faster clock speed or wider bus width means higher data transfer rates and better performance.


    Bus Contention and Arbitration

    In systems with multiple devices, bus contention may occur, where more than one device wants to access the bus simultaneously. To resolve this issue, bus arbitration mechanisms are used. Arbitration is the process of determining which device gets access to the system bus at any given time.

    • Types of Arbitration:
      1. Centralized Arbitration: One central controller (usually the CPU) controls the access to the bus.
      2. Distributed Arbitration: Each device has equal control and competes to access the bus. Devices follow a protocol to decide the order of access.

    Types of System Buses

    1. Single Bus Architecture:

      • In simpler systems, a single bus is shared by the CPU, memory, and I/O devices.
      • This architecture is easier and cheaper but can lead to performance bottlenecks since all components must share the same bus for data transfer.
    2. Multiple Bus Architecture:

      • In more advanced systems, multiple buses may be used, with different buses handling communication between the CPU and memory, or between the CPU and I/O devices, or other subsystems.
      • This reduces contention and allows for higher performance by allowing parallel data transfers.

    Example of System Bus in Action (Simplified)

    Let’s say the CPU wants to read a value from memory:

    1. The CPU places the memory address (where the data is located) on the address bus.
    2. The CPU sends a control signal over the control bus to tell memory to perform a read operation.
    3. Memory responds by placing the requested data on the data bus.
    4. The CPU reads the data from the data bus.

    Similarly, if the CPU wants to write data to memory, the process is reversed. The CPU places the data on the data bus, sends a write control signal, and memory stores the data at the specified address.


    System Bus vs. External Bus

    • System Bus: Refers to the bus that connects the CPU to internal components like RAM and I/O devices within the computer's motherboard.
    • External Bus: Refers to the bus that connects the computer to external devices (e.g., printers, monitors, external storage) or other computers in a network. External buses can include USB, PCIe, Thunderbolt, and more.

    Summary

    The system bus is the primary communication pathway that enables different components of a computer to interact with each other. It consists of three main components:

    • Data Bus: Transfers actual data.
    • Address Bus: Specifies where the data should go.
    • Control Bus: Coordinates the flow of data and operations.

    The width and speed of the system bus are crucial for determining the performance of a computer system, as a wider and faster bus allows quicker data transfer. Bus contention (when multiple devices compete for the same bus) is a potential issue, which is managed through bus arbitration.

    In summary, the system bus is a central element of computer architecture, facilitating communication between the processor, memory, and I/O devices, and directly impacting the overall performance of the system.

    ← Previous topic 7
    Registers
    Next topic 9 →
    Instruction Execution Cycle

    Past Papers

    Open this section to view and download past papers

    Click on Show Past Papers to load available exam papers.

    Reading Progress
    0%
    8mremaining
    1.3kwords
    Intermediatelevel
    On This Page

    No headings found

    Study Toolkit

    Subject Portal

    Computer Organization and Assembly Language