


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



Let us suppose that the engineer in charge of the SRT lookup table is not good at plotting straight lines, and ends up using a line that is slightly “higher” than R Dk = 32 (shown as a bold line in the figure below – the “correct” line would have terminated slightly lower where the dash-dot horizontal line hits the end of the table). That is, he uses the line Rk D =^
3 2 + ∆^ (see the figure below). How would this affect the correctness of the divider? Assuming you cannot change the lookup table, how would you modify the algorithm to fix the problem?
Rk = 83 D
Rk = 43 D
Rk = 23 D Rk = 13 D
Rk = − 13 D Rk = − 23 D
Rk = − 43 D Rk = − 53 D
Rk = − 83 D
q = 2 Rk = 53 D
q = 1
q = 0
q = − 1
q = − 2
Rk = ( 32 + ∆)D
D Rk
Solution:
4 3
3 2
5 3
R^ fk D^ e
Using the example values in this figure, the actual value of R Dk falls in the range where the SRT table must return a
1
There are multiple correct answers for this section. You need not have all of them to receive full credit.
(a) What advantages does a VLIW architecture like IA64 have over a CISC architecture like x86?
The answers for this are similar to the previous part because the sub-instructions that comprise a VLIW instruction are basically RISC-like.
There isn’t really a correct answer for this question. There are pros and cons to VLIW. Besides IA64, there are other domains that make extensive use of VLIW architectures (such as in the digital signal processing area).
The idea is that the compiler (a) has a lot of time to search for parallelism, and (b) has a larger scope to search for parallelism (i.e. it can look at the whole program all at once whereas typical non-VLIW machines only look at a few instructions at a time). The other component is that by pushing the complexity to the compiler, the hardware can be made simpler. The hardware need not explicitly check for dependent instructions.
The compiler is a potential strength, but it can also be a major weakness. The compiler is responsible for gener- ating correct code, and that forces it to be conservative which sacrifices performance. For example, it may be that two load and store instructions never access the same address. Unless the compiler can find some way to prove this, it cannot allow these two instructions to execute in parallel because there is still some small non-zero chance that there is a memory dependency.
The compiler sets the instruction schedule at compile time, and therefore the ordering of the instructions cannot be modified in reaction to run-time events (such as cache misses).