Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Given a processor with the following Instructions, encoded using 16-bits Assume that you want to augment this ISA to support 20 additional and unique instructions

image text in transcribed

Given a processor with the following Instructions, encoded using 16-bits Assume that you want to augment this ISA to support 20 additional and unique instructions (e.g. MUL, AND, OR, etc..), while still keeping the instruction encoding as 16 bits. How will the execution and encoding of the ADD instruction be affected? (Other instructions could be affected too, but you just need to comment on how the ADD instruction will be mpcted.) Function R1d 16-bit encoding InstructionOpcode MOV r1, d Opcode (4 bits) Opcode (4 bits) Opcode (4 bits) Destination register (4 bits) Source register (4 bits) Destination register (4 bits) Address (8 bits) Address (8 bits) MOV d, r1 0001 Source R1 -r2+r3 Source register (4 bits) ADD r1,r2,r3 0010 register (4 bits) Constant Opcode (4 bits) Opcode 4 bits) Destination register (4 bits) Destination register (4 bits) MOV r1,#c 0011 (8 bits) Source R1 r2-r3 Source register (4 bits) SUB r1,r2,r3 0100 register (4 bits) Offset (8 bits) source register (4 bits) 1010 Opcode 4 bits) JMP r1,X PC+offset Given a processor with the following Instructions, encoded using 16-bits Assume that you want to augment this ISA to support 20 additional and unique instructions (e.g. MUL, AND, OR, etc..), while still keeping the instruction encoding as 16 bits. How will the execution and encoding of the ADD instruction be affected? (Other instructions could be affected too, but you just need to comment on how the ADD instruction will be mpcted.) Function R1d 16-bit encoding InstructionOpcode MOV r1, d Opcode (4 bits) Opcode (4 bits) Opcode (4 bits) Destination register (4 bits) Source register (4 bits) Destination register (4 bits) Address (8 bits) Address (8 bits) MOV d, r1 0001 Source R1 -r2+r3 Source register (4 bits) ADD r1,r2,r3 0010 register (4 bits) Constant Opcode (4 bits) Opcode 4 bits) Destination register (4 bits) Destination register (4 bits) MOV r1,#c 0011 (8 bits) Source R1 r2-r3 Source register (4 bits) SUB r1,r2,r3 0100 register (4 bits) Offset (8 bits) source register (4 bits) 1010 Opcode 4 bits) JMP r1,X PC+offset

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

More Books

Students also viewed these Databases questions

Question

c. How is trust demonstrated?

Answered: 1 week ago

Question

Have issues been prioritized?

Answered: 1 week ago

Question

d. How will lack of trust be handled?

Answered: 1 week ago