Question: A computer with a RISC ISA has 3 2 - bit long instructions, 3 2 registers and up to one destination and two source operands
A computer with a RISC ISA has bit long instructions, registers and up to one destination and two
source operands per instruction. Arithmetic and logical instructions have one register output; in addition they
either take two registers inputs or one register and one immediate input. There are sixteen arithmetic and
logical operations, each available in registeronly and registerimmediate forms, for a total of instructions.
All arithmetic and logical instructions use a separate function field in the instruction format to specify one
of ALU functions. There are sixty combinations to be encoded in the main opcode field. Two of these
are used to specify registeronly and registerimmediate instructions.
a Draw one possible instruction format. What is the maximum length of the immediate field for
arithmetic and logical instructions?
b An alternate instruction encoding is possible for exactly the same set of instructions. In this
alternate no separate function field is present; instead the ALU instructions are completely specified
by the new main opcode field. Draw one possible instruction format. What is the new length of the
main opcode field? What is the new maximum length of the immediate field?
c What is the maximum length of PCrelative displacement in unconditional jump instructions with
the instruction format in part a In part b Assume fixedfield decoding; ie each instruction
format field is present in the same position in all the instructions that contain that field.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
