Professional Documents
Culture Documents
Assignment 1 2020coa
Assignment 1 2020coa
Assignment 1 2020coa
ARCHITECTURE
EET 2211
4TH SEM(CSE & CSIT)
ASSIGNMENT-1
(d) Find the IPC (instructions per cycle) for each processor.
(e) Find the clock rate for P2 that reduces its execution time to that of P1.
(f) Find the number of instructions for P2 that reduces its execution time
to that of P3.
Process Clock CPI Class CPI Class CPI Class CPI Class D
or rate A B C
P1 1.5GHz 1 2 3 4
P2 2GHz 2 2 2 2
(a) Given a program with 106 instructions divided into classes as follows:
10% class A,20% class B ,20% class C and 20% class D, which
implementation is faster?
(b) What is the global CPI for each implementation?
(c) Find the clock cycles required in both cases.
The following table shows the number of instructions for a program.
(d) Assuming that arith instructions take 1cycle, load and store 5 cycles
and branch 2 cycles, what is the execution time of the program in a
2GHz processor?
(e) Find the CPI for the program.
(f) If the number of load instructions can be reduced by one-half, what is
the speed-up and the CPI?
(a) The table above shows the number of instructions required per processor
to complete a program on a multiprocessor with 1,2,4 or 8 processors.
What is the total number of instructions executed across all processors?
(b) Given CPI values on the right of the table above, find the total execution
time for this program on 1,2,4 and 8 processors. Assume that each
processor has a 2GHz clock frequency.
(c) If the CPI of arithmetic instructions was doubled, what would the impact be
on the execution time of the program on 1,2,4 or 8 processors?
(a) By how much is the total time reduced if the time for FP operations is
reduced by 20%?
(b) By hoe much is the time for INT operations reduced if the total time is
reduced by 20%?
(c) Can be the total time can be reduced by 20% by reducing only the time for
branch instructions?
The following table shows the instruction type breakdown per processor of
a given application application executed in different numbers of
processors.
7. The following table shows the execution time of five routines of a program
running on different numbers of processors.
(d) For each doubling of the number of processors, determine the ratio of
new to old computing time and the ratio of new to old routing time.
(e) Using the geometric means of the ratios, extrapolate to find the
computing time and routing time in a 128-processor system.
(f) Find the computing time and routing time for a system with one
processor.
13.Consider the graphic symbol for the S-R Flipflop. Add additional lines to
depict a D flip-flop wired from the S-R flip-flop.
14.Show the structure of a PLA with three inputs (C, B, A) and four outputs
(O0, O1, O2, O3) with the outputs defined as follows:
O0 = A’B’C+AB’+ ABC’
O1 = A’B’C+ ABC’
O2 = C
O3 = AB’+ ABC’
15.Design a 5x32 decoder using four 3x 8 decoders (with enable inputs) and
one 2X4 decoder.
17. Consider a 32-bit microprocessor whose bus cycle is the same duration as
that of a 16-bit microprocessor. Assume that, on average, 20% of the operands
and instructions are 32 bits long, 40% are 16 bits long, and 40% are only 8 bits
long. Calculate the improvement achieved when fetching instructions and
operands with the 32-bit microprocessor.
19. For the cache design of the preceding problem, suppose that increasing
the line size from one word to four words results in a decrease of the read miss
rate from 3.2% to 1.1%. For both the nonburst transfer and the burst transfer
case, what is the average miss penalty, averaged over all reads, for the two
different line sizes?
20. WAP to perform the following operation on bytes data given in the
memory location 4000h, and 4002h and store the results of the given operation
[{(data1 + 5)and(data2 − 5)}or(data1 ∗ 2)']
in the memory location 4004h.