Assignment No 08 - Solution - Ex6.1 - Computer Architecture
Assignment No 08 - Solution - Ex6.1 - Computer Architecture
Assignment no 08:
Chapter 6: Architecture
Note: You can check the exercises after the Chapter. In our assignment, we are using the
2nd Edition of “Digital Design and Computer Architecture” By David and Sarah Harris.
Exercise 6.1 Give three examples from the MIPS architecture of each of the
architecture design principles: (1) simplicity favors regularity; (2) make the
common case fast; (3) smaller is faster; and (4) good design demands good
compromises. Explain how each of your examples exhibits the design principle.
Solution:-
(1) Simplicity favors regularity:
• Each instruction has a 6-bit opcode.
• MIPS has only 3 instruction formats (R-Type, I-Type, J-Type).
• Each instruction format has the same number and order of operands (they
differ only in the opcode).
• Each instruction is the same size, making decoding hardware simple.
(2) Make the common case fast.
• Registers make the access to most recently accessed variables fast.
• The RISC (reduced instruction set computer) architecture, makes the com-
mon/simple instructions fast because the computer must handle only a
small number of simple instructions.
• Most instructions require all 32 bits of an instruction, so all instructions are
32 bits (even though some would have an advantage of a larger instruction
size and others a smaller instruction size). The instruction size is chosen to
make the common instructions fast.
(3) Smaller is faster.
• The register file has only 32 registers.
The ISA (instruction set architecture) includes only a small number of com-
monly used instructions. This keeps the hardware small and, thus, fast.
• The instruction size is kept small to make instruction fetch fast.
Page 1 of 2
Faculty of Computers and Artificial Intelligence
CS222: Computer Architecture
---------------------------------------------------------------------------------------------------
Page 2 of 2