2. (15 pts) For the following control signals, C2C1 and C5C4 are used to select
ID: 2268166 • Letter: 2
Question
2. (15 pts) For the following control signals, C2C1 and C5C4 are used to select source register R[0]-R[3]. Ca and C6 is used for Din selection. If C3-1, MUXI output is Din. If C6-1, MUX2 output is Din Cg, C7 are used for the 2 bit binary decoder to select destination register C11C10C9 are used for ALU selection, and the details are listed in the following table Control 000 00010 0 100 101 Operation AB A+B AAB A-B(AB)(A+B) A B A/B l) If C1C10C9CgC7CCC4C3C2C1 2) 11011010001, describe the corresponding register transfer and ALU operation. If C11C10C9CgC7CgCgC4C3GG=011000 1 1 001, describe the corresponding register transfer and ALU o To accomplish R[3] R [2]-Din, what control signals should be used? peration. 3) 4) 5) To accomplish RI 2] RI 21/RI01, what control signals should be used? To accomplish R[0] R[2]2 + R [1], how many steps do we need? What are the control signals for each step? CC TP bit binary decode Mux215..1 R[21 T. R[1]15.0> T. R[0] ALU[31.0]k 15.0> B-M2out A1.0>Explanation / Answer
1. C2C1 = 01, C5C4 = 10, C3 = 0 where as C6 = 0
Hence Mux1 output A = R1 & Mux2 output B = R2
C11C10C9 = 110, ALUout = (A * B) = R1 * R2
C8C7 = 11, destination register will be R3
2. C2C1 = 01, C5C4 = 11, C3 = 0 where as C6 = 0
Hence Mux1 output A = R1 & Mux2 output B = R3
C11C10C9 = 011, ALUout = R1 – R3
C8C7 = 00, destination register will be R0
3. To accomplish R[3] <- R[2] - Din
Mux1 output A = R[2]need C2C1 = 10, C3 = 0 & Mux2 output Din need C5C4 = XX (say 00) , C6 = 1
ALUout = R[2] - Din need C11C10C9 = 011
Destination register R[3] need C8C7 = 11
Hence C11C10C9C8C7C6C5C4C3C2C1 = 01111100010
4. To accomplish R[2] <- R[2] / R[0]
Mux1 output A = R[2]need C2C1 = 10, C3 = 0 & Mux2 output = R[0] need C5C4 = 00 , C6 = 0
ALUout = R[2] / R[0] need C11C10C9 = 111
Destination register R[2] need C8C7 = 10
Hence C11C10C9C8C7C6C5C4C3C2C1 = 11110000010
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.