Computer Organization & Architecture Course Guide
Computer Organization & Architecture Course Guide
Course File
For
By
[Link] Babu
CONTENTS
VISION
“To be a Centre of Excellence in Technical Education and to become an Epic centre of Research for Creative solutions”
MISSION
“To address the Emerging needs through Quality Technical Education with an Emphasis on Practical Skills and Advanced Research with Social Relevance”
VISION
To become a center of excellence in the field of Computer Science and Engineering, keeping in view of advanced developments that produces innovative, skillful, Socially re-
MISSION
DM1: To provide the skilled manpower with state-of-art knowledge in Computer Science and Engineering
DM2: To provide the Professionals to the nation with innovations and ideas in the area of advanced Computing Technologies through research and graduate studies
DM3: To provide the professionals for aiding in the design and development process of industries and society
PEO 1 : Graduates will be able to comprehend mathematics, science, engineering fundamentals; laboratory and work-based experience to formulate and solve problems in
Computer Science and Engineering and other related domains and will develop proficiency in computer-based engineering and the use of computation tools.
PEO 2: Graduates will be prepared to communicate and work effectively on the multi disciplinary engineering projects practicing the ethics of their profession with a sense of so-
cial responsibility.
PEO 3: Graduates will recognize the importance of lifelong learning to become experts either as entrepreneurs or employees and to widen their knowledge in their domain.
PROGRAMME OUTCOMES :
PO1 : Engineering knowledge – Engineering knowledge: Apply the knowledge of mathematics, science, engineering fundamentals, and an engineering specialization to the
PO2: Problem analysis – Identify, formulate, review research literature, and analyze complex engineering problems reaching substantiated conclusions using first principles
PO 3: Design/ development of solutions – Design solutions for complex engineering problems and design system components or processes that meet the specified needs
with appropriate consideration for the public health and safety, and the cultural, societal, and environmental considerations.
PO 4: Conduct investigations of complex problems – Use research-based knowledge and research methods including design of experiments, analysis and interpretation of
PO 5 : Modern tool usage – Modern tool usage: Create, select, and apply appropriate techniques, resources, and modern engineering and IT tools including prediction and
PO 6 : The engineer and society – Apply reasoning informed by the contextual knowledge to assess societal, health, safety, legal and cultural issues and the consequent
PO 7 : Environment and sustainability – Understand the impact of the professional engineering solutions in societal and environmental contexts, and demonstrate the
PO 8 : Ethics – Apply ethical principles and commit to professional ethics and responsibilities and norms of the engineering practice.
PO 9 : Individual and team work – Individual and team work: Function effectively as an individual, and as a member or leader in diverse teams, and in multidisciplinary
settings.
PO 10 : Communication – Communicate effectively on complex engineering activities with the engineering community and with society at large, such as, being able to
comprehend and
write effective reports and design documentation, make effective presentations, and give and receive clear instructions.
PO 11 : Project management and finance – Demonstrate knowledge and understanding of the engineering and management principles and apply these to one’s own work, as a
PO 12 : Life-long learning – Life-long learning: Recognize the need for, and have the preparation and ability to engage in independent and life-long learning in the broadest
C204.1 Understand the basics of instructions sets and their impact on processor design.
C204.2 Demonstrate an understanding of the design of the functional units of a digital computer
system.
C204.3 Evaluate cost performance and design trade-offs in designing and constructing a computer
processor including memory
C204.4 Design a pipeline for consistent execution of instructions with minimum hazards.
UNIT - I
Digital Computers: Introduction, Block diagram of Digital Computer, Definition of Computer
Organization, Computer Design and Computer Architecture.
Register Transfer Language and Micro operations: Register Transfer language, Register Transfer,
Bus and memory transfers, Arithmetic Micro operations, logic micro operations, shift micro operations,
Arithmetic logic shift unit.
Basic Computer Organization and Design: Instruction codes, Computer Registers Computer
instructions, Timing and Control, Instruction cycle, Memory Reference Instructions, Input – Output and
Interrupt.
UNIT - II
Microprogrammed Control: Control memory, Address sequencing, micro program example, design
of control unit.
Central Processing Unit: General Register Organization, Instruction Formats, Addressing modes,
Data Transfer and Manipulation, Program Control.
UNIT - III
Data Representation: Data types, Complements, Fixed Point Representation, Floating Point
Representation.
Computer Arithmetic: Addition and subtraction, multiplication Algorithms, Division Algorithms,
Floating – point Arithmetic operations. Decimal Arithmetic unit, Decimal Arithmetic operations.
UNIT - IV
Input-Output Organization: Input-Output Interface, Asynchronous data transfer, Modes of Transfer,
Priority Interrupt Direct memory Access.
Memory Organization: Memory Hierarchy, Main Memory, Auxiliary memory, Associate Memory,
Cache Memory.
.
UNIT - V
Reduced Instruction Set Computer: CISC Characteristics, RISC Characteristics.
Pipeline and Vector Processing: Parallel Processing, Pipelining, Arithmetic Pipeline, Instruction
Pipeline, RISC Pipeline, Vector Processing, Array Processor.
Multi Processors: Characteristics of Multiprocessors, Interconnection Structures, Interprocessor
arbitration, Interprocessor communication and synchronization, Cache Coherence.
TEXT BOOK:
1. Computer System Architecture – M. Moris Mano, Third Edition, Pearson/PHI.
REFERENCES:
1. Computer Organization – Car Hamacher, Zvonks Vranesic, Safea Zaky, Vth Edition, McGraw
Hill.
2. Computer Organization and Architecture – William Stallings Sixth Edition, Pearson/PHI.
3. Structured Computer Organization – Andrew S. Tanenbaum, 4th Edition, PHI/Pearson
COURSE OBJECTIVES
1) The purpose of the course is to introduce principles of computer organization and the basic architectural concepts.
2)It begins with basic organization, design, and programming of a simple digital computer and introduces simple register transfer language to specify various computer operations.
3) Topics include computer arithmetic, instruction set design, microprogrammed control unit,pipelining and vector processing, memory organization and I/O systems, and multiprocessors
LECTURE PLAN
UNIT – I
Digital Computers, Register Transfer Language and Micro operations, Basic Computer Organization and Design,
omputers:
Definition of Computer Organization, Computer Design and Computer Architecture 1 Black Board/PPT
UNIT – II
ogrammed Control:
rocessing Unit:
UNIT – III
resentation:
Data types: Number systems 1 Black Board/PPT
r Arithmetic:
Addition and subtraction with signed 2’s complement numbers 1 Black Board/PPT
UNIT – IV
tput Organization:
Organization:
UNIT – V
nd Vector Processing:
cessors:
UNIT – I
outcome Outcome(P
(CO) O)
b Differentiate between Von Neumann Architecture and Harvard Architecture 3 CO1 PO1 L4
c Explain the functional units of digital computer with block diagram 10 CO1 PO1 L2
b Define Micro operations? List out the types of Micro operations? 3 CO1 PO1 L1
c Design a common bus system for 4 registers of 4 bits using Multiplexers 5 CO1 PO3 L3
d Design a common bus system for 4 registers of 1 bit each using three state buffers 5 CO1 PO3 L3
A digital computer has a common bus system for 16 registers of 32bit each. The bus constructed with CO1 PO3 L1
multiplexers.
c What are the Logical Micro operations and Explain the applications of Logical Micro operations 5 CO1 PO1 L3
b Define Direct addressing mode and Indirect addressing mode 3 CO1 PO1 L1
c Explain the different types of basic computer instructions with their formats 10 CO1 PO3 L2
d What is instruction cycle and explain the basic computer instruction cycle 5 CO1 PO1 L1
UNIT-2
outcome Outcome(P
(CO) O)
Differentiate between hardwired control unit and Microprogrammed control unit. Hardwired control CO2 PO2 L4
c 10
unit is faster than micro programmed control unit. Justify this statement
c With the help of a block diagram , explain how do we select the address of control memory 10 CO2 PO2 L2
Show the general block diagram of a micro program sequencer and also explain the inputs and outputs CO2 PO3 L2
d 5
along with their functioning
c What is an addressing mode? Explain various addressing modes with examples 10 CO2 PO1 L2
a Write the generic instruction types present in a computer system 2 CO2 PO1 L1
d What is an interrupt? What are the uses of interrupts? Explain about the different type of interrupts?. 5 CO2 PO1 L1
a Give an example each of Zero-address, One-address, two-address and three-address instruction 2 CO2 PO2 L1
d Evaluate the following arithmetic statement using zero, one, two and three address instructions. Use the 5 CO2 PO3 L2
conventional symbols and instructions. X = (A+B) * (C+D).
UNIT-3
outcome Outcome(P
(CO) O)
Explain about sign magnitude and 2’s complement approaches for representing the fixed point CO3 PO1 L2
c 5
numbers. Why 2’s complement is preferable.
What is the use of complements? Perform subtraction using 7's complement for the given Base-7 CO3 PO1 L1
d 5
numbers (565)-(666).
Give the 2's complement notation for the following signed decimal numbers CO3 PO1 L3
b 3
for 8 bit word i.) +1 ii) +127 iii) -1 iv) -64.
a Represent the decimal number 46.5 as a floating point number with 16 bit mantissa and 8 bit exponent 2 CO3 PO1 L3
Explain 2's complement method of representing numbers. When can you say that an overflow has CO3 PO1 L2
c 5
occurred when adding or subtracting two fixed point numbers.
Represent 32.75 and 18.125 in single precision IEEE 754 Representation 5 CO3 PO1 L2
d
____
a Show the hardware to be used for Multiplication with signed magnitude numbers 2 CO3 PO3 L2
c Explain in detail with neat sketch Booth Multiplication Algorithm with example 10 CO3 PO3 L2
Perform the operation (-9)+(-6)= -15 with binary numbers in signed 2’s complement representation CO3 PO1 L3
a 2
using only five bits to represent each number (including the sign).
b Give Register configuration for floating point arithmetic operations 3 CO3 PO3 L2
c Explain in detail addition and subtraction with signed magnitude numbers 5 CO3 PO3 L2
d Explain different methods of decimal addition 5 CO3 PO1 L2
d Explain the floating point additions and subtractions operations With a flow chart 5 CO3 PO1 L2
UNIT-4
outcome Outcome(P
(CO) O)
c Explain different types of modes of transfer (or) I/O communication techniques 10 CO4 PO1 L2
What is the basic advantage of using interrupt-initiated data transfer over transfer under program control CO4 PO2 L1
a 2
without an interrupt?
What is Direct Memory Access? Explain the working of DMA. What are the different kinds of DMA CO4 PO1 L1
c 10
transfers?[
How many characters per second can be transmitted over a 1200 baud line in Synchronous serial CO4 PO2 L3
a 2
transmission?[
b Give a neat sketch that illustrate the components in a typical memory Hierarchy 3 CO4 PO3 L4
c Explain the different types mapping techniques are used in usage of the cache memory 10 CO4 PO1 L2
d What is memory address map table ? Explain with example? 5 CO4 PO1 L1
How many 128 × 8 RAM chips are needed to provide a memory capacity of 2048 bytes? How many CO4 PO2 L2
c lines of address bus must be used to access 2048 bytes of memory? How many of these lines will be 5
d With the help of a neat diagram explain the match logic for one word of Associative Memory 5 CO4 PO3 L2
UNIT-5
outcome Outcome(P
(CO) O)
Explain the various hardware techniques to minimize the performance degradation caused by CO5 PO2 L2
d 5
instruction branching
b Differentiate between tightly coupled multiprocessor and loosely coupled multiprocessor 3 CO5 PO2 L4
i)Explain the functioning of omega switching network with a neat sketch. CO5 PO3 L2
ii) In 8 X 8 omega switching network how many stages are there and in each stage how many
iii) How many stages and how many Switches in each stage are needed in a n x n omega switching
network.
How many switch points are there in a crossbar switch network that connects p processors to m memory CO5 PO1 L2
b 3
modules
What are the various forms available for establishing an interconnection network in a multi processor CO5 PO1 L2
c 5
system?
d What is cache coherence? Explain different solutions to the cache coherence problem 5 CO5 PO1 L2
Objective Questions
UNIT – I
a. The way hardware components operate and connected together to form Computer system.
b. The determination of what hardware should be used and how the parts be connected.
c. The structure and behavior of the computer as seen by the user.
2. The part of the hardware of computer that controls the transfer of information between
computer and the outside word is [ ]
6. The transfer of information from a memory word to the outside environment is called a ________ operation. [ ]
a) Read b) write c) both d) none
7. To design a common bus system for 4 register of 4-bits each, by using tristate buffers and a decoder, what is the size of the decoder? [ ]
a) 2 to 4 Decoder b) 3 to 8 Decoder c) 4 to 16 Decoder d)5 to 32 decoder
8. If the address field of an instruction specifies the effective address, then the instruction is
[ ]
a) Immediate Instruction b) Direct Instruction c) Indirect Instruction d) None
9 There are ___________ different logical operations that can be performed with 2 binary variables
[ ]
a) 2 b) 4 c) 8 d) 16.
10. In the Binary Adder/subtractor if M=0 the circuit is __________ [ ]
a) adder b) subtractor c) both adder & subtractor d) exclusive Binary Operation.
11. The _________ operation is similar to the selective clear operation except that the bits of A are cleared only where there are corresponding 0's in B. [ ]
a) Selective – set b) Selective – complement c) Mask d) Insert .
12. The type of shift used to shift the contents of a register which contains a signed binary number is called ___________
13. If the memory size is 4096*16, then ___ address lines are required to address any memory location
14. The ______________ operation sets to 1 bit in register A where there are corresponding 1’s in register B.
15. Description of SPA instruction ______________________________
16. An _____________ is s a group of bits that instruct the computer to perform a specific operation.
17. A _______________ is a fast electronic calculating machine that accepts digitized input information, processes it according to a list of internally stored instructions and the resulting output information.
18. The ____________ holds the address of the next instruction to be read from memory after the current instruction is executed.
19. An elementary operation performed on the information stored in one or more registers is referred as ___________
20. A common bus for eight registers of 16 bits each requires _______ number of multiplexers.
21. An arithmetic shift right ________ the signed binary number by 2. An arithmetic shift left _______ a signed binary number by 2.
UNIT – 2
1. The control logic is implemented with gates, flip-flops, decoders, and other digital circuits. [ ]
7 _________ refer to the transfer of program control from a currently running program to another service program as result of external or internal generated request. [ ]
12 In the Micro instruction code Format the condition field consists of two bits which are encoded to specify_______ status bit conditions
13 A _____________ requires changes in the wiring among the various components if the design has to be modified (or) changed.
14. The transformation from the instruction code bits to an address in control memory where the routine located is referred as __________
15. In Micro programmed organization, the control information is stored in _______________
16. A control unit whose binary control variables are stored in memory is called _____________ control unit
17 The register that holds the address for the stack is called __________
18 Internal interrupts are also called as ___________
19 The implied operand of an operation in a single accumulator organization is _____________
[Link] a memory stack, after the pop operation, the stack pointer will be ____________
UNIT – 3
2. In the Hardware for Signed –Magnitute addition and subtraction two magnitudes are subtracted if the sign are different for an ________ Operation (or) identical for an ________ operation. [ ]
a.111101101101100010101001 b. 111111000101101101011110
c. 111100111010011111000010 d. 111110011001100000010010
7. Perform the subtraction with the following unsigned decimal number by [ ]
11. A floating- point number is said to be _____________if the most- significant digit of the mantissa is nonzero.
12The Divisor is shifted once to the right and subtracted from the dividend. That difference is called a ______________.
16. In BCD addition, when the binary sum is greater than 1001, then addition of _______ converts the binary sum to correct BCD representation
18. In a Array multiplier circuit with ‘j’ multiplier bits and ‘k’ multiplicand bits, the number of
19. A divide overflow condition occurs, if the high order half bits of the dividend is __________________
20. ___________ algorithm specifies a procedure for multiplying two binary integers in Signed 2’s complement.
UNIT-4
1. Machines whose instructions generate 32-bit address can utilize a memory that contains up to _______ memory locations [ ]
8 16 32 48
A. 2 B. 2 C. 2 D. 2
2. The CPU has distinct i/p and o/p instructions and each of these instructions is associated with the address of an interface register. [ ]
A. Memory Mapped I/O B. I/O Port C. Isolated I/O D. I/O Command
3. Backup storage is called as [ ]
A. Cache Memory B. Main Memory C. Auxiliary Memory D. Virtual Memory
4. Baud rate is data transfer in [ ]
[Link] per second B. bytes per second C. words per second D. all the above
5. During a _________ operation, the sense/read circuits, the information stored in the cells selected by a word line and transmit this information to the o/p data lines [ ]
A. Write B. Read C. Read/Write D. Write & Read/Write
6. The interface transfer s data into and out of the memory unit through the memory bus. [ ]
A. Programmed-I/O B. Interrupted-Initiated I/O C. Direct Memory Access D. all the above
7In the ____________ only the cache is updated and the location is marked so that it can be copied later into main memory. [ ]
A. Write through policy B. Cache Coherence C. Write- back policy D. Cache Incoherence
8. Many instructions in localized areas of the program are executed repeatedly during some time period, and the remainder of the program is accessed relatively infrequently . [ ]
A. Locality reference B. spatial C. temporal D. cache
9. Which of the following is volatile? [ ]
2 The ______ organization consists of a number of cross points that are placed at intersections between processors buses and memory module paths. [ ]
A. Multiport memory B. Hypercube system C. Crossbar Switch D. Time –shared common bus
8. _________ arise from branch and other instructions that change the value of pc [ ]
11 ____________ is a technique of decomposing a sequential process into sub operations, with each sub process being executed in a special dedicated segment that operates concurrently with all other segments.
12 An ________________ operates on a stream of instructions by overlapping the fetch, decode and execute phases of the instruction cycle.
13A ___________________ is a program sequence that, once begun, must complete execution before another processor access the same shared resource.
14Expand SIMD _____________________________
15. Multi processors and Multi computer system come into ____________ category
16 A hyper cube with 2-dimensions contain _________ number of processors.
17 An 8x8 omega switching network contains _________ number of switches
18 The number of stages in nxn omega switching network is _________
19. The bus controller that monitors the cache coherence problem is referred as _____________
20 Each processor element in a _______________ system has its own private local memory
UNIT-I
Learning Objectives:
●
Able to Understand what is computer organization,computer design and computer architecture.
●
Identify the major parts in digital computer
●
RTL and different types of micro operations
●
Able to understand instruction codes and computer registers
●
Able to understand different types of instructions.
●
Able to Understand the instruction cycle
UNIT-II
Learning Objectives:
UNIT-III
Data Representation,Computer Arithmetic
Learning Objectives:
UNIT-IV
Learning Objectives:
●
Understanding input output interface
●
Learning asynchronous data transfer
●
Learning modes of transfer
●
Learning priority interrupt
●
Understanding Direct Memory Access
●
Understanding memory hierarchy
●
Understanding types of memories
●
Understanding associate memory
●
Learning cache mappings
UNIT-V
Learning Objectives:
●
Understanding RISC and CISC characterestics.
●
Understanding parallel processing
●
Understanding pipelining and different types of pipelining
●
Understanding characterestics of multi processors,interconnection structures and cache coherence
●
Understanding interprocessor communication and synchronization
d) Evaluate the following arithmetic statement using zero, one, two and three address 2 PO3 L2
5
instructions. Use the conventional symbols and instructions. X = (A+B) * (C+D).
Explain the different types of basic computer instructions with their formats 10 1 PO3 L2
b) Define Micro operations? List out the types of Micro operations? 3 1 PO1 L1
c) Design a common bus system for 4 registers of 4 bits using Multiplexers 5 1 PO3 L3
d) Design a common bus system for 4 registers of 1 bit each using three state buffers 5 1 PO3 L3
c) Differentiate between hardwired control unit and Microprogrammed control unit. Hardwired 2 PO2 L4
10
control unit is faster than micro programmed control unit. Justify this statement
1.1 1
1.2.1 Explain RISC pipeline or three segment instruction pipeline (15.00 Marks)
1.3 3
1.3.2 B) What is memory address map table ? Explain with example? (7.00 Marks)
1.4 4
1.4.2 B) Explain the floating point additions and subtractions operations With a flow chart (7.00 Marks)
1A) Give an example each of Zero-address, One-address, two-address and three-address instruction. [2M]
Zero-address instruction
ADD
One-address instruction
LOAD A
Two-address instruction
MOV R1, A
Three-address instruction.
ADD R1, A, B
PC explanation ------------- 2 M
Instructions table ---------- 3 M
D) Evaluate the following arithmetic statement using zero, one, two and three address instructions. Use the conventional symbols and instructions. X = (A+B) * (C+D). [5M]
X = (A+B) * (C+D)
PUSH A /* TOS 🡨A */
PUSH B /* TOS 🡨 B */
ADD /* TOS 🡨 (A + B) */
PUSH C /* TOS 🡨 C */
PUSH D /* TOS 🡨 D */
ADD /* TOS 🡨 (C + D) */
MUL /* TOS 🡨 (C + D) * (A + B) */
X = (A+B) * (C+D)
LOAD A /* AC 🡨 M[A] */
ADD B /* AC 🡨 AC + M[B] */
STORE T /* M[T] 🡨 AC */
LOAD C /* AC 🡨 M[C] */
ADD D /* AC 🡨 AC + M[D] */
MUL T /* AC 🡨 AC * M[T] */
MUL R1, R2 /* R1 🡨 R1 * R2 */
X = (A+B) * (C+D)
ADD R1, A, B /* R1 🡨 M[A] + M[B] */
B)Define Micro operations? List out the types of Micro operations? [3M]
Microoperations Definition – 1 M
Listing---------------------------- 2 M
Explanation – 2 M
Diagram ----- 3 M
D)Design a common bus system for 4 registers of 1 bit each using three state buffers[5M]
Explanation – 2 M
Diagram ------ 3 M
The data register is sometimes called pipeline register. It allows the execution of the microoperations specified by the control word simultaneously with the generation of the next micro instruction.
C) Differentiate between hardwired control unit and Microprogrammed control unit. Hardwired control unit is faster than micro programmed control unit. Justify this statement.[10M]
Differences ---------- 7 M
Stmt Justification -- 3 M
MID 2 SCHEME OF EVALUATION
Explanation – 3 M
Diagrams – 5M
Priority Encoder:
Explanation – 5 M
Diagrams – 2 M
[Link] RISC pipeline or three segment instruction pipeline.(15 M)
Explanation – 8 M
Diagrams – 7M
3.A) Explain about types of ROM.(8 M)
Definition – 1M
Explanation – 5 M
Advantages – 1 M
ROM stands for Read Only Memory. The memory from which we can only read but cannot write on it. This type of memory is non-volatile. The information is stored permanently in such memories during manufacture. A ROM
stores such instructions that are required to start a computer. This operation is referred to as bootstrap. ROM chips are not only used in the computer but also in other electronic items like washing machine and microwave oven.
The very first ROMs were hard-wired devices that contained a pre-programmed set of data or instructions. These kind of ROMs are known as masked ROMs, which are inexpensive.
PROM is read-only memory that can be modified only once by a user. The user buys a blank PROM and enters the desired contents using a PROM program. Inside the PROM chip, there are small fuses which are burnt open during
programming. It can be programmed only once and is not erasable.
EPROM can be erased by exposing it to ultra-violet light for a duration of up to 40 minutes. Usually, an EPROM eraser achieves this function. During programming, an electrical charge is trapped in an insulated gate region. The
charge is retained for more than 10 years because the charge has no leakage path. For erasing this charge, ultra-violet light is passed through a quartz crystal window (lid). This exposure to ultra-violet light dissipates the charge.
During normal use, the quartz lid is sealed with a sticker.
EEPROM is programmed and erased electrically. It can be erased and reprogrammed about ten thousand times. Both erasing and programming take about 4 to 10 ms (millisecond). In EEPROM, any location can be selectively erased
and programmed. EEPROMs can be erased one byte at a time, rather than erasing the entire chip. Hence, the process of reprogramming is flexible but slow.
Advantages of ROM
● Non-volatile in nature
● Easy to test
Definition – 1 M
Table – 2M
Diagram – 4 M
The addressing of memory can be established by means of a table that specifies the memory address assigned to each [Link] table,called a Memory Address Map,is a pictoral representation of assigned address space for each chip in
the system.
To demonstrate with an example,assume that a system needs 512 bytes of RAM and 512 bytes of [Link] memory address map for this configuration is shown in the below table.
Memory Connection to CPU
Flow chart – 6 M
Problem – 2 M
B)Explain the floating point additions and subtractions operations with a flow chart.(7 M)
Explanation – 1 M
Example – 1M
Flow chart – 5 M
---
2. Draw block diagram of a control memory and the associated hardware needed for selecting the next micro instruction address. [15]
3. Perform the arithmetic operation (+42)+(-13) and (-42)-(-13) in binary using signed 2’s complement representation for negative numbers. [15]