Project 5:
The Challenge


Design, implement, and test an ALU that accepts two 8-bit binary integers as inputs and produces an 8-bit output.

Design:

                                                                              ALU block diagram
                                                 Figure 1: ALU Block Schematic Diagram                                                                                         



tsba
                                              Figure 2: Tri-State Buffer Array

A TSBA (Figure 6) is used to allow or restrict data flow through a data line/ bus. The above figure will explain the circuit of a Tri-state Buffer Array.


Procedure:
    1. Due to the hardware limitations of the DE0 board, the input variables are 4-bit binary numbers (A[3..0]) and (B[3..0]) generated using switches 0-3  and 4-7 on your DE board: SW0 = A0,..SW4=B0. The last 4 bits must be grounded properly to avoid incorrect results. Result will be displayed using the LEDs of DE-0 board.                                                                                                                                                                   bus naming
    2.                                    Figure 3: Naming bus-Node transition in Quartus

    3. Develop a 4-bit array multiplier design using Full Adders and logic gates. Use A[3..0] and B[3..0] as data input lines for multiplier block.
    4. Save multipler design as a symbol "Multiplier.bsf"
    5. You can use the adder/ Subtractor from Lab 4 as a block.
    6. The Function selector decides whether we are using multiplier block or adder/ subtractor block for processing out input data. Use SW17 for this.
    7. The add/sub control decides whether you want to add or subtract. Use SW16 for this.
    8. Using Quartus Prime  create the  schematic, simulate and verify your implementation.  Show results for at least 6 different input combinations. (2 for multiplier, 2 for adder, and 2 for subtractor)
    9. Implement this hardware on your DE-0 Board and test it.
    10. Strictly for extra credit [not required]: Design and test an 8 by 8 multiplier.

Report:
Prepare a memorandum which is addressed to the manager of the R&D group at Banana. Go to the Preparing the Memo link to review the general requirements for Banana Memos or to the What to Include and Grading Policy link for the specific things to include in the Project #5 report.

_______________