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 PortalCOMP3137Top Level View Compute…
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
    7 min read
    Topic 18 of 73
    Topic Study Note Illustration
    18

    Top Level View of Computer Function and Interconnection

    The top-level view of computer function and interconnection provides an understanding of how the main components of a computer system interact to perform tasks. This includes how...

    Top-Level View of Computer Function and Interconnection

    The top-level view of computer function and interconnection provides an understanding of how the main components of a computer system interact to perform tasks. This includes how different hardware components communicate with each other and work together to execute instructions, manage data, and interact with input/output devices.

    In general, a computer system can be broken down into a few key components:

    1. Central Processing Unit (CPU)
    2. Memory
    3. Input/Output Devices (I/O)
    4. System Bus

    Each of these components has a specific role, and they are interconnected through a communication system known as the system bus. Let's break down each of these components and how they are interconnected.


    1. Central Processing Unit (CPU)

    The CPU is often referred to as the "brain" of the computer. It performs the actual processing by executing instructions from programs. The CPU is responsible for the following key functions:

    • Instruction Fetch: The CPU retrieves instructions from memory (RAM).
    • Instruction Decode: It decodes the instructions to understand what actions need to be performed.
    • Execution: The CPU performs the required computation or action (e.g., arithmetic operations, data manipulation).
    • Control: The CPU controls other parts of the system by sending and receiving control signals.

    The CPU typically consists of the following subcomponents:

    • Arithmetic Logic Unit (ALU): Handles arithmetic and logical operations (addition, subtraction, AND, OR, etc.).
    • Control Unit (CU): Coordinates the activities of the CPU, including fetching instructions, decoding them, and controlling the execution process.
    • Registers: Small, high-speed storage locations within the CPU that hold data temporarily during execution.
    • Cache Memory: A small, fast memory located close to the CPU that stores frequently used data and instructions for faster access.

    2. Memory

    Memory is used to store data and instructions that the CPU needs to access. Memory can be categorized into two main types:

    • Primary Memory (Volatile):

      • RAM (Random Access Memory): Temporarily stores data that is actively being used or processed. When the computer is powered off, RAM is cleared.
      • Cache Memory: Smaller but faster than RAM, located close to the CPU to speed up access to frequently used data.
    • Secondary Memory (Non-Volatile):

      • Hard Disk Drives (HDD), Solid-State Drives (SSD), Optical Disks (CDs/DVDs), and Flash Drives: These store data permanently and are used for long-term storage of files, programs, and the operating system.

    Memory is organized in a hierarchical structure:

    • Registers (inside the CPU, fastest but limited in size)
    • Cache (L1, L2, and sometimes L3 caches)
    • RAM (larger but slower than cache)
    • Secondary storage (large and non-volatile)

    The Memory Management Unit (MMU) maps logical addresses generated by the CPU to physical addresses in the memory.


    3. Input/Output Devices (I/O)

    I/O devices allow the computer to communicate with the outside world. They handle the interaction between the computer and its environment. There are two main types of I/O devices:

    • Input Devices: Allow data to be input into the system, such as keyboards, mice, scanners, and microphones.
    • Output Devices: Allow the system to output data, such as monitors, printers, and speakers.

    I/O controllers manage the communication between the CPU and these external devices. For example, when you type a key on the keyboard, the keyboard controller sends a signal to the CPU, which then processes it and may display a corresponding character on the monitor through the graphics card or video controller.


    4. System Bus

    The system bus is a communication pathway that connects the CPU, memory, and I/O devices. It allows for the transfer of data and control signals between the various components of the computer. The system bus typically consists of three main components:

    1. Data Bus: Carries data between components. The width of the data bus (number of bits it can carry at once) impacts the overall speed and throughput of the system.
    2. Address Bus: Carries the addresses of where data is stored or retrieved in memory or I/O devices. The width of the address bus determines the amount of addressable memory.
    3. Control Bus: Carries control signals that manage the operations of the CPU and other components. It tells the system whether data is being read from memory, written to memory, or transferred to an I/O device.

    The bus structure can be either:

    • Single Bus: A single bus that carries data, addresses, and control signals.
    • Multiple Buses: A more complex design where different buses are used for data, addresses, and control.

    5. The Interconnection of Components

    All of the components of a computer are connected through the system bus, and they communicate using a set of protocols and signals. Here’s how these components typically interact:

    • CPU and Memory: The CPU retrieves instructions and data from memory via the data bus. It sends address information to the memory via the address bus to specify where the data is located.
    • CPU and I/O Devices: The CPU communicates with I/O devices using I/O controllers, which are connected to the system bus. Data can be read from or written to I/O devices through the data bus, and the CPU can control the I/O devices using signals from the control bus.
    • Memory and I/O Devices: In some systems, data can be transferred directly between memory and I/O devices using a Direct Memory Access (DMA) controller, which bypasses the CPU to improve data transfer speed.

    Diagram: High-Level View of Computer Function and Interconnection

    Here’s a simple diagram to visualize the high-level structure of a computer and how its components are interconnected:

                        +----------------------+
                        |     Input Devices    |
                        | (keyboard, mouse, etc)|
                        +----------+-----------+
                                   |
                                   |
                               +---v---+
                               | I/O  |
                               | Controller |
                               +---+---+
                                   |
                                   |
                      +------------+-----------+
                      |            |           |
              +-------v-----+ +----v----+ +----v-----+
              |  CPU        | |  Memory | |  I/O Devices|
              | (ALU, CU,   | | (RAM,   | | (Printer,    |
              | Registers,  | | Cache)  | | Monitor,     |
              | Control)    | |         | | Speakers)    |
              +-------+-----+ +----+----+ +----+--------+
                      |            |             |
                      |         +--v---------+   |
                      +---------+  System Bus |---+
                                +-------------+
                                     |
                                +----v-----+
                                | Control  |
                                | Bus,     |
                                | Address  |
                                | Bus,     |
                                | Data     |
                                | Bus      |
                                +----------+
    

    Summary

    • The CPU is the core processing unit that executes instructions, while memory stores data and instructions needed by the CPU.
    • I/O devices allow communication with the outside world, while the system bus is the pathway through which all components communicate.
    • The system bus consists of the data bus, address bus, and control bus, each serving specific functions in data transfer, memory addressing, and control signaling.
    • Components work together, with the CPU controlling the flow of data and instructions between memory and I/O devices, facilitating the execution of programs and operations on the computer.

    This top-level view helps to understand how the different parts of a computer system are interrelated and how they cooperate to run applications and handle data.

    ← Previous topic 17
    CPU Organization
    Next topic 19 →
    Assembler Instruction 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%
    7mremaining
    1.2kwords
    Intermediatelevel
    On This Page

    No headings found

    Study Toolkit

    Subject Portal

    Computer Organization and Assembly Language