Question 1 Which kind of element is the ALU Arithmetic Logic
Question 1 Which kind of element is the ALU (Arithmetic Logic Unit)? Sequential, combinational, or both?
a) Both
b) Sequential
c) Combinational
Question 2 If a signal is written at the same time it is read, what could be the read value? Select all that apply.
a)The read value will correspond to the old value
b) The read value will correspond to the newly written value
c) The read value could correspond to the newly written value
d) The read value could correspond to the old value
Question 3 Immagine that you have a branch instruction with an offset equal to 1610 (00000000000100002), and the PC contains the address 3001010 If the branch is taken, which will be the new address stored in the PC?
a) 30074 b) 30030 c) 30026 d) 30078
Question 4 The multiplexer used to select the next instruction after a branch instruction is piloted by an AND port. Which are the input of this port?
a) The Opcode field from the instruction plus the ALU output
b) The branch signal from the ALU Control and the Zero signal from the ALU
c) The branch signal from the Control Unit and the Zero output from the ALU
d) The Zero output from the ALU and the PC
Question 5 The operation performed by the ALU, in case of an R-Type instruction, depends by a specific amount of bits. How many? a) 6 b) 2 c) 12 d) 8 Question 6 Which of these sentences is TRUE? Select all that apply.
a) Any stage of a pipelined processor has a different clock cycle time
b) Pipelining improves the throughput of the instructions and in the same time increases the execution time of a single instruction
c) Pipelining improves the execution time of a single instruction
d) Pipelining improves the throughput of the instructions but doesn\'t increase the execution time of a single instruction
Question 7 Which of these instructions could cause a Data Hazard? Select all that apply.
a) add $s3, $zero, $s4
b) sub $t4, $s1, $s2
c) lw $t0, offset($s3)
d) beq $t0, $t1, offset
Question 7 Which of these instructions could cause a Control Hazard? Select all that apply.
a) add $s3, $t1, $s4
b) beq $t1, $t2, offset
c) sub $t1, $t2, $t3
d) sw $s1, offset($s4)
Solution
Answer :
Question 1 Which kind of element is the ALU (Arithmetic Logic Unit)? Sequential, combinational, or both?
a) Both
b) Sequential
c) Combinational
Answer :
c) Combinational
Explanation :
Arithmetic Logic Unit(ALU) is Combinational Element.An ALU is a digital circuit that performs arithematic and logical operations.A single CPU contains multiple ALU\'s.
............................
Question 2 If a signal is written at the same time it is read, what could be the read value? Select all that apply.
a)The read value will correspond to the old value
b) The read value will correspond to the newly written value
c) The read value could correspond to the newly written value
d) The read value could correspond to the old value
Answer :
c) The read value could correspond to the newly written value.
d) The read value could correspond to the old value.
Explanation :
If a signal is written at the same time it is read, the value of the read could correspond to the old value,the newly written value or both mix.

