Design 8 bit adder: Steps & Tips

AI Thread Summary
To create an 8-bit adder using two 4-bit adders, connect the carry output (Cout) from the lower-order 4-bit adder to the carry input of the higher-order 4-bit adder. The outputs of the two adders are not directly connected; instead, the final 8-bit output consists of the outputs from both adders combined, along with the carry output from the higher-order adder. This method ensures proper addition of the two 8-bit binary numbers.
lisa92
Messages
3
Reaction score
0
Hi I already created a 4 bit adder but for my assignment I need an 8 bit one. Is it correct if I design to separate 4bit adders and connect their outputs (Cout) with an AND gate?

4 bit adder:
https://www.dropbox.com/s/ao60s6dgtrnhal3/4bit adder.PNG
 
Computer science news on Phys.org
your picture is too small to read, so its hard to tell for sure; but i think you want to xor the values. for example, let's say your inputs are 11001010 and 00101111. breaking it up to two 4 bits additions, we get...
values 1110 = A 1001 = B
Bcarrybit = 1
(A << 4) xor B xor (Bcarrybit << 5)
hope that helps.
 
To make an 8 bit adder from two 4 bit adders, the carry output from the low order 4 bit adders goes into the carry input of the high order 4 bit adder. The outputs are not "connected", you just have an 8 bit output (4 from each adder) plus a carry outpur from the high order adder.
 
Last edited:
In my discussions elsewhere, I've noticed a lot of disagreement regarding AI. A question that comes up is, "Is AI hype?" Unfortunately, when this question is asked, the one asking, as far as I can tell, may mean one of three things which can lead to lots of confusion. I'll list them out now for clarity. 1. Can AI do everything a human can do and how close are we to that? 2. Are corporations and governments using the promise of AI to gain more power for themselves? 3. Are AI and transhumans...
Thread 'ChatGPT Examples, Good and Bad'
I've been experimenting with ChatGPT. Some results are good, some very very bad. I think examples can help expose the properties of this AI. Maybe you can post some of your favorite examples and tell us what they reveal about the properties of this AI. (I had problems with copy/paste of text and formatting, so I'm posting my examples as screen shots. That is a promising start. :smile: But then I provided values V=1, R1=1, R2=2, R3=3 and asked for the value of I. At first, it said...
Back
Top