XOR AND gates used to add two 4-bit numbers together to make a 5 bit answer.

(4 bit answer and an overflow bit)

just a normal 4 bit adder

The 4-bit adder which can do math on 4-bit integers and display on 2 7-segment LEDs.

This project is owned by Lu Xuan Minh - student of HCMUT.

Everyone can fork my project for the purpose of studying and researching.

Thank you for your viewing!

Lu Xuan Minh

Email: **[email protected]**

In the preceding section, we discussed how two binary bits can be added and the addition of two binary bits with a carry. In practical situations it is required to add two data each containing more than one bit. Two binary numbers each of *n* bits can be added by means of a full adder circuit. Consider the example that two 4-bit binary numbers B _{4}B _{3}B _{2}B _{1} and A _{4}A _{3}A _{2}A _{1} are to be added with a carry input C _{1}. This can be done by cascading four full adder circuits as shown in Figure 5.48. The least significant bits A _{1}, B _{1}, and C _{1} are added to the produce sum output S _{1} and carry output C _{2}. Carry output C _{2} is then added to the next significant bits A _{2} and B _{2} producing sum output S _{2} and carry output C _{3}. C _{3} is then added to A _{3} and B _{3} and so on. Thus finally producing the four-bit sum output S _{4}S _{3}S _{2}S _{1} and final carry output Cout. Such type of four-bit binary adder is commercially available in an IC package.

A simple adder that adds two 4-bit integers and returns the result on a hex display.

It also keeps track of the flags.

It can also subtract if the ADD/SUB is 1

ADD/SUB = 0 => add

ADD/SUB = 1 => sub

Hey, i built a 4 bit Adder circuit which can add a pair of 4 bit binary numbers. it consist of 7 XOR gates, 7 AND gates, and 3 OR gates

4-bit Adder with 7 segment display