CS 14 -- Lab 1


Welcome to the digital design lab! Today's task is to build a half-adder -- a simple adding circuit that will be presented during the lab time. You should begin small by constructing the pieces needed, and build your way to the entire half-adder.


Knowing what the toys are

Don't do anything yet! We're going to spend a few minutes going over the various chips, boards, power supplies, and other devices that you'll need to use for this and other labs. Here's a list of the devices you'll be using, and some key information about them:

We may not use all of these parts in the first lab, but you will need a number of them, and eventually you will use all of them.


What to build

Just as with programming, it is unwise to construct a complete solution without testing its parts along the way. With a large circuit, you want first to construct the smaller circuits that will later compose the large one. With each smaller circuit, you should debug it thoroughly before connecting it to other smaller circuits.

Today, we'll move one part at a time through constructing the half-adder:

  1. Set up a single AND gate by using a 7408 chip. Set up an LED so that you can see the output of this gate. Try all four possible inputs to be sure that it's operating correctly. You've just constructed the circuit the generate the carry bit for your half-adder, where one input is your A value, and the other your B value.
  2. Begin constructing an XOR circuit by using the NOT gates in the 7404 chip. You will want use two gates, one to produce NOT A, and the other to produce NOT B.
  3. Use two more of the AND gates from the same 7408 chip as you used above. To one gate, connect A and NOT B, and to the other NOT A and B.
  4. Finally, bring the outputs of the two AND gates used in the previous step, and connect them as inputs to an OR gate on your 7432 chip. The output of this particular gate is A XOR B, also known as the result bit.
  5. Wire the outputs of these two circuits so that they appear adjacent to other another on an LED. Once you've done that, you have a half-adder!

Finishing up

Be sure to leave yourself a little time to complete the lab! Every week, there are some things you'll have to do whether or not you've completed the assignment.

  1. Demonstrating your work: If you've finished the lab, then you need to show it to the professor or the TA. You won't get credit unless we've seen it work!
  2. Saving your work for another day: If you need to save your work to finish another day, put your name on a label on the board, and place it in on of the lower drawers. Unlabelled work may be dismantled!
  3. Cleaning up: When you're done, put away everything and clean up your area. If you do not clean up and put your board away (if needed), your work may be dismantled!

Scott F. Kaplan
Last modified: Tue Jan 29 09:28:16 EST 2002