Hello all,
I'm hoping I can get some help with this homework problem. I'm taking a class about compilers and low level computer architecture, and there is a section on building circuits. I've managed to do a couple, but this one has stumped me:
I have 4 inputs and 4 outputs, each one corresponding to a single bit. I need to take the input and add 1 to it and output the result. So:
I need to change 0000 to 0001 and display it.
We are using a java circuit building tool here: http://www.course.com/downloads/computerscience/aeonline/7/1/
What I've tried so far:
I have two switches. Each switch goes to both an AND gate and an XOR gate. This lets me add two bits, but I am unsure how to extend this to 4 bits, or for that matter, how to specify that it is a 1 I am always adding.
I've written out a truth table for it, but that doesn't seem to help my understanding.
I would greatly appreciate any help.
I'm hoping I can get some help with this homework problem. I'm taking a class about compilers and low level computer architecture, and there is a section on building circuits. I've managed to do a couple, but this one has stumped me:
I have 4 inputs and 4 outputs, each one corresponding to a single bit. I need to take the input and add 1 to it and output the result. So:
I need to change 0000 to 0001 and display it.
We are using a java circuit building tool here: http://www.course.com/downloads/computerscience/aeonline/7/1/
What I've tried so far:
I have two switches. Each switch goes to both an AND gate and an XOR gate. This lets me add two bits, but I am unsure how to extend this to 4 bits, or for that matter, how to specify that it is a 1 I am always adding.
I've written out a truth table for it, but that doesn't seem to help my understanding.
I would greatly appreciate any help.