Professional Documents
Culture Documents
Name: G.Karthikeyan Username: 1417121: Assignment-1
Name: G.Karthikeyan Username: 1417121: Assignment-1
Name: G.Karthikeyan
Username: 1417121
Mail id:karthikeyanvis1996 @gmail.com
1. How is 8255 (Programmable Peripheral Interface) configured
if its control register contains 9B h.
A11) are all logic 1s. The active low, logic 0 output of the NAND gate
decoder is connected to the CE input pin that selects (enables) the EPROM.
NEXT
DELAY
Mnemonics
No. of
T-state
No. of execution
times for each
instruction
MVI B, 00
DCR B
255
1020
MVI C, 8C
255
1785
DCR C
255x140=35700
142800
JNZ DELAY
10
254x140=35690
(T)
1x140=140(F)
357880
MOV A, B
255
1020
OUT PORT
10
255
2550
JMP NEXT
10
255
2550
5. Assume that the times required for the five functional units,
which operate in each of the five cycles are: 10 ns, 8 ns, 10
ns, 10 ns and 7 ns. Assume that pipelining add 1 ns of
overhead find the speed up versus single cycle data path.
Solution:
Since the unpipelined machine executes all instructions in a single clock
cycle, its average time per instruction is simply the clock cycle time. The
clock cycle time is equal to the sum of the times for each step in the
execution:
Average instruction execution time =10n+ 8n+ 10n+10n+ 7n
=45ns
The clock cycle time on the pipelined machine must be the largest time
for any stage in the pipeline (10 ns) plus the overhead of 1 ns, for a total
of 11 ns. Since the CPI is 1, this yields an average instruction execution
time of 11 ns. Thus,
Speedup from pipelining= Average instruction time unpipelined
-------------------------------------------------------------Average instruction time pipelined
45 ns /11 ns = 4.1 times