Question

5. Suppose we have a 32-bit computer with an instruction set that supports immediate instructions as...

5. Suppose we have a 32-bit computer with an instruction set that supports immediate instructions as shown below:

Opcode Source Register Destination Register immediate

6 bits 5 bits 5 bits 16 bits

(a) How many registers at most does this computer have? (5%)

(b) How many operations at most can this computer have? (5%)

(c) What is the range of the number in the “immediate” field in 2'scomplement format? (5%)

Homework Answers

Answer #1

SOL:

Given computer = 32 bits

Opcode = 6bits

Source Register = 5 bits

Destination Register = 5 bits

Immediate field = 16bits

a) The no of register the computer have = 2no of register bits

here Source Register = 5 bits, Destination Register = 5bits

5 bits are allocated for registers

No of register bits = 5

The no of registers the computer have = 25 = 32

so No of registers = 32

b) The no of operations the computer have = 2no of bits in opcode

= 26

= 64

so No of operations the computer have = 64

c) Given immediate field = 16 bits

The range of 2's complement format of n bits = -2n-1 to +(2n-1 -1)

The range of number in immediate field in 2's complement format is = -216-1 to +(2n-1 -1)

= -215 to +(216-1 -1)

= -215 to +(215 -1)

= -32,768 to 32,767

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Design an expanding opcode instruction set for a computer having 18-bit instructions and the following types...
Design an expanding opcode instruction set for a computer having 18-bit instructions and the following types of instructions. There are 16 CPU registers and 16 bit addresses a. T1: 63 instructions with three registers referenced b. T2: 15 instructions with an 8 bit constant value c. T3: 16 instructions with one register reference
A digital computer has a memory unit with 32 bits per word. The instruction set consists...
A digital computer has a memory unit with 32 bits per word. The instruction set consists of 147 different operations. All instructions have an operation code part (opcode) and two address fields: one for a memory address and one for a register address. This particular system includes eight general-purpose, user-addressable registers. Registers may be loaded directly from memory, and memory may be updated directly from the registers. Direct memory-to-memory data movement operations are not supported. Each instruction stored in one...
Computer archieture 1. Let us assume we have such a machine. The physical RAM has 32...
Computer archieture 1. Let us assume we have such a machine. The physical RAM has 32 bytes, and is evenly divided into 4 pages. The virtual memory has 16 pages. The content in the page table and physical RAM is shown below Physical RAM Page Num Page data 3 11 ~QWERTYU 2 10 IOPASDFG 1 01 HJKLZXCV 0 00 BNM<>[]? Page table 15 0 14 0 13 0 12 1 01 11 0 10 0 9 1 11 8 0...
Suppose some 32-bit microprocessor and some 16-bit microprocessor have the same bus cycle. If a program...
Suppose some 32-bit microprocessor and some 16-bit microprocessor have the same bus cycle. If a program consists of 100 operands and instructions, of which 50% are 32 bits and 50% are 16 bits long, it is better to use a 32-bit microprocessor when running this program on two microprocessors. -How fast is it compared to using a bit microprocessor?
1. Suppose we have a 32KB direct-mapped data cache with 32-byte blocks. a) Show how a...
1. Suppose we have a 32KB direct-mapped data cache with 32-byte blocks. a) Show how a 32-bit memory address is divided into tag, index and offset. Show clearly how many bits are in each field. b) How many total bits are there in this cache? 2. Suppose we have a 8KB direct-mapped data cache with 64-byte blocks. a) Show how a 32-bit memory address is divided into tag, index and offset. Show clearly how many bits are in each field....
Write a sequence of two instructions that copies bits 0-5 from AL to bits 0-5 in...
Write a sequence of two instructions that copies bits 0-5 from AL to bits 0-5 in BL. Bits 6-7 in BL should be cleared, and AL should be unchanged             Mov al, bl       And 00111111, bl       Write a sequence of two instructions that copies the integer in bits 4-7 from AL register into bits 0-3 of the BL register. Upper 4 bits of AL and BL will be cleared             Shr al, 4       Mov bl,...
Item 5 In the case below, the original source material is given along with a sample...
Item 5 In the case below, the original source material is given along with a sample of student work. Determine the type of plagiarism by clicking the appropriate radio button. Original Source Material Student Version Suppose you study a group of successful companies and you find that they emphasize customer focus, or quality improvement, or empowerment; how do you know that you haven't merely discovered the management practice equivalent of having buildings? How do you know that you've discovered something...
As you saw from the lab PowerPoint slides last week, you will be doing a research...
As you saw from the lab PowerPoint slides last week, you will be doing a research study looking at ‘Aggression Priming” for your first paper. For this week’s discussion, I want you to discuss with your group what you think this study is about. What is the hypothesis? What theory does it come from? What do you predict will happen (do you expect something different than the hypothesis in the researcher instructions? If so, what and why?)? Do you think...
Read the LDC Cloud Systems Case Study and answer the question below: THE EMAIL The email...
Read the LDC Cloud Systems Case Study and answer the question below: THE EMAIL The email had been sent from one mid-level accounting manager at headquarters to another about six months earlier. The message read: Bill, here are the accounting issues I mentioned, and as you know, some of these go back a ways. The data that supports these accounts are not always clear and keep changing, and we are not sure what the correct accounting treatment is for these...
What tools could AA leaders have used to increase their awareness of internal and external issues?...
What tools could AA leaders have used to increase their awareness of internal and external issues? ???ALASKA AIRLINES: NAVIGATING CHANGE In the autumn of 2007, Alaska Airlines executives adjourned at the end of a long and stressful day in the midst of a multi-day strategic planning session. Most headed outside to relax, unwind and enjoy a bonfire on the shore of Semiahmoo Spit, outside the meeting venue in Blaine, a seaport town in northwest Washington state. Meanwhile, several members of...