Question: A given processor has 32 registers, uses 16 -bit immediate values, and has 200 instructions in its ISA. In a given program, 20% of the

 A given processor has 32 registers, uses 16 -bit immediate values,

A given processor has 32 registers, uses 16 -bit immediate values, and has 200 instructions in its ISA. In a given program, 20% of the instructions take one input and one output register, 30% take two input and one output register; 25% take one input and one output register and an immediate input as well, and the remaining 25% take one immediate input and one output register. a) For each of the four types of instructions, how many bits are required to encode it? b) For each of the four types of instructions, round up the result to nearest byte. c) How much less memory would the program take up if a variable length instruction set encoding is used as opposed to a fixed-length encoding

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!