Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Design: Design an instruction set of a 1 6 - bit CPU that has only 1 6 instructions. Note that no two instructions in an
Design:
Design an instruction set of a bit CPU that has only instructions.
Note that no two instructions in an instruction set can be identical.
The length of the machine code for each of the instructions should be
bits. The instructions should belong to at least three different
formats. Make and state any necessary assumptions. Explain all the
design decisions.
In addition to everything you would like to include in the report, make
sure to include a list of registers, instruction formats, explanation on
why you have selected certain instructions, which registers an instruction
uses, etc.
Following are some key points that could be followed when working on
the project.
Decide how many registers the CPU is going to have. Aim to maximize
the number of registers. We have registers in LEGv processor.
Decide which instructions the CPU is going to have.
Decide which instruction format each of the instructions will use.
We have Rformat, Dformat, etc. for LEGv processor.
Decide the opcode for each of the instructions. Decide how many
bits are necessary to represent the opcodes and each of the registers.
LEGv processor uses bits for an opcode for Iformat instructions
and bits for a register.
Decide the instruction formats. Give each of the formats a name.
Decide the number of fields each of the instruction formats will have.
Give each of the fields a name and decide the number of bits that will
be used to represent them. It is not necessary that you have the same
instruction formats as in the textbook. Even if you try to use one of
the instruction format from the textbook, you not necessarily have to
have the same number of fields as in the textbook.
Decide how each of the instructions is represented in machine code.
Aim to minimize the number of unused bits in the machine code. Please
ensure that for each instruction, examples are provided in both assembly
and machine code. See Section of the textbook for machine code
representations of the instructions of LEGv processor.
It should be noted that you not necessarily have to use the same
fields or same number of fields to represent machine codes as used in
the textbook for LEGv processor.
Understand how all of the above are done in the textbook for a bit CPU.
You may like to consider only the concepts presented in Chapter of the
textbook when working on the project. For a set of sample instructions,
you may like to refer to pages of the textbook.
Beyond the textbook, you are not required to study or explore any
additional materials to complete the design project. If you, however,
decide to get ideas from other sources, such resources should be clearly
listed as a list of references.
The bit CPU with only instructions is not going to be a very useful
one but that is okay; we want to learn how to design.
Clarification:
The following two lines of code do not represent two different
instructions. They are two examples of an instruction.
ADD X X X
ADD X X X
Speaking in another way, the above code can be executed by the same
hardware. Therefore, they represent the same instruction.
How to start the project?
You are advised to do the following at first before you think about
doing the design project. This way you will i be benefited the most
for your time, ii have a good finished product in the end, and iii
enjoy the project or at least it will be less boring.
a Watch two videos from Chapter ;
b Read the relevant Sections from Chapter ;
c Try to understand everything from those sections from Chapter ;
d If you are not clear about something, repeat above steps and seek help
from the instructor;
e Read the assignment multiple times and try to understand every words.
Allocate some time over several days to master the materials from
Chapter and then work on the design project.
Your instructor welcomes questions from you. Every question is good.
If you would like to have an indepth conversation with your instructor
on the design project, it is highly recommended that you study all the
background materials in advance as listed above.
How long the report should be
Everyone will come up with their unique way of presenting the design.
As a result, the number of pages will vary from design to design.
There is no minimum or maximum page count requirement.
Pleasee design this project make
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started