• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 3 out of 17 pages
Exam (elaborations)

for cs 501

Document preview thumbnail
Preview 3 out of 17 pages

Exam study book Advanced Computer Architectures of Sajjan G. Shiva - ISBN: 9781351992091 (exam preparation)

Content preview

CS501- Advance Computer Architecture
Solved Subjective DEC 01,2012
From Midterm Papers
MC100401285 PSMD01




MIDTERM EXAMINATION
Spring 2012
CS501- Advance Computer Architecture
1- Two approaches for control unit.
Answer:- (Page 150)
Additionally, there are two different approaches to the control unit design; it can be either hard-wired or micro-
programmed


2- What is micro program?
Answer:- (Page 222)
A collection of microinstructions is called a microprogram. These microprograms generate the sequence of
necessary control signals required to process an instruction. These microprograms are stored in a memory
called the control store.


3- structural RTL for mov ra, rb
Answer:- (Page 164)




1

,4- Structural RTL and explanation for instruction fetch.
Answer:- (Page 152)
The instruction fetch procedure takes three time steps as shown in the table. During the first time step, T0,
address of the instruction is moved to the Memory Address Register (MAR) and value of PC is incremented. In
T1 the instruction is brought from the memory into the Memory Buffer Register (MBR), and the incremented
PC is updated. In the third and final timestep of the instruction fetch phase, the instruction from the memory
buffer register is written into the IR for execution. What follows the instruction fetch phase, is the instruction
execution phase. The number of timing steps taken by the execution phase generally depends on the type and
function of instruction. The more complex the instruction and its implementation, the more timing steps it will
require completing execution. In the following discussion, we will take a look at various types of instructions,
related timing steps requirements and data path implementations of these in terms of the structural RTL.




MIDTERM EXAMINATION
Spring 2012
CS501- Advance Computer Architecture

Q1. Which register holds the address of the next instruction to be executed in the processor? (2 Marks)
Answer:- (Page 28)
The program counter (PC) that holds the address of the next instruction in memory that is to be executed.

Q2. What do you know about Machine Exception? (2 Marks)
Answer:- (Page 197)
• Anything that interrupts the normal flow of execution of instructions in the processor is called an exception.
• Exceptions may be generated by an external or internal event such as a mouse click or an attempt to divide by
zero etc.
• External exceptions or interrupts are generally asynchronous (do not depend on the system clock) while
internal exceptions are synchronous (paced by internal clock)




2

, Q3. How exception may be generated write the difference between external and internal exceptions?
(3marks)
Answer:- (Page 197)
External exceptions or interrupts are generally asynchronous (do not depend on the system clock) while internal
exceptions are synchronous (paced by internal clock)


Q4. Write the structure RTL description for mov instruction (3 Marks)
Answer:- (Page 164)
In mov instruction the data in register rb, which is the source register, is to be moved in the register ra, which is
the destination register. In first three steps, mov instruction is fetched. In step T3 the contents of register rb are
placed in buffer register C through the ALSU unit while in step T4 the buffer register C transfers the data to
register ra through internal uni-bus.

Q5. Write the structure RTL description for shift instruction? (5 Marks)
Answer:- (Page 157)
Shift instructions are rather complicated in the sense that they require extra hardware to hold and decrement the
count. For an ALSU that can perform only single bit shifts, the data must be repeatedly cycled through the
ALSU and the count decremented until it reaches zero. This approach presents some timing problems, which
can be overcome by employing multiple-bit shifts using a barrel shifter.



MIDTERM EXAMINATION
Spring 2012
CS501- Advance Computer Architecture
Q - Write a structural RTL for Shift instruction for Uni-Bus data path implementation.
shiftr ra, rb, c1 [5 Marks]
Answer:- (Page 163)




3

Connected book
 image
Publisher: 2018 ISBN: 9781351992091 Edition: Unknown

Document information

Uploaded on
February 24, 2022
Number of pages
17
Written in
2006/2007
Type
Exam (elaborations)
Contains
Questions & answers
$7.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Sold
0
Followers
0
Items
2
Last sold
-



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions