Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Add Ada ALU Shin 2 Regst Branch Membad Instruction 191-26 Control ALLOR Mam write ALUSTO Read instruction 125 211 PC rhead Instruction 2016 Zara register

image text in transcribedimage text in transcribed

Add Ada ALU Shin 2 Regst Branch Membad Instruction 191-26 Control ALLOR Mam write ALUSTO Read instruction 125 211 PC rhead Instruction 2016 Zara register 2 ALU ALU Hod Instruction 31-01 Instruction memory head data 2 Add instruction 115-111 "HERO Writ Registers Data w memory retruction 15-01 Sign econd ALU contro Instruction 15-01 Instruction operation Desired ALU action Funct field xxxxxx Instruction opcode LW SW Branch equal R-type R-type R-type R-type R-type ALUOP 00 00 01 10 10 10 10 10 add add subtract add load word store word branch equal add subtract AND OR set on less than ALU control Input 0010 0010 0110 0010 0110 0000 0001 0111 100000 100010 100100 100101 101010 subtract and or set on less than Field 0 Bit positions 31:26 3. R-type instruction rt 20:16 Shamt 1006 funct 5:0 25:21 15:11 Field 35 or 43 rs Bit positions 31:26 25:21 b. Load or store instruction address 15:0 20:16 Field 4 Bit positions 31:26 c. Branch instruction address 150 25:21 20:16 Assume that the instruction (add $s1,$s2,$s3) is executed, assume that its address is 300 and assume that sl=7 s2=9, s3=10 i. What value will be written into the PC in the beginning of the next cycle? ii. Which control lines will be set to increfer to the CPU design Figure above)? h. Assume the instruction (sw $50, 8(St3)) is executed in this CPU. Assume that s08=100 and St3=100 i. What values will be in the inputs of the main ALU? ii. What will be passed into the data input port of the data memory? iii. What will be passed into the address input port of the data memory? iv. What are the bit values of the input lines of the control unit? v. Which control lines will be set to 1? i. Given the instruction (beg St], $t2..label is executed. Assume that its address is 400, St1=9 and $t2=2? Assume that the label is +20mbytes from this keg instruction. i What operation will be executed by the main ALU? ii. What will be the value for the zero output of the ALU? 111. What will be the bit value of the output of the sign extend circuit? iv. What will be the new PC value

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Technology And Management Computers And Information Processing Systems For Business

Authors: Robert C. Goldstein

1st Edition

0471887374, 978-0471887379

More Books

Students also viewed these Databases questions