![]() |
|||||||||
|
|||||||||
Lab: Binary adderObjectives: This lab will help explore Quartus II software (available through Altera - http://www.altera.com/ - using the RSR Electronics PLDT-2 protoboard - http://www.elexp.com/tst_pld2.htm Objectives:
Hardware:
Background: We are to design a 2-bit adder. We will start with a truth table, then find equations for each output bit. The truth table will have 4 inputs: we're adding 2 two-bit numbers (4 inputs) and getting a 3-bit answer (3 outputs).
Our truth table will have 3 columns for the output - we can figure 3 at the same time easier than each individual bit. For example, our output "row" for the above example is row 1011 (remember the inputs are A1A0B1B0)
Fill in the rest of the truth table... for example, row 0 1 0 1 means 01 + 01 = 010, so after row 0101, put the output 010. When you fill out the complete truth table, you will have 3 K-maps to fill out: one for X2, one for X1 and one for X0. Once you find equations for each of these three outputs, you are ready to program! Procedure:
Instructors who would like to implement this experiment: please contact Ken Reid at IUPUI (kreid1@iupui.edu) for more information. |
|||||||||