Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem 2 (60 Points) Design a MIPS processor supporting only the R-type and the jset rs, rt, rd instructions. The jset rs, rt, rd instruction

Problem 2 (60 Points)

Design a MIPS processor supporting only the R-type and the jset rs, rt, rd instructions. The jset rs, rt, rd instruction does the following: If rs is not equal to rt, the next PC is the memory content at rs-rt and rd is set to be rs-rt; otherwise, the next PC is PC+4 and register $ra is also set to be PC+4. Recall that $ra is the special register, $31, used in the jal instruction. For example, If rs and rt are 20 and 8 respectively, rs != rt so rd will be 12 and PC will be the memory content at 12. If rs and rt are 20 and 20 respectively, rs == rt so rd will not change and PC and $ra will be set to PC+4 Assume that the opcode of R-type is 000000 and the opcode of jset is 100000.

a) (40 points) Show the data path of this processor using the following components. Add 2-1 MUX when necessary. Beside each group of wires, show the indices of the bits being used.

b) (20 points) Consider the control signals for the 2-1 MUX. Fill in the following table (you should not need more than 4 2-1 MUXes). In the case of a dont care, write down a 0. Then determine the logic functions for each MUX. Specific bits in the instruction can be denoted as, for example, ins[31]. The ALU zero output can be referred to as z. Make sure to label your MUXes correctly.

image text in transcribed

Problem 2 (60 Points) Design a MIPS processor supporting only the R-type and the jset rs, rt, rd instructions. The jset rs, rt, rd instruction does the following: If rs is not equal to rt, the next PC is the memory content at rs-rt and rd is set to be rs-rt; otherwise, the next PC is PC+4 and register Sra is also set to be PC+4 Recall that Sra is the special register, $31, used in the jal instruction. For example, If rs and rt are 20 and 8 respectively, rs != rt so rd will be 12 and PC will be the memory content at 12 If rs and rt are 20 and 20 respectively, rs-- rt so rd will not change and PC and Sra will be set to PC+4 Assume that the opcode of R-type is 000000 and the opcode of jset is 100000 a) (40 points) Show the data path of this processor using the following components. Add 2-1 MUX when necessary. Beside each group of wires, show the indices of the bits being used. Registers Memary b) (20 points) Consider the control signals for the 2-1 MUX. Fill in the following table (you should not need more than 4 2-1 MUXes). In the case of a "don't care", write down a 0. Then determine the logic functions for each MUX. Specific bits in the instruction can be denoted as, for example, ins/31/. The ALU zero output can be referred to as "z" Make sure to label vour MUXes correctly R-type | jset (rs-rt) | jset (rs-rt) MUXCtrll MUXCtr12 MUXCtrl3 MUXCtrl4 Problem 2 (60 Points) Design a MIPS processor supporting only the R-type and the jset rs, rt, rd instructions. The jset rs, rt, rd instruction does the following: If rs is not equal to rt, the next PC is the memory content at rs-rt and rd is set to be rs-rt; otherwise, the next PC is PC+4 and register Sra is also set to be PC+4 Recall that Sra is the special register, $31, used in the jal instruction. For example, If rs and rt are 20 and 8 respectively, rs != rt so rd will be 12 and PC will be the memory content at 12 If rs and rt are 20 and 20 respectively, rs-- rt so rd will not change and PC and Sra will be set to PC+4 Assume that the opcode of R-type is 000000 and the opcode of jset is 100000 a) (40 points) Show the data path of this processor using the following components. Add 2-1 MUX when necessary. Beside each group of wires, show the indices of the bits being used. Registers Memary b) (20 points) Consider the control signals for the 2-1 MUX. Fill in the following table (you should not need more than 4 2-1 MUXes). In the case of a "don't care", write down a 0. Then determine the logic functions for each MUX. Specific bits in the instruction can be denoted as, for example, ins/31/. The ALU zero output can be referred to as "z" Make sure to label vour MUXes correctly R-type | jset (rs-rt) | jset (rs-rt) MUXCtrll MUXCtr12 MUXCtrl3 MUXCtrl4

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_2

Step: 3

blur-text-image_3

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 Processing Fundamentals Design

Authors: Marion Donnie Dutton Don F. Seaman

14th Edition Globel Edition

1292107634, 978-1292107639

More Books

Students also viewed these Databases questions

Question

2. Identify issues/causes for the apparent conflict.

Answered: 1 week ago

Question

Explain the function and purpose of the Job Level Table.

Answered: 1 week ago