Question: The following instruction set is supported by a simple processor with a few new instructions added. The format of most instructions is defined as follows.

 The following instruction set is supported by a simple processor with

a few new instructions added. The format of most instructions is defined

The following instruction set is supported by a simple processor with a few new instructions added. The format of most instructions is defined as follows. bits 15:14 13:10 9 8:6 5:3 2:0 Srci src2 dst unused. opcode w field where the fields are defined as follows. opcode: operation to be performed by the processor w: write back ALU output to register file (1 -yes, 0 src1: address of the first ALU operand in the register file src2: address of the second ALU operandin the register file dst address in the register file where the output is written For opcodes B EQ, BL EZ and JUMP, the 6 least significant bits (5:0) give an address in the instruction memory, which is byte -addressed. The opcode HALT has all operand bits (9:0 being 0. When an instruction has only two operands, the field for the unused operand is filled with 0-bits. For example, bits (5:3) for SLL are all zero because src2 is not used. The opcode and meaning of these instructions are listed in the following table. opcode Binary encoding Operation SUB 0x1 RT src11-RIsrc21-e RI Ldst XOR. 0x6 RIsrcl 21 RI OR AND 0x8 RT RLdstl INCR. 0x9 If RIsrcij 0, branch to BAddr BRZ If R [srcij S0, branch too BLEZ 0XE JUMP Jump to JA OF Stop execution HALT

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!