







































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Computer organization and architecture register transfer language chapter 1 notes
Typology: Lecture notes
1 / 47
This page cannot be seen from the preview
Don't miss anything!








































1
2
What is a computer?
3
Traditional Block Diagram of a computer:
Arithmetic & Logic Unit
Central Processing Unit ogic Unit CPU (ALU)
Control Unit (CU)
Input Device
Output Device
Memory
4
Functional units of a computer:
Input unit accepts information: •Human operators, •Electromechanical devices •Other computers
Arithmetic and logic unit(ALU): •Performs the desired operations on the input information as determined by instructions in the memory
Output unit sends Stores Control unit coordinates
Output
Input
Control
Arithmetic & Logic
I/O (^) Processor
Memory Instr Instr Instr Data Data
Output unit sends results of processing: •To a monitor display, •To a printer
various actions •Input, •Output •Processing
Stores information: •Instructions, •Data
7
Input unit Binary information must be presented to a computer in a specific format. This task is performed by the input unit:
Input Unit
Memory
Real world Computer
Keyboard Audio input ……
Processor
8
Output unit
•Computers represent information in a specific binary form. Output units:
Output Unit
Memory
Computer (^) Real world
Printer Graphics display Speakers ……
Processor
9
Arithmetic and logic unit (ALU)
Arithmetic operations such as addition, subtraction.
Operands are stored in general purpose registers available in the ALU. Access times of general purpose registers are faster than the cache.
10
Control unit
Accepts information from the input units (Input unit). Stores the information (Memory). PProcesses the information (ALU). th i f ti (ALU) Provides processed results through the output units (Output unit).
13
Memory Classification:
Memory
Primary Main
Secondary Storage Auxiliary
Random Access
Sequential Access
Read/Write Read Only (RAM) (ROM)
14
Memory unit
Recall, data is represented as a series of bits. To store data, memory unit thus stores bits.
In theory, instructions and data could be fetched one bit at a time. In practice, a group of bits is fetched at a time. Group of bits stored or retrieved at a time is termed as “word” Number of bits in a word is termed as the “word length” of a computer.
“Address” is associated with each word locationAddress is associated with each word location.
15
Memory unit (contd.. 1)
Access any word location in a short and fixed amount of time based on the address. Random Access Memory (RAM) provides fixed access time i dindependent of the location of the word. d t f th l ti f th d Access time is known as “Memory Access Time”.
In order to reduce “communication time”, a small amount of RAM (known as Cache) is tightly coupled with the processor. Modern computers have three to four levels of RAM units with different speeds and sizes:different speeds and sizes: Fastest, smallest known as Cache Slowest, largest known as Main memory.
16
Characteristics of Computer Memory System (Contd..)
19
Characteristics of Computer Memory System (Contd..)
20
Characteristics of Computer Memory System (Contd..)
21
Characteristics of Computer Memory System (Contd..)
Harvard Architecture:
¾ Uses physically separate storage and signal pathways for instructions and data.
¾ Microcontroller (single-chip microcomputer) and DSP (Digital Signal Processor)
25
Computer – Hardware & Software
Hardware, equipment involved in the function of a computer. Computer hardware consists of the components that can be physically handled.
IInput t hhardware d consistssists off externalt l ddevices—that i s th t isis, componentsts outside of the computer's CPU—that provide information and instructions to the computer.
Output hardware consists of external devices that transfer information from the computer's CPU to the computer user.
Storageg hardware providesp permanentp storageg of information and programs for retrieval by the computer. The two main types of storage devices are disk drives and memory.
26
Computer – Hardware & Software (Contd..)
Software, computer programs; instructions that cause the hardware— the machines—to do work. The two primary software categories are operating systems (system software)software), whichwhich controlcontrol thethe workingsworkings ofof thethe computercomputer, andand application software, which addresses the multitude of tasks for which people use computers. System software handles such essential, as maintaining disk files and managing the screen, whereas application software performs word processing, database management, and the like. Network software, that is neither system nor application software, enables groups of computers to communicate. LL anguage software, which provides programmers with the tools theyft hi h id ith th t l th need to write programs.
27
Computer – Firmware
Firmware, software routines stored in read-only memory (ROM).
U likUnlike random access memory (RAM), read-only memory stays d ss (RAM) d l st s intact even in the absence of electrical power.
Startup routines and low-level input/output instructions are stored in firmware. It falls between software and hardware.
28
Execution of an Instruction:
Fetch an instruction from the memory. Fetch the operands. Execute the instructionExecute the instruction. Store the results.
Where is the address of the memory location from which the present instruction is to be fetched? Where is the present instruction stored while it is executed? Where and what is the address of the memory location from which the data is fetched?the data is fetched?
31
Instruction Cycle:
Instruction fetch (FC). Instruction execute (EC). IC = FC + EC
Fetch the instruction from the memory location whose address is in the Program Counter (PC). Place the instruction in the Instruction Register (IR).
Instruction in the IR is examined (decoded) to determine which operation is to be performed. Fetch the operands from the memory or registers. EE xecute the operation.h i Store the results in the destination location.
32
Instruction Cycle:
Instruction Cycle with Interrupts:
Fetch Cycle Execute Cycle Interrupt Cycle
Interrupts
Start
Fetch next Instruction
Execute Instruction
Check for Interrupt; Process Interrupt
Stop
Interrupts enabled
p disabled
33
Transfer of control via Interrupts:
User program
Interrupt handler
Interrupt P ------------------- Occurs here
M ---------------------- 34
Microcomputer:
ALU
Register Array
Input Output
Control Unit
Memory
Microcomputer System or system. ¾ Subsystem System Bus: Data Bus Address Bus Control bus
37
Functions of Microprocessor: Microprocessor initiated operations. Internal Data Operations. External or peripheral initiated operations.
Microprocessor Initiated Operations:
MemoryMemory Read Read – Read data from memoryRead data from memory. Memory Write – Write data into memory I/O – Read – Accept Data from I/P Device. I/O Write – Send Data to O/P Device.. Step 1: Identify the location. Step 2: Transfer Data. Step 3: Provide necessary timing and Synchronization signals.. TT ypes of Transfers:f T f Memory to CPU CPU to Memory I/O to CPU CPU to I/O I/O to or from Memory (DMA) 38
Bus Interconnection Structure:
39
Bus Interconnection Structure:
Provide a path for moving data between system modules. These lines, collectively, are called the data bus ThThe d tdata bbus ttypically i ll consistsi t off 8 168,16 or 3232 separatet lilines, ththe numbers of lines being transferred to as the width of the data bus. Each line carry only 1 bit at a time, the number of lines determines how many bits can transferred at a time - overall system performance.
Used to designate the source or destination of the data on the data bus The width of the address bus determines the maximum possible memory capacity of the system.
40