Q4.1 Fill in the blank with explanation

Computer Science
Tutor: None Selected Time limit: 1 Day

A 16-bit ISA has the following format:  <OPCODE><DR><SR0><SR1> where DR is the Destination register and SR0 and SR1 are source registers. If the ISA defines 16 registers then the maximum number of opcodes support by this format is ________.

Oct 1st, 2015

Thank you for the opportunity to help you with your question!

ISA defines 16 registers which means each register is 4-bit in size ( since, 2^4 = 16)

<OPCODE> <DR> <SR0> <SR1> = 4-bit  + 4-bit + 4-bit + 4-bit = 16-bit ISA

OPCODE = 4-bit

Hence, maximum number of opcodes supported by this format is ,2^Iopcode sizeI =2^4 = 16

Please let me know if you need any clarification. I'm always happy to answer your questions.
Oct 1st, 2015

So, for example:

Binary 0101 000 1101 0100

0101 = OPCODE = 4 bits = 2^4

0000 = DR            = 4 bits = 2^4

1101 = SR0          = 4 bits = 2^4

0100 = SR1          = 4 bits = 2^4

and the maximum number of opcodes is 4 bits ?

I though in binary in 0101 is 2^3 at the far end left because

0=2^3, 

1=2^2, 

0=2^1, 

1=2^0

I really confuse. and my 2nd though is:

Is it talking about how many possible registers can it takes in how many bits? like:

bit binary.JPG 

Am I right about the 2nd though?

So the answer is 4 bits?

Oct 1st, 2015

In the question it was mentioned that there are 16 registers which means each register can be represented by 4 - bits.

and ISA is <OPCODE> <DR> <SR0> <SR1> which is16bits

<OPCODE> + 4 + 4 + 4 = 16

<OPCODE> = 16 -12 = 4 bits

OPCODE is represented by 4-bits

So, maximum number of opcodes supported by this format is nothing but number of  possibilities with four bits which is 2^4 = 16

As u mentioned, 0101 is one representation in binary. You can have 16 such representations in binary with four bits


Oct 2nd, 2015

I'm still not quite sure the answer.

Is it 4 bits OR 16 possibilities?

Oct 2nd, 2015

The answer is 16 number of opcodes

Oct 3rd, 2015

Studypool's Notebank makes it easy to buy and sell old notes, study guides, reviews, etc.
Click to visit
The Notebank
...
Oct 1st, 2015
...
Oct 1st, 2015
Mar 29th, 2017
check_circle
Mark as Final Answer
check_circle
Unmark as Final Answer
check_circle
Final Answer

Secure Information

Content will be erased after question is completed.

check_circle
Final Answer