Preview

Designing a mini MIPS machine

Satisfactory Essays
Open Document
Open Document
500 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Designing a mini MIPS machine
Designing a mini MIPS machine
The descriptive text of the MIPS machine and the 16-bit ALU

Regarding the 16-bit ALU design:
The ALU design is composed of 16 1-bit ALUs. Each 1-bit ALU performs 5 functions AND, OR, Addition, Subtraction and Rotate left one bit.
The ALU has 3-bit control lines, 2 bits for the ALU operation control line, which determines which one from the 5 operations will be executed at the ALU. The other 1-bit is for the Binvert control line, which determines if the operation is addition (Binvert = 0) or subtraction (Binvert = 1).
In addition it has two 16-bit inputs, a 16-bit output, a 1-bit overflow and a 1-bit Zero output, which is set to 1 when all bits of the Result are 0.

Regarding the MIPS machine components, it is composed of the following components:
Register file which contains 4 registers, 16-bit long, numbered 0 - 3.
Program counter PC: 16 bits.
Instruction Memory: Byte addressing, 16-bit word and 16-bit address.
Data Memory: Byte addressing, 16-bit word and 16-bit address.
ALU: 16 bit.
ALU control unit.
Main control unit.
Sign extend unit.
2 Shift left units (for the purpose of branch and jump).
Multiplexes.
AND gate for the branch logic.
Regarding the MIPS machine performance, it typically performs the following:
4 R-format Instructions (add, sub, and, or), which execute the operation on two registers values and write the result on the third register.
6 I-format Instructions (lw, sw, beq, bne, addi, rol),which has an address /immediate field that needs a sign extend unit to extend the 8 bit address/offset or value to a 16 bit value as an input to the ALU.
A j-format instruction (Jump) which has only the address field in addition to the opcode field.

Regarding the control signals derived from each instruction:

Each control signal is a 1 bit control signal except for the ALU Op signal which is 3 bits.
Signal name
Effect when deasserted (0)
Effect when asserted (1)

RegWrite

None
The register

You May Also Find These Documents Helpful

  • Satisfactory Essays

    SD1230 Lab 1

    • 239 Words
    • 2 Pages

    2. What type of instruction is used to execute different code based on a condition? -Jumps…

    • 239 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    b. 1 represents a bit that is turned ON. 0 represents a bit that is turned OFF. (pg. 8)…

    • 388 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    En1320 Unit 1 Research Paper 1

    • 27742 Words
    • 111 Pages

    The code in Figure 2-8 shows that even a simple operation, such as the addition of two…

    • 27742 Words
    • 111 Pages
    Powerful Essays
  • Satisfactory Essays

    Unit 1&2 Discussion

    • 379 Words
    • 2 Pages

    Access control is typically achieved by reserving a collection of bits within the general “Flag Register” to indicate the current “access control level”. Certain instructions are restricted so that they are only legal if the “access control level” is at least some minimum value; otherwise the instruction generates an “illegal operation” interrupt.…

    • 379 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    CTR 212 Assignment 2

    • 818 Words
    • 5 Pages

    Digital circuits can easily distinguish between two voltage levels, which can be related to the binary digits 1 and 0. Therefore, the binary system can easily be applied to PLCs and computer systems.…

    • 818 Words
    • 5 Pages
    Powerful Essays
  • Satisfactory Essays

    Output and 3n 2n 1n

    • 1607 Words
    • 25 Pages

    7. Interpret a datasheet for the Quartus 74148 encoder and complete the following timing diagram. (5 points)…

    • 1607 Words
    • 25 Pages
    Satisfactory Essays
  • Powerful Essays

    Altera Quartus Experiment

    • 19294 Words
    • 78 Pages

    The Adder/Subtractors main function and working principles were defined in an AHDL file with name…

    • 19294 Words
    • 78 Pages
    Powerful Essays
  • Satisfactory Essays

    ect114

    • 1514 Words
    • 7 Pages

    Encoding is used to generate a coded output (such as BCD or binary) from a singular active numeric input line.…

    • 1514 Words
    • 7 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Logic gates

    • 1375 Words
    • 5 Pages

    Activity 6.3.2 Logic Gates Introduction A two-valued number system is the basis for all of the powerful computers and electronic devices in the world. Those two values are 0 and 1. Everything in the digital world is based on this binary system. While it seems very simple, the binary system is used to create the logic that dictates the actions of complex and simpler digital systems. But how do processors know what to do with all of those 0s and 1s Gates are used. Gates process the 0s and 1s and react based on how they are designed to function. When many gates are combined, computers can solve complex problems by using the logic set forth by the combination and order of the gates. Equipment Logic Gates presentation Gateway To Technology notebook Procedure You will decipher and create logic statements to compare conditions with outputs. Your instructor will present Logic Gates.ppt while you complete this document. Digital Signals Describe how digital signals are represented. The columns below represent 8 segments of time. Each time segment can hold a digital signal. Trace a wave pattern to represent the binary number 10001101. Complete the chart for the NOT Gate. SymbolFunction A logic gate that changes its input logic level to the opposite stateTruth Table A Y 0 1 1 0 Complete the chart for the AND Gate. SymbolFunction SHAPE MERGEFORMAT A logic circuit whose Inputs both 1 then, Output 1Truth Table A B Y 0 0 0 0 1 0 1 0 0 1 1 1 Logic Word Problem (Original Example) If I am hungry and it is 500 p.m., then I will eat dinner. In your GTT notebook, sketch a circuit diagram that behaves like an AND Gate using a battery, two switches, and an LED output. Complete the chart for the OR Gate. SymbolFunction SHAPE MERGEFORMAT A logic circuit when Either Input 1 then, Output 1Truth Table A B Y 0 0 0 0 1 1 1 0 1 1 1 1 Logic Word Problem (Original Example) In your GTT notebook, sketch a circuit diagram that behaves like an OR Gate using a battery, two switches,…

    • 1375 Words
    • 5 Pages
    Satisfactory Essays
  • Better Essays

    Assembly language enables programmers to relate op codes using symbolic names in place of numbers to perform an instruction or input a piece of data. Programmers can inscribe op codes using purposeful words like JUMP, CLEAR, and ADD as an alternative to cryptic binary codes consisting of series of 0s and 1s. An example of assembly language, machine language and its meaning are listed in the book called, “Invitation to Computer Science” (Schneider & Gersting, 2013, pp. 285, fig. 6.5). In figure 6.5, assembly language is clearly easier to comprehend than machine language, which makes assembly language user friendly.…

    • 2002 Words
    • 9 Pages
    Better Essays
  • Good Essays

    Chapter 2 Review

    • 762 Words
    • 4 Pages

    Control unit: it role is to sequentially accesses program instructions, decodes them, and coordinates the flow of data in and out of the ALU, the registers, the primary storage, and even secondary storage and various output devices.…

    • 762 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Binary Code

    • 597 Words
    • 3 Pages

    As you can see, these abbreviations stand for a specific number of bytes. And each byte holds 8 bits capable of forming 256 combinations of 1/0. Wow!…

    • 597 Words
    • 3 Pages
    Good Essays
  • Good Essays

    4017B Pin Connections

    • 2610 Words
    • 12 Pages

    Just one of the individual outputs is HIGH at a time. This is quite different from the behaviour of a BCD counter like the 4510 in which it is the combination of 0's and 1's which represents the count.…

    • 2610 Words
    • 12 Pages
    Good Essays
  • Powerful Essays

    Report 471

    • 2371 Words
    • 10 Pages

    + Each bit from 32 register will send to the Multiplexor block and, this block will receive 32 bits from each register each time. + The Read Register 1 and 2 will choose which bit from 32 register will be read out in Read Data 1 and 2 from the Multiplexor block. + 32 register are designed from the DFF, each register has 32 bits, each bit is 1 DFF…

    • 2371 Words
    • 10 Pages
    Powerful Essays
  • Powerful Essays

    In contrast to analog signal, a digital signal exists only at specific levels or states and changes its level in discrete steps. An analog signal and digital signal are illustrated in the following figure…

    • 1697 Words
    • 7 Pages
    Powerful Essays

Related Topics