Question: Design a MIPS processor supporting only the lw and the mgt rs, rt, rd instruction. The mqt rs, rt, rd instruction does the following: if

Design a MIPS processor supporting only the lw and the mgt rs, rt, rd instruction. The mqt rs, rt, rd instruction does the following:

if rs >= rt, rd is set to be rs; otherwise the next PC is set to be rt.

For example,

- if rs and rt are 20 and 8 respectively, rd will be set to 20, and PC will be PC+4.

- if rs and rt are 20 and 32 respectively, rd will not be changed, and PC will be 32.

In this problem, the simplifying assumption is that the values in rs and rt are always in [-230,230].

For this problem, assume that the opcode of lw is 000000 and the opcode of mgt is 100000.

Recall that in MIPS, ALUCtrl is 0000 for and, 0001 for or, 0100 for add, 0110 for sub.

- (30 points) Show the data path of this processor, add 2-1 MUX when necessary. Besides a group of wires, please show clearly the indices of the bits.

- (20 points) The control signals include ALUCtrl, RegWrite, and the signals to control the added 2-1 MUX. Please fill in the table (you should not need more than 4 2-1 MUXes). In case of dont care, write down 0. Then write down the logic functions for RegWrite and the MUXCtrls. Certain bits in the instruction or in ALUResult can be denoted as instruct[31].

Design a MIPS processor supporting only the lw and the mgt rs,

lw

mgt (rs >= rt)

mgt (rs

ALUCtrl

RegWrite

MUXCtrl1

MUXCtrl2

MUXCtrl3

MUXCtrl4

Add 21 Read PC-+-- adress Read data 1 Zero . register 2 Instruction p1 ALU ALU Write Read Address Read resut register data 2 Write dats Registers memory Writo memory Add 21 Read PC-+-- adress Read data 1 Zero . register 2 Instruction p1 ALU ALU Write Read Address Read resut register data 2 Write dats Registers memory Writo memory

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!