Connecting Tech Pros Worldwide Forums | Help | Site Map

question on mips and code

Member
 
Join Date: Oct 2006
Posts: 57
#1: Sep 25 '07
hey I have a question on understanding a few things. Im trying to understand
the following structure of a instruction register.
Op code, Address-1, Address-2, are 6 bits, 18 bits, 18 bits respectively

What is the maximum number of distinct operation codes that can be recognized and executed by the processor on this machine?

would this be 64 which is base 2 to the 6th. or am i doing it wrong


What is the maximum memory size on this machine?

and would this be a 32bit machine?


im not sure so if anyone can tell me if im on the rt track

Savage's Avatar
Expert
 
Join Date: Feb 2007
Posts: 1,737
#2: Sep 25 '07

re: question on mips and code


Quote:

Originally Posted by gdarian216

hey I have a question on understanding a few things. Im trying to understand
the following structure of a instruction register.
Op code, Address-1, Address-2, are 6 bits, 18 bits, 18 bits respectively

What is the maximum number of distinct operation codes that can be recognized and executed by the processor on this machine?

would this be 64 which is base 2 to the 6th. or am i doing it wrong


What is the maximum memory size on this machine?

and would this be a 32bit machine?


im not sure so if anyone can tell me if im on the rt track

If the IR's OP code is 6 bytes then there are 64 different OP codes.
It should be 64bit machine,I think.

Savage
RRick's Avatar
Expert
 
Join Date: Feb 2007
Posts: 430
#3: Sep 25 '07

re: question on mips and code


The address size is only 18 bits, so in theory you'll only need an 18 bit machine. Your available memory is 2 ** 18 "things". "Things" depends on how big your basic chunk of data is.

We typically deal with 8 bit bytes, but your basic chunk could be 6 bits or whatever.
JosAH's Avatar
Expert
 
Join Date: Mar 2007
Posts: 10,611
#4: Sep 25 '07

re: question on mips and code


Quote:

Originally Posted by gdarian216

would this be 64 which is base 2 to the 6th. or am i doing it wrong

You're correct.

kind regards,

Jos
Reply