Question: Please solve and explain in depth Practice Problems for Processor 3 . The instruction code of a special - purpose processor s ISA uses 1
Please solve and explain in depth
Practice Problems for Processor
The instruction code of a specialpurpose processors ISA uses bits to accommodate groups of
instructions: memory reference instructions, register reference instructions, and IO instructions. The
instruction format is to be designed for processors with a main memory of k bit words ie
addressable in word Memory reference instructions are all oneaddress instructions with two
addressing modes direct and indirect for the address, and there are a total of memory reference
instructions. The processors will have registers with register reference instructions. The register
reference instructions have both oneaddress and twoaddresses instructions with two addressing
modes register direct and register indirect for each register address in a register reference instruction.
There need to be input instructions and output instructions.
The design of the instruction format for this computer has been partially done as follows:
Denote bit the instruction code by R R R
a A memory reference instruction has address bits R R R R is the bit for indicating
the address mode of a memory reference instruction with R indicting direct mode and R
indicating indirect mode.
b When R the instruction is a memory reference instruction. When R the instruction is
either a register reference instruction or an IO instruction.
c For a register reference instruction, we set aside the bits RR R for the address bits for
both oneaddress and twoaddresses instructions with a oneaddress instruction being specified by
RRRRRRRR Bits R R are used as the addressingmode bits for register reference
instructions with R indicating register direct mode for bits RRRR and R indicating
indirect register mode for bits RRRR; R indicating register direct mode
for bits
RRRR and R indicating indirect register mode for bits RRRR
d For an IO instruction, bit R is the IorO bit with R indicating an input instruction and R
indicating an output instruction. Bits R R specify the IO operation, and the bits R R R R
RR specify the portdevice involved in the input or output operation.
With the partial design of instruction format, answer the following questions.
i Give a design of the instruction bits R R RRR so that both the register
instructions can be accommodated and an indication of a register instruction or IO instruction can
also be provided.
i i What is the maximal number of input portsdevices this ISA allows?
iii To carry out a direct addressing memory reference instruction, how many references to memory is
needed? Suppose no virtual memory and the instruction is already in CPU and decoded How
many memory references is needed for an indirect address instruction?
iv If the memory address has content what is effective address
of the instruction
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
