CSE 140L Hardware Lab Two

Adders/Subtractor, Carry-look-ahead Adder, Carry-select adder
Introduction to D Flip-flop

Due date: 5th week in class


Objective

In this lab, we will learn how to study and build different types of adders.


Part 1. 4-bit Adder/Subtractor with Overflow

Build a 4-bit Adder/Subtractor with Overflow Indicator. For negative numbers, use 2's compliment representation.
i. Design and implement the circuit (describe how the adder and subtractor work and how you derive the circuit)
ii. Build and simulate the circuit using xilinx (show exactly 8 different simulation cases).


Part 2. 4-bit Carry Lookahead Adder

Build a 4-bit carry lookahead adder
i. Design and implement the circuit (describe how carry lookahead works and how you derive the final circuit layout)
ii. Build and simulate the circuit using xilinx. (show exactly 8 different simulation cases).
iii. Describe the advantages and disadvantages of carry lookahead adder in relation to ripple adder. Describe in terms of speed (indicate how many levels in the critical path) and area.


Part 3. 8-bit Carry Select Adder

Build an 8-bit carry select adder
i. Design and implement the circuit (describe how carry select adder works and how you derive the final circuit layout)
ii. Build and simulate the circuit using xilinx (show exactly 8 different simulation cases).
iii. Describe the advantage and disadvantage of carry select adder. Describe how many gate levels the critical path contains.


Part 4. Introducing D Flip Flop

Build an 3-bit shift register using positive edge-triggered D Flip Flops ("FD" in Xilinx)
i. Design and implement the circuit.
ii. Build and simulate the circuit using xilinx. Show at least 8 clock cycles or data.


Report
Title page:
  • Names of students and due date.
  • Title of the lab and objective.
  • A brief description of each person's contribution.

Content:
  • Part 1 i, ii
  • Part 2 i, ii, iii
  • Part 3 i, ii, iii
  • Part 4 i, ii
  • Include this printout at the end of the lab report
Grading

90% will based on the completeness and correctness of the report. 10% will based on the neatness, organization, and following instruction of the report format.