Professional Documents
Culture Documents
Input Unit: Five Basic Components of Computer System
Input Unit: Five Basic Components of Computer System
Input Unit: Five Basic Components of Computer System
2. A) Illustrate the basic functional units of a digital computer and functions of each unit.
B) Explain briefly the principle of carry look ahead addition. Draw the circuit diagram of 4 bit
carry look ahead adder with proper design.
c) With the help of suitable examples, differentiate between R type and I type instructions in
MIPS machine language
4. A) with examples for each, explain the addressing modes available in MIPS
B) what is micro architecture? List the state elements of MIPS processor and their functions
C) write a short note on performance analysis of computer systems
Input Unit
An input unit performs the following functions.
1. It accepts (or reads) the list of instructions and data from the outside world.
2. It converts these instructions and data in computer acceptable format.
3. It supplies the converted instructions and data to the computer system for
further processing.
Output Unit
Following functions are performed by an output unit.
1. It accepts the results produced by the computer which are in coded form and
hence cannot be easily understood by us.
2. It converts these coded results to human acceptable (readable) form.
3. It supplied the converted results to the outside world.
Storage Unit
the specific functions of the storage unit are to store:
1. All the data to be processed and the instruction required for processing
(received from input devices).
2. Intermediate results of processing.
3. Final results of processing before these results are released to an output
device.
2. In ripple carry adders, for each adder block, the two bits that are to be added are
available instantly. However, each adder block waits for the carry to arrive from its
previous block. So, it is not possible to generate the sum and carry of any block until
the input carry is known. The ith block waits for the i-1th block to produce its carry. So
there will be a considerable time delay which is carry propagation delay.
A carry look-ahead adder reduces the propagation delay by introducing more
complex hardware. In this design, the ripple carry design is suitably transformed such
that the carry logic over fixed groups of bits of the adder is reduced to two-level
logic.
Gi = Ai Bi
• Column i will propagate a carry in to the carry out if Ai OR Bi is 1.
Pi = Ai + Bi
• The carry out of column i (Ci) is:
Ci = Ai Bi + (Ai + Bi )Ci-1 = Gi + Pi Ci-1
3.
There are different MIPS addressing modes. We have already seen some
examples in the previous labs.
Here are the four addressing modes:
In the following sections, we will examine each of these modes, observe how they
are implemented using the above formats and
introduce indexed addressing mode, which is implemented by the assembler as a
pseudo instruction.
For example, if $t0 pointed to the base of a record or structure, we could get at the
fields using
lw $t1,4($t0)
lw $t1,8($t0)
lw $t1,16($t0)
etc ...
We have used a form of base addressing with zero offset in the program length.s.
2) microarchitecture is the logical design of all electronic components and data paths
present in the microprocessor, laid out in a specific way that it allows for optimal execution of
instructions. In academe this is called computer organization.
Microarchitecture :
There are many ways to measure the performance of a computer
system, and marketing departments are infamous for choosing the
method that makes their computer look fastest, regardless of whether
the measurement has any correlation to real-world performance
Micro architecture
Pipelined processor
The pipelined processor ideally would have a CPI of 1, because a new instruction
is issued every cycle