Preview

lab2_SimpleALU

Satisfactory Essays
Open Document
Open Document
278 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
lab2_SimpleALU
Fre-E CSE471 - Computer Organization and Design
Semester 2 2012-2013
Danang University of Technology, Faculty of Electronics and Telecommunications
Prepared by Ho Viet Viet, Pham Xuan Trung and Nguyen Van Hieu
Lab2: Design a MIPS 32-bit ALU
Due Date:

Lab Objectives:
For this lab2 you are to design a simple 32-bit MIPS ALU. The ALU functions implemented are Addition, Subtraction, eXclusive OR, and Set on Less Than. Examples of this type of architecture is shown in chapter 4 of the textbook. The overall block diagram of your design will look like the figure below.

Bus A

32
Output

Bus B

32

ALU
32

Zero

Overflow

Carryout

Negative

ALU
2 Control

The ALU has 8 ports. These ports are the two input ports A and B, the output port, ALU control, zero detect output, overflow detect output, negative detect output, and the carryout output. The ALU control line assignments is given below. Please use these inputs to select the ALU function.

ALU CONTROL LINES
FUNCTION
00
Addiitiition
01
XOR
10
Sub
11
Slt

Note:
The Carryout and Overflow flags are very important for Addition and Subtraction. The Carryout flag is set if an unsigned overflow occurs. The Overflow flag is set if a signed overflow occurs.
The Zero and Negative flags are only important for Addition, Subtraction, and XOR. The Zero flag is set if the Output equals zero. The Negative flag is set if the most significant bit of the Output equals one.
What these flags do in the other cases is UP TO YOU.

Computer resources and software tools:
PCs with Software Quartus II, ModelSim, IVerilog installed, testbench: alustim.v
Lab Requirements (as in lab1)

You May Also Find These Documents Helpful

  • Satisfactory Essays

    LAb1Ecet230

    • 221 Words
    • 3 Pages

    1. Using the results of the compilation for the Design Project, what percent of the FPGA is used to implement the design.…

    • 221 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    cout << "Select the operator you want to work (+ for addition, - for subtraction , * for multiplication , / for division):- ";…

    • 426 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Lab1KKdoc

    • 511 Words
    • 3 Pages

    1-After a brain injury, the first step is to assess respiratory rate for rate, and depth and the cardiac system for rate and rhythm. Where is the respiratory and cardiac center located?…

    • 511 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Lab 1 1

    • 814 Words
    • 9 Pages

    Using the example in Figure 1-5 and the steps that followed, create a binary conversion for the decimal value 200.…

    • 814 Words
    • 9 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Lab 6 4

    • 386 Words
    • 2 Pages

    1. Radio signals attenuate through walls and obstacles. How would this affect AP placement in a home or office? Use your textbook and Internet research to justify your answer.…

    • 386 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Lab 1

    • 567 Words
    • 3 Pages

    Attacker would avoid detection by covering tracks step of the hacking process where they cover up their tracks in the system they hacked into.…

    • 567 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    Lab2

    • 520 Words
    • 3 Pages

    On your own and without assistance, complete this Lab 2 Answer Form electronically and submit it via the Assignments Folder by the date listed on your Course Schedule (under Syllabus).…

    • 520 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Lab 1

    • 464 Words
    • 2 Pages

    3. Depth of field is the distance between the nearest and the furthest objects that give an image its focus in a camera.…

    • 464 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Lab 1

    • 360 Words
    • 2 Pages

    1. The white charge producer has a positive (+) polarity. The blue charge producer has a negative (-) polarity.…

    • 360 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    lab 1

    • 433 Words
    • 2 Pages

    Purpose: Is to gain knowledge on how to use a microscope and oil immersion lens while observing prepared bacterial slides and also to prepare slides for observable bacteria culture from yogart.…

    • 433 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Lab 1

    • 414 Words
    • 2 Pages

    4. Why would you use a tool like DevManView while performing a computer forensic investigation?…

    • 414 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Lab 01 2

    • 374 Words
    • 3 Pages

    Name _________________________________________ Date _________________ Anthropology 301 Self-Paced Lab 1: Introduction to the Primates 1. Which of these items or features might be studied by a physical anthropologist? a. A ceramic pot from an early civilization.…

    • 374 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    lab 1

    • 1331 Words
    • 8 Pages

    Which of these would be a valid hypothesis? Select one: a. Humans are controlled by forces beyond our understanding. b. Humans and bacteria share a common genetic code. c. Humans should help in the conservation of other animal species.…

    • 1331 Words
    • 8 Pages
    Good Essays
  • Powerful Essays

    lab 1

    • 1137 Words
    • 7 Pages

    I know I haven’t passed the lab 1 H and B but I really do not want to lose points again just for the fact I didn’t get it done in time. I already lost -5 pts and I really don’t want to lose -20 pts.…

    • 1137 Words
    • 7 Pages
    Powerful Essays
  • Good Essays

    Lab 1

    • 753 Words
    • 3 Pages

    4- Do compliance laws, such as HIPAA or GLBA, play a role in AUP definition?…

    • 753 Words
    • 3 Pages
    Good Essays