Professional Documents
Culture Documents
EC8552 Computer Architecture and Organization 2 M
EC8552 Computer Architecture and Organization 2 M
EC8552 Computer Architecture and Organization 2 M
in
Computer Architecture Is Defined As The Functional Operation Of The Individual H/W Unit In
A Computer System And The Flow Of Information Among The Control Of Those Units.
Computer H/W Is The Electronic Circuit And Electro Mechanical Equipment that Constitutes the
Computer
The memory arithmetic and logic ,and input and output units store and process information and
perform i/p and o/p operation, the operation of these unit must be co ordinate in some way this is
the task of control unit the cu is effectively the nerve center that sends the control signal to other
units and sence their states.
4. What is an interrupt?
An interrupt is an event that causes the execution of one program to be suspended and
• Debugging
• NUBUS
RISC CISC
Simple instructions take one cycle per Complex instruction take multiple
Operation Cycles per operation.
Few instructions and address modes are used. Many instruction and address
Modes.
Fixed format instructions are used. Variable format instructions are used
Instructions are compiled and then executed by Instructions are interpreted by the
hardware. Microprogram and then executed.
RISC machines are multiple register set. CISC machines use single register Set.
Complexity in the compiler Complexity in the microprogram
RISC machines are higly piplined CISC machines are not piplined.
The address of the location of the operand is given explicitly as a part of the instruction.
The MAR (memory address register) is used to hold the address of the location to or from which
data are to be transferred and the MDR(memory data register) contains the data to be written into
or read out of the addressed location.
13. What are the various types of operations required for instructions?
• Data transfers between the main memory and the CPU registers
• I/O transfers
Instruction Register (IR) contains the instruction being executed. Its output is availableto the
control circuits, which generate the timing signals for controlling the processing circuitsneeded
to execute the instructions.The Program Counter (PC) register keeps track of the execution of the
program. It contains the memory address of the instruction currently being executed . During the
execution of the current instruction, the contents of the PC are updated to correspond to the
address of the next instructions to be executed.
• Input unit
• Output unit
• Control unit
• Memory unit
An I/O channel is actually a special purpose processor, also called peripheral processor. The
main processor initiates a transfer by passing the required information in the input output
channel. The channel then takes over and controls the actual transfer of data.
Each group of n bits is referred to as a word of information and n is called the word
length.
Operands a,b are called source operand and c is called destination operand.
The CPU control circuitry automatically proceed to fetch and execute instruction, one at
a time in the order of the increasing addresses. This is called straight line sequencing.
The CPU contains a register called the program counter, which holds the address of instruction to
be executed next to begin the execution of the program the address of its First instruction must
be placed into the pc.
called signals.
Gates – The manipulation of binary information is done by logic circuits called gates.
Gates are blocks of hardware that produce signals of binary 1 or 0 where input logic
Suppose that the average number of basic steps needed to execute one machine instruction is S,
where each basic step is completed in one clock cycle. If the clock cycle rate is R cycles per
second, the program execution time is given by
Throughput rate-The rate at which the total amount of work done at a given time.
PART B
4. What are addressing modes and enhance the types of addressing modes
UNIT-2
1. State the principle of operation of a carry look-ahead adder.
The input carry needed by a stage is directly computed from carry signals obtained from all
the preceding stages i-1,i-2,…..0, rather than waiting for normal carries to supply slowly from
stage to stage. An adder that uses this principle is called carry look-ahead adder.
12. What is the purpose of guard bits used in floating point arithmetic
Although the mantissa of initial operands are limited to 24 bits, it is important to retain extra
bits, called as guard bits.
17. In floating point numbers when so you say that an underflow or overflow has occurred?
In single precision numbers when an exponent is less than -126 then we say that an underflow
has occurred. In single precision numbers when an exponent is less than +127 then we say that an
overflow has occurred.
18. What are the difficulties faced when we use floating point arithmetic?
Mantissa overflow: The addition of two mantissas of the same sign may result in a
carryout of the most significant bit
Mantissa underflow: In the process of aligning mantissas ,digits may flow off the right
end of the mantissa.
Exponent overflow: Exponent overflow occurs when a positive exponent exceeds the
maximum possible value.
Exponent underflow: It occurs when a negative exponent exceeds the maximum
possible exponent value.
19. In conforming to the IEEE standard mention any four situations under which a
processor sets exception flag.
Underflow: If the number requires an exponent less than -126 or in a double precision, if
the number requires an exponent less than -1022 to represent its normalized form the underflow
occurs.
Overflow: In a single precision, if the number requires an exponent greater than -127 or
in a double precision, if the number requires an exponent greater than +1023 to represent its
normalized form the underflow occurs.
Divide by zero: It occurs when any number is divided by zero.
Invalid: It occurs if operations such as 0/0 are attempted.
20. Why floating point number is more difficult to represent and process than
integer?
www.studymaterialz.in
An integer value requires only half the memory space as an equivalent.IEEEdouble-
precision floatingpoint value. Applications that use only integer based arithmetic will therefore
also have significantly smaller memory requirement. A floating-point operation usually runs
hundreds of times slower than an equivalent integer based arithmetic operation.
21. Give the booth’s recoding and bit-pair recoding of the computer.
-1 0 0 +1 0 0 0 -1 +1 -1 0 0 +1 -1 +1 -1
Bit-Pair recoding:
1 0 0 0 1 1 1 1 0 1 0 0 0 1 0 1 0
-2 +1 0 -1 +1 0 +1 1
22. Draw the full adder circuit and give the truth table
Inputs Outputs
A B C Carry Sum
0 0 0 0 0
0 0 1 0 1
0 1 0 0 1
0 1 1 1 0
1 0 0 0 1
1 0 1 1 0
1 1 0 1 0
1 1 1 1 1
UNIT-III
PART A
1. Define MIPS .
MIPS:One alternative to time as the metric is MIPS(Million Instruction Per Second)
MIPS=Instruction count/(Execution time x1000000).
This MIPS measurement is also called Native MIPS todistinguish it from
some alternative definitions of MIPS.
2. Define MIPS Rate:
The rate at which the instructions are executed at a given time.
3. Define pipelining.
Pipelining 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
www.studymaterialz.in
other segments.
4. Define parallel processing.
Parallel processing is a term used to denote a large class of techniques that are used to
provide simultaneous data-processing tasks for the purpose of increasing the computational
speed of a computer system. Instead of processing each instruction sequentially as in a
conventional computer, a parallel processing system is able to perform concurrent data
processing to achieve faster execution time.
5. Define instruction pipeline.
The transfer of instructions through various stages of the CPU instruction cycle.,including
fetch opcode, decode opcode, compute operand addresses. Fetch operands, execute
Instructions and store results. This amounts to realizing most (or) all of the CPU in the form
of multifunction pipeline called an instruction pipelining.
6. What are the steps required for a pipelinened processor to process the instruction?
• F Fetch: read the instruction from the memory
• D Decode: decode the instruction and fetch the source operand(s).
• E Execute: perform the operation specified by the instruction.
• W Write: store the result in the destination location
7. What are Hazards?
A hazard is also called as hurdle .The situation that prevents the next instruction in the
instruction stream from executing during its designated Clock cycle. Stall is introduced by hazard.
(Ideal stage)
8. State different types of hazards that can occur in pipeline.
The types of hazards that can occur in the pipelining were,
1. Data hazards.
2. Instruction hazards.
3. Structural hazards.
9. Define Data hazards
A data hazard is any condition in which either the source or the destination operands of
an instruction are not available at the time expected in pipeline. As a result some operation
has to be delayed, and the pipeline stalls.
10. Define Instruction hazards
The pipeline may be stalled because of a delay in the availability of an instruction. For
example, this may be a result of miss in cache, requiring the instruction to be fetched from
the main memory. Such hazards are called as Instruction hazards or Control hazards.
www.studymaterialz.in
11. Define Structural hazards?
The structural hazards is the situation when two instructions require the use of a given
hardware resource at the same time. The most common case in which this hazard may arise
is access to memory.
12. What are the classification of data hazards?
Classification of data hazard: A pair of instructions can produce data hazard by referring
reading or writing the same memory location. Assume that i is executed before J. So, the
hazards can be classified as,
1. RAW hazard
2. WAW hazard
3. WAR hazard
13. Define RAW hazard : ( read after write)
Instruction ‘j’ tries to read a source operand before instruction ‘i’ writes it.
14. Define WAW hazard :( write after write)
Instruction ‘j’ tries to write a source operand before instruction ‘i’ writes it.
15. Define WAR hazard :( write after read)
Instruction ‘j’ tries to write a source operand before instruction ‘i’ reads it.
PART - B
1. State and explain the different types of hazards that can occur in a pipeline.
2. Draw and explain the structure of a superscalar processor. Also explain the flow of
instruction execution in it.
3. Explain the control implemation scheme in detail
4. Implement basic structure of MIPS
5. Define datahazard and instruction hazard and explain in detail
6. Explain pipelined data path and control path
7. What are the two aspects of machine instruction? Explain it .
8. .Draw and explain the modified three-bus structure of the processor suitable for four -
stage pipelined execution. How this structure is suitable to provide four-stage pipelining?
UNIT-IV
PART A
4. What is cluster
A set of computers connected over a local area network that function as single
large multiprocessor is called cluster
5. What is multicore
space
It is used to calculate the performance gain that can be obtained by improving some
portion of a computer.
stream
SISD have more than one functional unit, but all functional units are control by a
single control unit
SIMD receive same instruction from control unit but operate on different data sets
from distinct data stream
The several processing units process the same data using different programs.
www.studymaterialz.in
14. What is data level parallelism
The processor executes two or more threads at a time. It switches from one thread to
another at each clock cycle. During execution if a thread is blocked because of data
dependencies or memory latencies that thread is skipped and a ready thread is executed
The processor executes instructions of a thread sequentially and if an event causes any
delay, it switches to another thread
A processor in which latency to any word in main memory is about the same matter
which processor requests the access
A type of single address multiprocessor in which some memory accesses are faster than
others depending on which processor asks for which word.
PART B
www.studymaterialz.in
1. Explain flyn’s classification in detail
UNIT-V
PART – A
23. What are the two types of latencies associated with storage?
The latency associated with storage is divided into 2 categories
1. Seek Latencies which can be classified into Overlapped seek,Mid transfer seek and Elevator
seek
2. Rotational Latencies which can be reduced either by Zero latency read or Write and Interleave
factor.
24. What are the data management activities involved in a storage?
a. Command queuing : allows execution of multiple sequential commands with system
CPU intervention. It helps in minimizing head switching and disk rotational latency
b. Scatter – gather : Scatter is a process whereby data is set for best fit in available
block of memory or disk. Gather reassembles data into contiguous blocks on disk or in memory
25. What do you mean by Disk Spanning?
Disk spanning is a method of attaching drives to a single host uadapter. All drives appear
as a single contiguous logical unit. Data is written to the first drive first and when the drive is
full, the controller switches to the second drive, then the second drive writes until its full.
26. List some objectives for using RAID Systems
-RAID systems are used to meet the following objectives
-Hot backup of disk systems
-Large volume storage at lower cost
-Higher performance at lower cost
-Ease of data recovery
-High MTBF
24. What are the different levels RAID?
There are six discrete levels of RIAD functionality. They are
-Level 0 – Disk Striping
www.studymaterialz.in
-Level 1 – Disk Mirroring
-Level 2 – Bit Interleaving of Data
-Level 3 – Bit Interleaving with dedicated parity drives
- Level 4 – Sector interleaving of data with dedicated parity drive
-Level 5 – Block interleaving of data.
the corresponding interrupt-service routine. The term vectored interrupts refers to all
interrupthandling schemes base on this approach.
34. Name any three of the standard I/O interface.
*SCSI (small computer system interface),bus standards
*Back plane bus standards
*IEEE 796 bus (multibus signals)
*NUBUS & IEEE 488 bus standard
35. What is an I/O channel?
An i/o channel is actually a special purpose processor, also called peripheral
www.studymaterialz.in
processor.The main processor initiates a transfer by passing the required information in the input
output channel. the channel then takes over and controls the actual transfer of data.
36. Why program controlled I/O is unsuitable for high-speed data transfer?
In program controlled i/o considerable overhead is incurred..because several program
instruction have to be executed for each data word transferred between the external devices and
MM.Many high speed peripheral; devices have a synchronous modes of operation.that is data
transfer are controlled by a clock of fixed frequency, independent of the cpu.
47. what is the function of i/o interface?
The function is to coordinate the transfer of data between the cpu and external devices.
48. Name some of the IO devices.
*Video terminals
*Video displays
*Alphanumeric displays
*Graphics displays
* Flat panel displays
*Printers
*Plotters
49. What are the steps taken when an interrupt occurs?
*Source of the interrupt
*The memory address of the required ISP
* The program counter &cpu information saved in subroutine
*Transfer control back to the interrupted program