Documente Academic
Documente Profesional
Documente Cultură
Statement
A microprocessor (MP) Instruction Set has to meet the following design criteria:
1. Please provide a minimum number of addressing modes for MP, please explain reasons for your
selection (5 points)
Immediate, Register and displacement . Other modes can be generated from these 3 modes. Use of either
address = 0 or value in R = 0 results in one of the missing modes
2. Answer the following while selecting an optimal length for instructions of MP (10 points)
a. Should MP follow orthogonality? Please explain. (2 points)
c. If you are using mode bits then why and how many? (4 points)
3 bits to maintain orthogonality. 2 for 3 addressing modes + 1 for register set. But if we restrict the use of
register sets for 3 register instruction only then 2 bits should be enough
4. How can you decrease the length of the instruction that you have chosen in question 2 while still
meeting the design criteria of the statement points above, please explain (6 points)
a. Use of an Accumulator will provide 20 bit direct addressing for 30 bit instruction length
5. Mode bit coding:
Mode code Purpose
00 Immediate mode with first register set
01 Displacement mode with first register set only
10 Register mode with register set A
11 Register mode with register set B