Professional Documents
Culture Documents
Trial Exam
Trial Exam
Time: 45 minutes
Questions: 22
IF ID EX MEM WB
5 ns 4 ns 5 ns 10 ns 4 ns
3
Trial Exam
Multiple Choice
4. Standard CISC processor, no pipelining (around 1970): A vector
operation vc = va + vb with 5 elements per vector shall be
performed. How many cycles are required within the loop below
for the vector operation above (neglect the branch operation
br.less) if the load instructions take two cycles and the remaining
operations take 1 cycle?
a) 30 Standard
Standardscalar
scalar load
loadr2=addr(va)
r2=addr(va)
CISC processor:
b) 35 load r3=addr(vb)
CISC processor: load r3=addr(vb)
c) 40 load
loadr4=addr(vc)
r4=addr(vc)
load r1=0
load r1=0
d) 45 loop:
loop:
e) None of the answers load
load f1=[r1+r2]
f1=[r1+r2]
above is correct. load
load f2=[r1+r3]
f2=[r1+r3]
add
addf3=f1+f2
f3=f1+f2
store Cycles = ?
store[r1+r4]=f3
[r1+r4]=f3
add r1=r1+8
add r1=r1+8
cmp
cmpr1,r1,(n*8)
(n*8)
br.less
br.lessloop
loop
4
Trial Exam
Multiple Choice
5. Standard RISC processor, with pipelining: A vector operation vc =
va + vb with 5 elements per vector shall be performed. How many
cycles are required within the loop below for the vector operation
above (neglect the branch operation br.less) if the load
instructions take two cycles and the remaining operations take 1
cycle?
a) 20 Standard
Standard load
loadr2=addr(va)
r2=addr(va)
RISC processor:
b) 25 load r3=addr(vb)
RISC processor: load r3=addr(vb)
c) 30 load
loadr4=addr(vc)
r4=addr(vc)
load r1=0
load r1=0
d) 35 loop:
loop:
e) None of the answers load
load f1=[r1+r2]
f1=[r1+r2]
above is correct. load
load f2=[r1+r3]
f2=[r1+r3]
add
addf3=f1+f2
f3=f1+f2
store Cycles = ?
store[r1+r4]=f3
[r1+r4]=f3
add r1=r1+8
add r1=r1+8
cmp
cmpr1,r1,(n*8)
(n*8)
br.less
br.lessloop
loop
5
Trial Exam
Multiple Choice
6. Itanium processor, ILP (EPIC): A vector operation vc = va + vb with
5 elements per vector shall be performed. How many cycles are
required within the loop below for the vector operation above
(neglect the branch operation br.ctop) if the load (ldl) instructions
take two cycles and the remaining operations take 1 cycle?
a) 5
Intels‘s
Intels‘sItanium
Itanium ld
b) 9 ldr2=addr(va)
r2=addr(va)
ld
ldr3=addr(vb)
r3=addr(vb);;;;
c) 10
ld
ldr4=addr(vc)
r4=addr(vc)
d) 25 ld.lc=4
ld.lc=4
e) None of the answers ld.ec=5
ld.ec=5;;;;
above is correct. loop:
loop:
(p16)
(p16) ldl
ldl f32=[r2],8
f32=[r2],8
(p17) ldl f36=[r3],8
(p17) ldl f36=[r3],8 Cycles
(p19)
(p19)fadd
faddf38=f35+f38
f38=f35+f38 =?
(p20) stl [r4]=f39,8
(p20) stl [r4]=f39,8
br.ctop.loop
br.ctop.loop;;;;
6
Trial Exam
Multiple Choice
7. Itanium processor: Which hazard can be circumvented by
register rotation?
a) Control hazards
b) Data hazards
c) Structural hazards
d) None
e) None of the answers above is correct.
a) 4
b) 5
c) 8
d) 16
e) None of the answers above is correct.
9
Trial Exam
Multiple Choice
13. Interconnection networks, topology: What is the difference
between a 2-D torus and a hypercube with 16 nodes?
a) None
b) Node degree of 2-D torus is lower.
c) Bisection bandwidth of hypercube is higher.
d) Average distance of hypercube is significantly lower.
e) None of the answers above is correct.
a) 4 cycles
b) 5 cycles
c) 9 cycles
d) 10 cycles
e) None of the answers above is correct.
13
Trial Exam
Multiple Choice