Docsity

Computer Architecture & Organization, Lecture notes of Computer Architecture and Organization

Partial preview of the text

Download Computer Architecture & Organization and more Lecture notes Computer Architecture and Organization in PDF only on Docsity!

Computer Architecture &

Organization

Architecture & Organization

  • Architecture is those attributes visible to the programmer
    • Instruction set, number of bits used for data representation, I/O mechanisms, addressing techniques.
    • e.g. Is there a multiply instruction?
  • Organization is how features are implemented
    • Control signals, interfaces, memory technology.
    • e.g. Is there a hardware multiply unit or is it done by repeated addition?

Functional View of Computer

  • All computer functions are:
    • Data processing
    • Data storage
    • Data movement
    • Control

Functions - Data Movement

  • The computer can function as a data movement device (Fig. a), simply transferring data from one peripheral or communications line to another

Functions - Data Processing

  • It can also function as doing data processing, on data in storage (Fig. c)

Functions - Data Processing

  • It can also function as doing data processing on the fly (i.e., data come in and get processed, and the results go out immediately), the computer must temporarily store at least those pieces of data that are being worked on at any given moment (Fig. d)

Structural View

Computer Main Memory Input Output Systems Interconnection Peripherals Communication lines Central Processing Unit Computer

CPU Components

  • Structural components of CPU are as follows:
    • Control unit: Controls the operation of the CPU and hence the computer.
    • Arithmetic and logic unit (ALU): Performs the computer’s data processing functions.
    • Registers: Provides storage internal to the CPU.
    • CPU interconnection: Some mechanism that provides for communication among the control unit, ALU, and registers

Arithmetic Logic Unit (ALU)

  • The ALU is responsible for doing the basic arithmetic and logical operations.

Memory

  • All instructions and data are stored in memory.
  • Memory is random access - RAM - in that any location (or cell ) can be accessed in the same amount of time.
  • Each memory location has an address and contents (typically one byte , where a byte is 8 bits)

Memory Read and Write Operations

  • In order to be able to move a word in and out of the memory, a distinct address has to be assigned to each word.
  • This address will be used to determine the location in the memory in which a given word is to be stored.
  • This is called a memory write operation.
  • Similarly, the address will be used to determine the memory location from which a word is to be retrieved from the memory.
  • This is called a memory read operation.
  • Typically, memory read and memory write operations are performed by the central processing unit (CPU)

Write Process

  • Three basic steps are needed in order for the CPU to perform a write operation into a specified memory location:
    1. The word to be stored into the memory location is first loaded by the CPU into a specified register, called the memory buffer register (MBR).
    2. The address of the location into which the word is to be stored is loaded by the CPU into a specified register, called the memory address register (MAR).
    3. A signal, called write, is issued by the CPU indicating that the word stored in the MBR is to be stored in the memory location whose address in loaded in the MAR.

Logical Organization of RAM

  • We can imagine Main Memory to be organized as a matrix of bits.
  • Each row represents a memory location.
  • Typically each row is equal to the word size of the architecture
  • However, a row can be multiple of a word (e.g. 2x wordsize) or a partial word (e.g. half the wordsize).
  • For a 96-bits memory we could organize the memory as
    • 12 rows × 8 bits
    • 8 rows × 12 bits
    • 6 rows × 16 bits
    • 96 rows × 1 bit
    • 1 row × 96 bits.
  • Each row also has a natural number Address which is used for selecting the row

Logical Organization of RAM

  • 96 Bits Memory (12 x 8)