In: Computer Science
PLEASE ANSWER WITHIN 30 MINUTES!!
Consider a simple instruction ADD C,D (c+d). i. Write down the instruction format of above instruction and which operand address will be use to implement this instruction?
ii. What will be the role of microprograming while executing the instruction?
iii. What type of parallel processor system will use in it?
iv. Draw a diagram that represents the solution when an interrupt is occurred during execution of “a+b” instruction.
v. If you are supposed to use pipeline architecture for executing above instruction then what steps will be required to execute the instruction?
Ans i)
A:=B
mov eax, [n1]
mov ebx, [n2]
A:=A+B
add eax,ebx
ii)
Micro programming is Control unit programming.
A control unit is implemented in either hardwired or microprogram. A hardwired control unit is a large FSM (finite state machine) sending control signals to data path. A microprogrammed control unit is a complex programmable unit that outputs control signals to data path according to its microprogram.
iii) It basically have multiple types of parallel processing , most commonly SIMD is used i.e single instruction multiple data which means that it will work on the same process but with different data sets.
iv)
v)
In this a stream of instructions can be executed by overlapping fetch, decode and execute phases of an instruction cycle. This type of technique is used to increase the throughput of the computer system.
An instruction pipeline reads instruction from the memory while previous instructions are being executed in other segments of the pipeline. Thus we can execute multiple instructions simultaneously. The pipeline will be more efficient if the instruction cycle is divided into segments of equal duration.