0% found this document useful (0 votes)
161 views135 pages

Unit1 COA

This document provides an introduction to a course on Computer Organization and Architecture taught by Swarnima at Noida Institute of Engineering and Technology. It includes Swarnima's qualifications and experience, the course evaluation scheme, syllabus overview divided into 5 units, applications of the course material, course objectives and outcomes, mapping of course outcomes to program outcomes, and program educational objectives. The goal of the course is for students to understand basic computer structure and operation, arithmetic and logic units, control units, memory systems, and input/output interfaces.

Uploaded by

lost
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
Download as pptx, pdf, or txt
0% found this document useful (0 votes)
161 views135 pages

Unit1 COA

This document provides an introduction to a course on Computer Organization and Architecture taught by Swarnima at Noida Institute of Engineering and Technology. It includes Swarnima's qualifications and experience, the course evaluation scheme, syllabus overview divided into 5 units, applications of the course material, course objectives and outcomes, mapping of course outcomes to program outcomes, and program educational objectives. The goal of the course is for students to understand basic computer structure and operation, arithmetic and logic units, control units, memory systems, and input/output interfaces.

Uploaded by

lost
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1/ 135

Noida Institute of Engineering and Technology, GR.

Noida
(An Autonomous Institute)
School of Computer Science & Engineering in Emerging
Technologies

Introduction

Unit: 1

Computer Organization &


Swarnima
Architecture (ACSE 0305)
Assistant Professor
B Tech (AIML)- 3rd Sem NIET, Greater Noida

Swarnima Computer Organisation & Architecture Unit 1


1
11/19/2022
Introduction of Faculty member

Name : Ms. Swarnima


Qualification:
• B.Tech(ECE)
• M.Tech(ECE), Specialization: VLSI Design
• Research Area: VLSI Design

Professional details:
• Name of Institute with Code: NIET(133)
• Designation: Assistant Professor
• Department: ECE

Experience (Year): 3.7 years

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 2
Evaluation scheme

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 3
Subject Syllabus
Course Contents / Syllabus
UNIT-I Introduction 8 Hours
Computer Organization and Architecture, Functional units of digital system and their
interconnections, buses, bus architecture, types of buses and bus arbitration and it’s types.
Register, bus and memory transfer. Process or organization, general registers organization,
stack organization and addressing modes.

UNIT-II ALU Unit 8 Hours


Arithmetic and logic unit: Lookahead carries adders. Multiplication: Signed operand
multiplication, Booth’s algorithm and array multiplier. Division and logic operations.
Floating point arithmetic operation, Arithmetic & logic unit design. IEEE Standard for
Floating Point Numbers.

UNIT-III Control Unit 8 hours


Control Unit: Instruction types, formats, instruction cycles and sub cycles (fetch and
execute etc.), microoperations,
execution of a complete instruction. Program Control, Reduced Instruction Set Computer,
Complex Instruction Set Computer, Pipelining. Hardwire and microprogrammed control,
Concept of horizontal and vertical microprogramming, Flynn's classification.

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 4
Subject Syllabus
Course Contents / Syllabus

UNIT-IV Memory Unit 8 hours


Memory: Basic concept and hierarchy, semiconductor RAM memories, 2D & 2 1/2D
memory organization. ROM memories. Cache memories: concept and design issues &
performance, address mapping and replacement Auxiliary memories: magnetic disk,
magnetic tape and optical disks Virtual memory: concept implementation, Memory
Latency, Memory Bandwidth, Memory Seek Time.

UNIT-V Input/Output 8 hours


Peripheral devices, I/O interface, I/O ports, Interrupts: interrupt hardware, types of
interrupts and exceptions. Modes of Data Transfer: Programmed I/O, interrupt initiated
I/O and Direct Memory Access. ,I/O channels and processors. Serial Communication:
Synchronous & asynchronous communication.

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 5
Branch wise Applications
Computer Science:

Understanding of Computer Organization and Architecture is required


for:
• Performance analysis of practical software
• Parallel Software and its execution
• High performance databases
• Modern Compilers and Code optimization
• High performance game programming

Other applications

• Bio-informatics, Data science using python, Web programming

For high performance computing, we require COA background.


Swarnima Computer Organisation & Architecture Unit 1
11/19/2022 6
Course Objective

• Discuss the basic concepts and structure of computers.


• Understand concepts of register transfer logic and arithmetic
operations.
• Explain different types of addressing modes and memory
organization.
• Understand the concepts of memory system and Learn the different
types of memories to store data.
• Explain the various types of interrupts and modes of data transfer.

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 7
Course Outcomes

Course outcomes : After completion of this course students will be able to

CO 1 Understand the basic structure and operation of a digital K1, K2


computer system
CO 2 Analyze the design of arithmetic & logic unit and understand the K1, K4
fixed point and floating-point arithmetic operations.
CO 3 Implement control unit techniques and the concept of Pipelining K3

CO 4 Understand the hierarchical memory system, cache memories K2


and virtual memory.
CO 5 Understand different ways of communicating with I/O devices K2
and standard I/O interfaces.

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 8
Program Outcomes
• Program Outcomes are narrow statements that describe what the students
are expected to know and would be able to do upon the graduation.

• These relate to the skills, knowledge, and behavior that students acquire
through the programmed.

1. Engineering knowledge
2. Problem analysis 9. Individual and team work
3. Design/development of solutions 10. Communication
4. Conduct investigations of complex 11. Project management and
problems finance
5. Modern tool usage 12. Life-long learning
6. The engineer and society
7. Environment and sustainability
8. Ethics

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 9
CO-PO Mapping

 
COMPUTER ORGANIZATION AND ARCHITECTURE
(ACSE 0305)
           
PO PO PO
CO PO1 PO2 PO3 PO4 PO5 PO6 PO7 PO8 PO9 10 11 12
CO1 3 2 1 1 1 1 1 - 1 1 1 2
CO2 2 2 2 2 1 1 - 1 1 1 1 2
CO3 3 2 2 1 2 2 1 1 2 2 1 2
CO4 3 2 2 2 2 1 1 - 1 1 1 2
CO5 2 2 2 1 2 - 1 - 1 2 2 2

Average 2.6 2 1.8 1.4 1.6 1 0.8 0.4 1.2 1.4 1.2 2

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 10
Program Educational Objectives

PEO1: Solve real-time complex problems and adapt to technological


changes with the ability of lifelong learning.
PEO2: Work as data scientists, entrepreneurs, and bureaucrats for
the goodwill of the society and pursue higher education.
PEO3: Exhibit professional ethics and moral values with good
leadership qualities and effective interpersonal skills.

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 11
Result Analysis

Department Result Individual Result

Computer 100%
Organization
and Architecture

Renewable 98.57%
Energy
Resources

Universal 90.74%
Human Values

Introduction to 95.61%
Microprocessor

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 12
End Semester Question Paper Template

Question Paper
Template -100 Marks

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 13
Prerequisite and Recap

• Basic knowledge of Digital Logic Design


• ALU Unit
• Control Unit
• Memory unit

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 14
Brief Introduction about Subject

The Computer Organization and architecture is one of the most


important and comprehensive subject that includes many foundational
concepts and knowledge used in design of a computer system. This
subject provides in-depth knowledge of internal working, structuring,
and implementation of a computer system.

The COA important topics include all the fundamental concepts such
as computer system functional units , processor micro architecture ,
program instructions, instruction formats , addressing modes ,
instruction pipelining, memory organization , instruction cycle,
interrupts and other important related topics.

Video link: https://www.youtube.com/watch?v=q6oiRtKTpX4

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 15
Unit Content

• Introduction
• Functional units of digital system and their interconnections
• Buses, bus architecture, Types of buses
• Bus arbitration
• Register, bus and memory transfer.
• Processor organization
• General registers organization
• Stack organization
• Addressing modes

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 16
Unit Objective

• To understand the basic concepts and structure of computers.

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 17
Introduction to Topic 1

Name of Topic Objective of Topic Mapping with CO


Students will be able
Functional units of to understand about CO 1
digital system and different units of
their interconnections computer and how
they are connected

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 18
Introduction

• Computer Organization and Architecture provides in-depth knowledge


of internal working, structuring, and implementation of a computer
system
• Computer Architecture is concerned with the way hardware
components are connected together to form a computer system.
• Computer Organization is concerned with the structure and behaviour
of a computer system as seen by the user.

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 19
Functional Units of Computer System

Block Diagram

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 20
Functional Units of Computer System
1. Input Unit :
• The input unit consists of input devices that are attached to the
computer.
• These devices take input and convert it into binary language that the
computer understands.
• Common input devices are keyboard, mouse, joystick, scanner etc.

2. Central Processing Unit (CPU) : 


• The CPU is called the brain of the computer because it is the control
centre of the computer.
• It first fetches instructions from memory and then interprets them so
as to know what is to be done.
• CPU executes or performs the required computation and then either
stores the output or displays on the output device
Swarnima Computer Organisation & Architecture Unit 1
11/19/2022 21
Functional Units of Computer System
3. Arithmetic and Logic Unit (ALU) : 
• It performs mathematical calculations and takes logical decisions.
• Arithmetic calculations include addition, subtraction, multiplication
and division.
• Logical decisions involve comparison of two data items to see which
one is larger or smaller or equal.

4. Control Unit : 
• It coordinates and controls the data flow in and out of CPU and also
controls all the operations of ALU, memory registers and
input/output units.
• It decodes the fetched instruction, interprets it and sends control
signals to input/output devices until the required operation is done
properly by ALU and memory.
Swarnima Computer Organisation & Architecture Unit 1
11/19/2022 22
Functional Units of Computer System

5. Memory :
• Memory attached to the CPU is used for storage of data and
instructions and is called internal memory.
• The internal memory is divided into many storage locations, each of
which can store data or instructions

6. Output Unit : 
• The output unit consists of output devices that are attached with
the computer.
• It converts the binary data coming from CPU to human
understandable form.
• The common output devices are monitor, printer, plotter etc.

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 23
Interconnection of Functional unit

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 24
Memory
1. Primary / Main memory:
• The memory unit that establishes direct communication with the CPU
is called Main Memory. The main memory is often referred to as RAM
(Random Access Memory).
• It holds the data and instructions that the processor is currently
working on.
2. Secondary Memory / Mass Storage:
• The contents of the secondary memory first get transferred to the
primary memory and then are accessed by the processor, this is
because the processor does not directly interact with the secondary
memory.
• The memory units that provide backup storage are called Auxiliary
Memory. For instance, magnetic disks and magnetic tapes are the most
commonly used auxiliary memories.

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 25
Daily Quiz
1. ______ is considered as the brain of the computer.
2. ________ is smallest unit of the information.
3. _________ is the decimal equivalent of the binary number 10111.
4. _______ section is used to perform logic operations such as comparing,
selecting, matching of data.
5. ________ unit is used to store data and instructions.
6. The functions of sequencing and execution are performed by using
a) Input Signals
b) Output Signals
c) Control Signals
d) CPU
7. ________ is a way in which the components of a computer are
connected to each other.
Swarnima Computer Organisation & Architecture Unit 1
11/19/2022 26
Daily Quiz with Answers
1. ______ is considered as the brain of the computer. ( CPU )
2. ________ is smallest unit of the information? (Bit)
3. _________ is the decimal equivalent of the binary number 10111? (23)
4. _______ section is to perform logic operations such as comparing,
selecting, matching, and merging of data? (ALU/Logic section )
5. _________ is used to store data and instructions. (Memory)
6. The functions of sequencing and execution are performed by using
a) Input Signals
b) Output Signals
c) Control Signals
d) CPU
7. ________ is a way in which the components of a computer are connected
to each other. (Computer
Swarnima
Architecture)
Computer Organisation & Architecture Unit 1
11/19/2022 27
Recap
• Computer Organization and Architecture provides in-depth knowledge
of internal working, structuring, and implementation of a computer
system.
• Computer Architecture is concerned with the way hardware components
are connected together to form a computer system.
• Computer Organization is concerned with the structure and behaviour of
a computer system as seen by the user.
• Computer consists of different blocks such as Input, output, Control unit,
memory unit and ALU.

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 28
Introduction to Topic 2

Name of Topic Objective of Topic Mapping with CO


Students will be able
Buses, bus to know the CO 1
architecture, Types of architecture and
buses types of buses.

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 29
BUS

BUS
• A bus is a common pathway through which information flows from
one computer component to another. 
• It is a subsystem that is used to transfer data and other information
between devices.
• Means various devices in computer like(Memory, CPU, I/O and
Other) are communicate with each other through buses.

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 30
Bus Architecture

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 31
System Bus

• A system bus is a single computer bus that connects the major


components of a computer system, combining the functions of
a data bus to carry information, an address bus to determine where
it should be sent or read from, and a control bus to determine its
operation

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 32
System Bus

• Types of Computer BUS:


1. Data Bus
2. Address Bus
3. Control Bus

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 33
System Bus
1. Data bus 
• It is a bidirectional pathway that carries the actual data (information)
to and from the main memory.
• Data Lines provide a path for moving data between system modules.
• It is bidirectional which means data lines are used to transfer data in
both directions.
• CPU can read data on these lines from memory as well as send data
out of these lines to a memory location or to a port.
• The no. of lines in data lines are either 8,16,32 or more depending on
architecture.

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 34
System Bus

2. Address bus
• Address Lines are collectively called as address bus.
• It is a unidirectional pathway that allows information to travel in
only one direction.
• No. of lines in address are usually 16,20,24, or more depending on
type and architecture of bus
• It is an internal channel from CPU to Memory across which the
address of data(not data) are transmitted.
• It is used to identify the source or destination of data.
• Here the communication is one way that is, the address is send
from CPU to Memory and I/O Port but not Memory and I/O port
send address to CPU on that line and hence these lines are
unidirectional.

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 35
System Bus

3. Control bus 
• It carries the control and timing signals needed to coordinate the
activities of the entire computer.
• They are used by CPUs for Communicating with other devices
within the computer.
• They are bidirectional.
• Typical Control Lines signals are
Memory Read  
Memory Write                      
I/O Read
I/O Write ,etc

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 36
Bus Structure

1. Single Bus Structure –


All units are connected to the same bus.

2. Multiple Bus Structure


a) Traditional Configuration
Uses three buses – local bus, system bus and expanded bus.

b) High Speed BUS Configuration


Uses high speed bus along with three buses – local bus, system bus and
expanded bus used in traditional configuration.

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 37
Single Bus Structure

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 38
Traditional Bus Configuration

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 39
High Speed Bus Configuration

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 40
Daily Quiz

1. ________ bus carries information between processors and


peripherals.
2. _______ are unidirectional bus.
3. _________ bus controls the sequencing of read/write operations.
4. _____ is a common pathway through which information flows
from one computer component to another. 
5. Control bus is Unidirectional. T/F

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 41
Daily Quiz

1. ________ bus carries information between processors and peripherals.


(Data Bus)
2. _______ are unidirectional bus. (Address Bus)
3. _________ bus controls the sequencing of read/write operations.
(Control Bus)
4. _____ is a common pathway through which information flows from one
computer component to another. (Bus)
5. Control bus is Unidirectional. False

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 42
Recap

Bus Type Description


A unidirectional pathway – information can only flow
Address bus
one way
A bi-directional pathway – information can flow in two
Data bus
directions
Carries the control and timing signals needed to
Control bus
coordinate the activities of the entire computer

11/19/2022 Swarnima Computer Organisation & Architecture Unit 1 43


Introduction to Topic 3

Name of Topic Objective of Topic Mapping with CO


Students will be able
• Bus arbitration to know the different CO 1
schemes of bus
arbitration

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 44
Bus Arbitration
Bus Arbitration
It refers to the process by which the current bus master accesses and
then leaves the control of the bus and passes it to the another bus
requesting processor unit.

• Bus master :The controller that has access to a bus at an instance.

• Bus Arbiter: It decides who would become current bus master.

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 45
Bus Arbitration
There are two approaches to bus arbitration:
1. Centralized bus arbitration
A single bus arbiter performs the required arbitration and it can be
either a processor or a separate DMA controller.

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 46
Bus Arbitration

2. Distributed bus arbitration


All devices participate in the selection of the next bus master.

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 47
Bus Arbitration

Methods of BUS Arbitration


There are three arbitration schemes which run on centralized arbitration.

1. Daisy Chaining method

2. Polling method

3. Independent Request method

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 48
Daisy Chaining method

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 49
Daisy Chaining method

Advantages –
1. Simplicity and Scalability.
2. The user can add more devices anywhere along the chain

Disadvantages –
3. The value of priority assigned to a device is depends on the
position of master bus.
4. Propagation delay is arises in this method.
5. If one device fails then entire system will stop working.

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 50
Polling or Rotating Priority Method

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 51
Polling or Rotating Priority Method

Advantages –
1. This method does not favor any particular device and
processor.
2. The method is also quite simple.
3. If one device fails then entire system will not stop working.

Disadvantages –
4. Adding bus masters is difficult as increases the number of
address lines of the circuit.

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 52
Fixed priority or Independent Request
method

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 53
Fixed priority or Independent Request
method
Advantages –
•This method generates fast response.

Disadvantages –
•Hardware cost is high as large no. of control lines are required.

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 54
Daily Quiz
1. To resolve the clash over the access of the system BUS we use ______
a) Multiple BUS
b) BUS arbitrator
c) Priority access
d) None of the mentioned
2.  The device which is allowed to initiate data transfers on the BUS at any time is
called _____
a) BUS master
b) Processor
c) BUS arbitrator
d) Controller
3.  ______ BUS arbitration approach uses the involvement of the processor.
a) Centralised arbitration
b) Distributed arbitration
c) Random arbitration
d) All of the mentioned

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 55
Daily Quiz with Answers
1. To resolve the clash over the access of the system BUS we use ______
a) Multiple BUS
b) BUS arbitrator
c) Priority access
d) None of the mentioned
2.  The device which is allowed to initiate data transfers on the BUS at any time is
called _____
a) BUS master
b) Processor
c) BUS arbitrator
d) Controller
3.  ______ BUS arbitration approach uses the involvement of the processor.
a) Centralised arbitration
b) Distributed arbitration
c) Random arbitration
d) All of the mentioned

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 56
Daily Quiz
4. When the processor receives the request from a device, it responds by sending
_____
a) Request signal
b) BUS grant signal
c) Response signal
d) None of the mentioned
5. Once the BUS is granted to a device ___________
a) It activates the BUS busy line
b) Performs the required operation
c) Raises an interrupt
d) All of the mentioned
6.  After the device completes its operation _____ assumes the control of the BUS.
a) Another device
b) Processor
c) Controller
d) None of the mentioned

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 57
Daily Quiz with Answers
4. When the processor receives the request from a device, it responds by sending
_____
a) Request signal
b) BUS grant signal
c) Response signal
d) None of the mentioned
5. Once the BUS is granted to a device ___________
a) It activates the BUS busy line
b) Performs the required operation
c) Raises an interrupt
d) All of the mentioned
6.  After the device completes its operation _____ assumes the control of the BUS.
a) Another device
b) Processor (After the device completes the operation it releases the BUS and
the processor takes over it.)
c) Controller
d) None of the mentioned
Swarnima Computer Organisation & Architecture Unit 1
11/19/2022 58
Daily Quiz
7. The BUS busy line is used __________
a) To indicate the processor is busy
b) To indicate that the BUS master is busy
c) To indicate the BUS is already allocated
d) None of the mentioned

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 59
Daily Quiz with Answers
7. The BUS busy line is used __________
a) To indicate the processor is busy
b) To indicate that the BUS master is busy
c) To indicate the BUS is already allocated
d) None of the mentioned

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 60
Recap
• Bus arbitration refers to the process by which the current bus master
accesses and then leaves the control of the bus and passes it to the
another bus requesting processor unit.

• There are two approaches to bus arbitration: Centralized and Distributed

• There are three arbitration schemes which run on centralized arbitration


– Daisy chain, Polling and Independent request

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 61
Introduction to Topic 4

Name of Topic Objective of Topic Mapping with CO


Register, bus and Students will be able
memory transfer. to know transfer CO 1
between the
registers, bus and
memory transfer

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 62
Register, bus and memory transfer
Register 
• They are used to quickly accept, store, and transfer data and
instructions that are being used immediately by the CPU.
• They are used to hold the temporary data.
• There are various types of Registers those are used for various purpose.
Register Numbe Register Register Function
Symbol r of bits Name
DR 16 Data register Holds memory operands
AR 12 Address register Holds address for memory
AC 16 Accumulator Processor register
IR 16 Instruction register Holds instruction code
PC 12 Program counter Holds address of instruction
TR 16 Temporary register Holds temporary data
INPR 8 Input register Holds input character
OUTR 8 Output register Holds output character

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 63
Register, bus and memory transfer
Register
• Computer registers are designated by capital letters (sometimes
followed by numerals) to denote the function of the register.
• The register that holds an address for the memory unit is memory
address register and is designated by the name MAR.
• The program counter register is called PC, IR is the instruction
register and R1 is a processor register

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 64
Register, bus and memory transfer

Register Transfer
• Information transfer from one register to another is designated in
symbolic form by means of a replacement operator.
• R2 R1
• It denotes a transfer of the content of register R1 into register R2. It
designates a replacement of the content of R2 by the content of R1
without changing the content of R1 after transfer.
• If the Register transfer is to occur only under a predetermined control
condition, this can be shown by means of an if-then statement.

• If (P = 1) then (R2 R1)


• P: R2 R1,
where P is a control function that can be either 0 or 1
 

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 65
Register, bus and memory transfer

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 66
Register, bus and memory transfer

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 67
Register, bus and memory transfer

Bus transfer
• A bus structure consists of a set of common lines, one for each bit of
a register.
• Control signals determine which register is selected by the bus during
each transfer.
• Multiplexers can be used to construct a common bus.
• Multiplexers select the source register whose binary information is
then placed on the bus.
• The select lines are connected to the selection inputs of the
multiplexers and choose the bits of one register

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 68
Register, bus and memory transfer

Bus system for 4 registers

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 69
Register, bus and memory transfer

Functional table for bus


S1 S0 REGISTER
SELECTED
0 0 A
0 1 B
1 0 C
1 1 D

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 70
Register, bus and memory transfer

• In general, a bus system will multiplex k registers of n bits each to


produce an n- line common bus.
• This requires n multiplexers – one for each bit
• The size of each multiplexer must be k x 1
• Transfer of information from the bus to one of many destination
registers can be accomplished by connecting bus lines to the
inputs of all designation registers and activating the load control
of particular destination register selected.
• Symbolic statement-
• BUS C, R1 BUS,
• If bus is known to exist in the system, R1 C

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 71
Bus Transfer using Three state buffer

• Instead of using multiplexers, three-state gates can be used to


construct the bus system
• A three-state gate is a digital circuit that exhibits three states.
• Two of the states are signals equivalent to logic 1 and 0
• The third state is a high-impedance state – this behaves like an open
circuit, which means the output is disconnected and does not have a
logic significance.

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 72
Bus Transfer using Three state buffer

• The three-state buffer gate has a normal input and a control input
which determines the output state.
• With control 1, the output equals the normal input
• With control 0, the gate goes to a high-impedance state
• This enables a large number of three-state gate outputs to be
connected with wires to form a common bus line without endangering
loading effects

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 73
Bus Transfer using Three state buffer

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 74
Bus Transfer using Three state buffer

• Decoders are used to ensure that no more than one control input is
active at any given time
• This circuit can replace the multiplexer.
• To construct a common bus for four registers of n bits each using
three-state buffers, we need n circuits with four buffers in each
• Only one decoder is necessary to select between the four registers

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 75
Memory Transfer
Most of the standard notations used for specifying operations on
memory transfer are stated below.

• The transfer of information from a memory unit to the user end is


called a Read operation.
• A memory word is designated by the letter M.
• We must specify the address of memory word while writing the
memory transfer operations.
• The address register is designated by AR and the data register by DR.
• Thus, a read operation can be stated as:
Read:  DR ← M [AR]    
• The Read statement causes a transfer of information into the data
register (DR) from the memory word (M) selected by the address
register (AR).                                                                                 

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 76
Memory Transfer

• The transfer of new information to be stored in the memory is called


a Write operation.
• The Write statement causes a transfer of information from register
R1 into the memory word (M) selected by address register (AR).
• Write: M [AR] ← R1                                                                                         
               

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 77
Memory Transfer

Memory Transfer Block diagram

Above Diagram showing connections to memory unit.


Write: M[AR] ← DR
Read: DR ← M[AR]

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 78
Daily Quiz
1. The transfer of information from a memory unit to the user end is called
a _______operation.
2. _________ are used to quickly accept, store, and transfer data and
instructions that are being used immediately by the CPU.
3. A decoder converts n inputs to __________ outputs. ()
4. Which of the following are building blocks of encoders?
a) NOT gate
b) OR gate
c) AND gate
d) NAND gate
5. The transfer of new information to be stored in the memory is called
a _______ operation.
6. Which of the following can be represented for decoder?
a) Sequential circuit
b) Combinational circuit
c) Logical circuit
d) None of the mentioned
Swarnima Computer Organisation & Architecture Unit 1
11/19/2022 79
Daily Quiz with Answers
•  

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 80
Recap
• Registers are used to quickly accept, store, and transfer data and
instructions that are being used immediately by the CPU.
• Multiplexers can be used to construct a common bus.
• A three-state gate is a digital circuit that exhibits three states – 0,1 and
high impedance state.
• The transfer of information from a memory unit to the user end is called
a Read operation.
• The transfer of new information to be stored in the memory is called
a Write operation.

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 81
Introduction to Topic 5

Name of Topic Objective of Topic Mapping with CO


Processor Students will be able
organization, General to know various CO 1
register organization process organization
and stack and data stored in
organization register and stack

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 82
Registers

• Registers are used to store data temporarily.

Registers

User Visible Register Control & Status Register

1. General Purpose Register


1. Program counter
2. Data Register
2. Instruction register
3. Address Register
3. MAR
4. Condition codes
4. MDR

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 83
Processor organization

• Processor organization means how the components of processor are


connected and accomplish their task.

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 84
Processor organization-General register
organization
Most computers fall into one of three types of CPU organizations:
• Single accumulator organization.
• General register organization.
• Stack organization.

1. Single accumulator organization


• The instruction format in this type of computer uses one address field.
• All operations are performed with an implied accumulator register.
• Example : ADD X

• where X is the address of the operand. The ADD instruction in this case
results in the operation AC <--AC + M[X].
• AC is the accumulator register and M[X] symbolizes the memory word
located at address X.

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 85
Processor organization

2. General register organization

• The instruction format in this type of computer needs three register


address fields.
• ADD R1, R2, R3 to denote the operation R 1 <---R2 + R3 .
• ADD R1, R2, would denote the operation R 1 <---R1 + R2. Only register
addresses for R 1 and R2 need be specified in this instruction.
• General register-type computers employ two or three address fields in
their instruction format.
• Each address field may specify a processor register or a memory word.
• ADD R1, X
R1 ---- R1 + M [X]

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 86
Processor organization
3. Stack organization

• The stack-organized CPU ,Computers with stack organization would


have PUSH and POP instructions which require an address field. Thus
the instruction
• PUSH X
It will push the word at address X to the top of the stack. Stack pointer
is updated automatically.

• ADD
This instruction in stack computer consists of an operation code only
with no address field.

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 87
General register organization

General registers organization


• In this type of organization, computer uses two or three address fields in
their instruction format.

• Each address field may specify a general register or a memory word. If


many CPU registers are available for heavily used variables and
intermediate results

For example:
• MULT R1, R2, R3
• This is an instruction of an arithmetic multiplication written in assembly
language. It uses three address fields R1, R2 and R3.

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 88
General register organization
• The meaning of this instruction is:
R1 <-- R2 * R3

• This instruction also can be written using only two address fields as:
MULT R1, R2

• In this instruction, the destination register is the same as one of the


source registers. This means the operation
R1 <-- R1 * R2
• The use of large number of registers results in short program with
limited instructions.

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 89
General register organization

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 90
General register organization

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 91
Encoding of Register Selection Fields
Binary Code SELA SELB SELD

000 INPUT INPUT NONE

001 R1 R1 R1

010 R2 R2 R2

011 R3 R3 R3

100 R4 R4 R4

101 R5 R5 R5

110 R6 R6 R6

111 R7 R7 R7

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 92
Encoding of ALU Operations
OPR Select Operation Symbol

00000 Transfer A TSFA

00001 Increment A INCA

00010 Add A + B ADD

00101 Subtract A - B SUB

00110 Decrement A DECA

01000 AND A and B AND

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 93
Example of Microoperations

Subtract microoperation:
R1 ----- R2 – R3

Binary control word for subtract microoperation-

Field: SELA SELB SELD OPR


Symbol: R2 R3 R1 SUB

Control word: 010 011 001 00101

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 94
General register organization

• The control unit that operates the CPU bus system directs the
information flow through the registers and ALU by selecting the
various components in the system. For example, to perform the
operation
• R1 <--R2 + R3. The control must provide binary selection variables to
the following selector inputs:
1. MUX A selector (SELA): to place the content of R2 into bus A .
2. MUX B selector (SELB): to place the content o f R 3 into bus B .
3. ALU operation selector (OPR): to provide the arithmetic addition
A+B.
• Decoder destination selector (SELD): to transfer the content of the
output bus into R 1 .

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 95
General register organization

The advantages of General register based CPU organization

• Efficiency of CPU increases as there are large number of registers are


used in this organization.

• Less memory space is used to store the program since the instructions
are written in compact way.

The disadvantages of General register based CPU organization


• Care should be taken to avoid unnecessary usage of registers. Thus,
compilers need to be more intelligent in this aspect.

• Since large number of registers are used, thus extra cost is required in
this organization.
Swarnima Computer Organisation & Architecture Unit 1
11/19/2022 96
Stack Organization
• A stack is a storage device that stores information in such a manner
that the item stored last is the first item retrieved.
• The stack in digital computers is essentially a memory unit with an
address register that can count only. The register that holds the
address for the stack is called a stack pointer (SP) because its value
always points at the top item in the stack.
• The physical registers of a stack are always available for reading or
writing. It is the content of the word that is inserted or deleted.

Register stack:

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 97
Stack Organization

PUSH:

• If the stack is not full (FULL =0), a new item is inserted with a push
operation. The push operation consists of the following sequences of
micro operations:

SP ← SP + 1 Increment stack pointer

M [SP] ← DR WRITE ITEM ON TOP OF THE STACK

IF (SP = 0) then (FULL ← 1) Check is stack is full

EMTY ← 0 Mark the stack not empty

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 98
Stack Organization

POP:
• A new item is deleted from the stack if the stack is not empty (if
EMTY = 0). The pop operation consists of the following sequences of
micro operations:

DR ← M [SP] Read item on top of the stack


SP ← SP - 1 Decrement stack pointer
IF (SP = 0) then (EMTY ← 1) Check if stack is empty
FULL ← 0 Mark the stack not full
 
• The top item is read from the stack into DR. The stack pointer is
then decremented. If its value reaches zero, the stack is empty, so
EMTY is set to 1.

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 99
Stack Organization
Memory Stack

• The implementation of a stack


in the CPU is done by
assigning a portion of
memory to a stack operation
and using a processor register
as a stack pointer.

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 100
Stack Organization

Memory Stack

• The program counter PC points at the address of the next instruction in


the program which is used during the fetch phase to read an instruction.

• The address registers AR points at an array of data which is used during


the execute phase to read an operand.

• The stack pointer SP points at the top of the stack which is used to push
or pop items into or from the stack.

• The three registers are connected to a common address bus, and either
one can provide an address for memory.

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 101
Stack Organization

PUSH
• A new item is inserted with the push operation as follows:
SP ← SP - 1
M[SP] ← DR
• The stack pointer is decremented so that it points at the address
of the next word.
• A memory write operation inserts the word from DR into the top
of the stack.
POP
• A new item is deleted with a pop operation as follows:
DR ← M[SP]
SP ← SP + 1

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 102
Stack Organization
Polish Notation
• A stack organization is very effective for evaluating arithmetic
expressions. The common arithmetic expressions are written in infix
notation, with each operator written between the operands.

• Consider the simple arithmetic expression


 A•B + C•D

A + B Infix notation 
+AB Prefix or Polish notation
AB+ Postfix or reverse Polish notation (RPN)

• The reverse Polish notation is in a form suitable for stack


manipulation.
• The expression A•B + C•D is written in reverse Polish notation as
AB•CD•+ Swarnima Computer Organisation & Architecture Unit 1
11/19/2022 103
Daily Quiz
1. The Stack follows the sequence
a) first-in-first-out
b) first-in-last-out
c) last-in-first-out
d) last-in-last-out
2. The process of storing the data in the stack is called ……… the stack.
a) pulling into
b) pulling out
c) pushing into
d) popping into
3. The stack is useful for
a) storing the register status of the processor
b) temporary storage of data
c) storing contents of registers temporarily inside the CPU
d) all of the mentioned

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 104
Daily Quiz
4. The reverse process of transferring the data back from the stack to the
CPU register is known as
a) pulling out the stack
b) pushing out the stack
c) popping out the stack
d) popping off the stack
5. Which of the following is not a visible register?
a) General Purpose Registers
b) Address Register
c) Status Register
d) MAR
6. Opcode indicates the operations to be performed.
a) True
b) False

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 105
Introduction to Topic 7

Name of Topic Objective of Topic Mapping with CO


Addressing Modes Students will be able
to know the different CO 1
addressing modes.

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 106
Addressing Modes

• The addressing mode specifies a rule for interpreting or modifying the


address field of the instruction before the operand is actually
referenced.
• The decoding step in the instruction cycle determines the operation to
be performed, the addressing mode of the instruction, and the location
of the operands

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 107
Addressing Modes
1. Implied mode:
• The operands are specified implicitly in the definition of the instruction –
complement accumulator or zero-address instructions.
• CMA , CLC

2. Immediate mode:
• The operands value are specified in the instruction.
• Immediate mode instructions is said to be useful for initializing registers
to a constant value.
• MOV AL, 35 H

3. Register mode:
• The operands are in registers and the register is present in CPU.
• The data is in the register that is specified by the instruction.
• MOV A,C (move the content of C register to A register)

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 108
Addressing Modes
Register Register Indirect
Addressing Addressing

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 109
Addressing Modes
4. Register Indirect mode:
• In this mode the instruction specifies a register in the CPU whose contents
give the address of the operand in memory.
• The selected register contains the address of the operand rather than the
operand itself.
• MOV AX,[CX] (move the content of memory location addressed by the
register CX to the register AX)

5. Autoincrement/Autodecrement mode:
• This is similar to register indirect mode except that the register is
incremented or decremented after or before its value is used to access
memory.
a) Increment mode- After accessing the operand the contents of this
register are automatically incremented to point to next consecutive
memory location.

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 110
Addressing Modes
Example: Add R1, (R2+)
OR
R1 = R1 + M[R2]
R2 = R2 + d

Useful for stepping through arrays in a loop.


R2 – start of the array, d- size of an element.

b) Decrement Mode:
• Before accessing the operand , the contents of this register are
automatically decremented to point to the previous consecutive memory
location.
Example- Add R1, (-R2)
OR
R2 = R2 – d
R1 = R1Swarnima
+ M [R2] Computer Organisation & Architecture Unit 1
11/19/2022 111
Addressing Modes
6. Direct Address mode:
• In this mode the effective address is equal to the address part of the
instruction.
• The operand resides in memory and its address is given directly by the
address field of the instruction.
• Example – ADD AL, [0301] (add the content of address 0301 to A)

7. Indirect Address mode :


• In this mode the address field of the instruction gives the address where
the effective address is stored in memory.
• In this address field of instruction gives the address where the effective
address is stored in memory.

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 112
Addressing Modes

Direct Addressing Indirect


Addressing

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 113
Addressing Modes

• Relative address mode: the effective address is the summation of the


address field and the content of the PC
• Indexed addressing mode: the effective address is the summation of an
index register and the address field
• Base register address mode: the effective address is the summation of
a base register and the address field

• effective address = address part of instruction + content of CPU


register

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 114
Daily Quiz
1. RTL stands for:
a. Random transfer language
b. Register transfer language
c. Arithmetic transfer language
d. All of these
2. The register that includes the address of the memory unit is termed as
the :
a. MAR
b. PC
c. IR
d. None of these
3. Which are the operation that a computer performs on data that put in
register:
a. Register transfer
b. Arithmetic
c. Logical
d. All of these,,,, Swarnima Computer Organisation & Architecture Unit 1 115
11/19/2022
Daily Quiz
4. Which operation puts memory address in memory address register and
data in DR:
a. Memory read
b. Memory write
c. Both
d. None

5. A stack organized computer uses instruction of


a. Indirect addressing
b. Two addressing
c. Zero addressing
d. Index addressing

Swarnima Computer Organisation & Architecture Unit 1 116


11/19/2022
Daily Quiz
6. A flip flop is a binary cell capable of storing information of
a. One bit
b. One byte
c. Zero bit
d. Eight bits

7. To resolve the clash over the access of the system BUS we use ______
a. Multiple BUS
b. BUS arbitrator
c. Priority access
d. None of the mentioned

Swarnima Computer Organisation & Architecture Unit 1 117


11/19/2022
Daily Quiz

8. The device which is allowed to initiate data transfers on the BUS at any
time is called _____
a. BUS master
b. Processor
c. BUS arbitrator
d. Controller

Swarnima Computer Organisation & Architecture Unit 1 118


11/19/2022
Weekly Assignment

1. Convert the following arithmetic expressions from infix to reverse


polish notation

a) A*B+C*D+E*F

b) A* (B+C*CD+E)/F*(G+H)

2. Define System Bus. What are different bus structures?

3. What is general register organization?

4. Explain the various addressing modes with example.


5. What do you mean by processor organization? Explain various types of
processor organization

Swarnima Computer Organisation & Architecture Unit 1 119


11/19/2022
Weekly Assignment
1. A digital computer has a common bus system for 16 registers of 32 bits
each. The bus is constructed with multiplexers.
a) How many multiplexers are there in the bus?
b) What size of multiplexers are needed?
c) How many selection inputs are there in each multiplexer?
2. Draw basic functional units of a computer with interconnection.
3. Draw a block diagram of 64 word Register stack and write sequence of
microoperations for PUSH and POP operation.
4. Discuss the advantages and disadvantages of Daisy Chain and Polling
bus arbitration schemes.
5. What is control word? Specify the control word for subtract
microoperation given in the statement –
R1 ------ R2 – R3

Swarnima Computer Organisation & Architecture Unit 1 120


11/19/2022
Topic Links
1. Types OF Buses-
https://www.youtube.com/watch?v=xBYhHC8_A6o&list=PLxCzCOWd7aiHMonh3
G6QNKq53C6oNXGrX&index=4
2. Common bus system using multiplexer 
https://www.youtube.com/watch?v=nbDd46e_LpE&list=PLxCzCOWd7aiHMonh3
G6QNKq53C6oNXGrX&index=5
3. Single Accumulator CPU Organisation
https://www.youtube.com/watch?v=k5YMLXPy1SE&list=PLxCzCOWd7aiHMonh3
G6QNKq53C6oNXGrX&index=15
4. General Register CPU Organisation
https://www.youtube.com/watch?v=Za7ozdjE8VI&list=PLxCzCOWd7aiHMonh3G
6QNKq53C6oNXGrX&index=16
5. Register Stack Organisation
https://www.youtube.com/watch?v=u-sp4gBAJKI&list=PLxCzCOWd7aiHMonh3G
6QNKq53C6oNXGrX&index=17

Swarnima Computer Organisation & Architecture Unit 1 121


11/19/2022
MCQ
1. To resolve the clash over the access of the system BUS we use______
a) Multiple BUS b) BUS arbitrator
c) Priority access d) None of the mentioned

2. The device which is allowed to initiate data transfers on the BUS at


any time is called _____
a) BUS master b) Processor
c) BUS arbitrator d) Controller

3. ______ BUS arbitration approach uses the involvement of the


processor.
a) Centralized arbitration b) Distributed arbitration
c) Random arbitration d) All of the mentioned

Swarnima Computer Organisation & Architecture Unit 1 122


11/19/2022
MCQ

4. When the processor receives the request from a device, it responds


by sending _____
a) Acknowledge signal b) BUS grant signal
c) Response signal d) None of the mentioned

5. In Centralized Arbitration ______ is/are is the BUS master.


a) Processor b) DMA controller
c) Device d) Both Processor and DMA controller

6. Once the BUS is granted to a device ___________


a) It activates the BUS busy line b) Performs the required operation
c) Raises an interrupt d) All of the mentioned

Swarnima Computer Organisation & Architecture Unit 1 123


11/19/2022
MCQ
7. In Distributed arbitration, the device requesting the BUS ______
a) Asserts the Start arbitration signal b) Sends an interrupt signal
c) Sends an acknowledge signal d) None of the mentioned

8. How is a device selected in Distributed arbitration?


a) By NANDing the signals passed on all the 4 lines
b) By ANDing the signals passed on all the 4 lines
c) By ORing the signals passed on all the 4 lines
d) None of the mentioned

9. If two devices A and B contesting for the BUS have ID’s 5 and 6
respectively, which device gets the BUS based on the Distributed
arbitration.
a) Device A b) Device B
c) Insufficient information d) None of the mentioned

Swarnima Computer Organisation & Architecture Unit 1 124


11/19/2022
MCQ
10. During the execution of a program which gets initialized first?
a) MDR b) IR
c) PC d) MAR

11. Which of the register/s of the processor is/are connected to Memory


Bus?
a) PC b) MAR
c) IR d) Both PC and MAR

12. ISP stands for _________


a) Instruction Set Processor
b) Information Standard Processing
c) Interchange Standard Protocol
d) Interrupt Service Procedure

Swarnima Computer Organisation & Architecture Unit 1 125


11/19/2022
MCQ
13. The addressing mode, where you directly specify the operand value is
_______
a) Immediate b) Direct
c) Definite d) Relative

14. _____ addressing mode is most suitable to change the normal


sequence of execution of instructions.
a) Relative b) Indirect
c) Index with Offset d) Immediate

15. ______ is generally used to increase the apparent size of physical


memory.
a) Secondary memory b) Virtual memory
c) Hard-disk d) Disks

Swarnima Computer Organisation & Architecture Unit 1 126


11/19/2022
Glossary Questions
A typical digital computer has many registers, and paths must be
provided to transfer information from one register to another. The
number of wires will be excessive if separate lines are used between
each register and all other registers in the system. A more efficient
scheme for transferring information between registers in a multiple-
register configuration is a common bus system. A bus structure consists
of a set of common lines, one for each bit of a register, through which
binary information is transferred one at a time. Control signals determine
which register is selected by the bus during each particular register
transfer. One way of constructing a common bus system is with
multiplexers. The multiplexers select the source register whose binary
information is then placed on the bus.

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 127
Glossary Questions
1. Construct a bus system for four registers with help of multiplexers.
2. A digital computer has a common bus system for 16 registers of 32
bits each. The bus is constructed with multiplexers.
a) How many selection inputs are there in each multiplexer?
b) What size of multiplexers are needed?
c) How many multiplexers are there in the bus?
3. What is Multiplexer?

Swarnima Computer Organisation & Architecture Unit 1


11/19/2022 128
Old Question Papers - Sessional

Sessional 1

Sessional 2

Sessional 3

Swarnima Computer Organisation & Architecture Unit 1 129


11/19/2022
Old Question Papers

2018-19

2019-20

Swarnima Computer Organisation & Architecture Unit 1 130


11/19/2022
Expected Questions
1. Explain different addressing modes.
2. Explain the importance of different addressing modes in computer
architecture with suitable example.
3. What is an instruction format? Explain different types of instruction
formats in detail.
4. A digital computer has a common bus system for 16 register of 32 bits
each. The bus is Constructed with multiplexers.
(i) How many selection inputs are there in each multiplexer?
(ii) What sizes of multiplexers are needed?
(iii) How many multiplexers are there in the bus?
5. Show the block diagram of the hardware that implements the following
register transfer statement: P: R2 <--- R1
6. Explain sequence of micro-operations for implementing PUSH and POP
instructions in the register stack.

Swarnima Computer Organisation & Architecture Unit 1 131


11/19/2022
Expected Questions
7. Differentiate between Computer Architecture and Computer
Organization Explain different addressing modes.
8. Draw the Distributed Arbitration interface circuit for two devices A and B
with their 4- bit unique ID 0110 and 0001 respectively.
i. Write down the new ID generated on Arbitration lines.
ii. Which device become Bus Master.
9. Convert the arithmetic expressions from infix to reverse polish notation.
i. A*B+C*D+E*F
ii. A+B/C-D+E
10. Explain bus organization for seven CPU registers with the help of block
diagram and control word.
11. Draw the block diagrams for Daisy chahing and Independent
Centralised Arbitration schemes.
12. Draw the Multiple Bus structures along with its advantage and
disadvantage.
Swarnima Computer Organisation & Architecture Unit 1 132
11/19/2022
Recap of Unit
• Computer Organization and Architecture provides in-depth knowledge
of internal working, structuring, and implementation of a computer
system
• Computer Architecture is concerned with the way hardware
components are connected together to form a computer system.
• Computer Organization is concerned with the structure and behaviour
of a computer system as seen by the user.
• A bus is a common pathway through which information flows from one
computer component to another. 
• Types of Computer BUS: Data Bus ,Address Bus, Control Bus
• Bus Arbitration -It refers to the process by which the current bus master
accesses and then leaves the control of the bus and passes it to the
another bus requesting processor unit.

Swarnima Computer Organisation & Architecture Unit 1 133


11/19/2022
Recap of Unit
• There are two approaches to bus arbitration: Centralized and
Distributed
• There are three arbitration schemes which run on centralized
arbitration – Daisy chain, Polling and Independent request.
• Registers are used to quickly accept, store, and transfer data and
instructions that are being used immediately by the CPU.
• Multiplexers can be used to construct a common bus.
• A three-state gate is a digital circuit that exhibits three states – 0,1 and
high impedance state.
• The transfer of information from a memory unit to the user end is called
a Read operation.
• The transfer of new information to be stored in the memory is called
a Write operation.

Swarnima Computer Organisation & Architecture Unit 1 134


11/19/2022
Recap of Unit
• Most computers fall into one of three types of CPU organizations:
1. Single accumulator organization.
2. General register organization.
3. Stack organization

• Addressing modes- Implied mode, immediate addressing mode,


register addressing mode, register indirect addressing mode, direct
addressing mode, indirect addressing mode,
autoincrement/autodecrement mode, relative addressing mode, base
addressing mode, indexed addressing mode

Swarnima Computer Organisation & Architecture Unit 1 135


11/19/2022

You might also like