1-bit adder/subtractor

Discussion in 'Homework Help' started by kidkwik, Oct 13, 2010.

  1. kidkwik

    Thread Starter New Member

    Oct 13, 2010
    3
    0
    I'm working on building a simple 1-bit adder/subtractor.

    I can get the adder to work alone and the subtractor to work alone. When I add the switch (XOR gate) I can only get one of them to work at a time. Right now (the attached image) is in adder only. I know I need another NAND gate somewhere in that but i can't seem to figure out where.

    My current attempt: http://img88.imageshack.us/img88/8246/adsub.png

    Can anyone give any tips/suggestions/hints?
     
  2. Georacer

    Moderator

    Nov 25, 2009
    5,142
    1,266
    What does each switch represent? What are the input variables?

    If you plan to have a different circuit for the substractor, post that too.
     
Loading...