0% found this document useful (0 votes)
14 views2 pages

Assignment No 08 - Solution - Ex6.1 - Computer Architecture

The assignment focuses on MIPS architecture and its design principles as outlined in Chapter 6 of 'Digital Design and Computer Architecture.' It provides examples for four principles: simplicity favors regularity, making the common case fast, smaller is faster, and good design demands good compromises, with explanations for each. The document emphasizes the benefits of MIPS's design choices, such as instruction formats and register usage, in enhancing performance and efficiency.

Uploaded by

muhammedtarek160
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views2 pages

Assignment No 08 - Solution - Ex6.1 - Computer Architecture

The assignment focuses on MIPS architecture and its design principles as outlined in Chapter 6 of 'Digital Design and Computer Architecture.' It provides examples for four principles: simplicity favors regularity, making the common case fast, smaller is faster, and good design demands good compromises, with explanations for each. The document emphasizes the benefits of MIPS's design choices, such as instruction formats and register usage, in enhancing performance and efficiency.

Uploaded by

muhammedtarek160
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Faculty of Computers and Artificial Intelligence

CS222: 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

(4) Good design demands good compromises.


• MIPS uses three instruction formats (instead of just one).
• Ideally all accesses would be as fast as a register access, but MIPS archi-
tecture also supports main memory accesses to allow for a compromise be-
tween fast access time and a large amount of memory.
• Because MIPS is a RISC architecture, it includes only a set of simple in-
structions, it provides pseudocode to the user and compiler for commonly
used operations, like moving data from one register to another (move) and
loading a 32-bit immediate (li).

---------------------------------------------------------------------------------------------------

Page 2 of 2

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy