2-Bit Subtractor

by maryam191 in Circuits > Electronics

181 Views, 0 Favorites, 0 Comments

2-Bit Subtractor

WhatsApp Image 2024-01-23 at 8.48.38 PM.jpeg
WhatsApp Image 2024-01-23 at 8.51.09 PM (1).jpeg
WhatsApp Image 2024-01-23 at 8.51.09 PM.jpeg
WhatsApp Image 2024-01-23 at 8.48.38 PM (3).jpeg
WhatsApp Image 2024-01-23 at 8.48.38 PM (2).jpeg
WhatsApp Image 2024-01-23 at 8.48.38 PM (1).jpeg
WhatsApp Image 2024-01-23 at 8.48.38 PM.jpeg
WhatsApp Image 2024-01-23 at 10.11.57 PM.jpeg

This project is a 2-bit subtractor. which includes the 3 inputs of A, B, Bin. This circuit will give you the output of Difference and Borrow out.

Supplies

WhatsApp Image 2024-01-23 at 8.41.35 PM.jpeg

The gates which are used In the 2-bit subtractor are as follows:

AND Gate

OR Gate

XOR Gate

NOT Gate

LED

Wires

Working of the Circuit

WhatsApp Image 2024-01-23 at 8.54.37 PM.jpeg
WhatsApp Image 2024-01-23 at 8.56.56 PM (2).jpeg
WhatsApp Image 2024-01-23 at 8.56.56 PM (1).jpeg
WhatsApp Image 2024-01-23 at 8.56.56 PM.jpeg

When all the inputs are 1, both the bulbs will on on. From the ICs pin 7 ground the wire, and the pin 14 it will be Vcc.

A and B will be attach to the pin 1,2 of the XOR and 4 pin will be Borrow in. A will be connected to the NOT Gate. A' will be connected to the AND Gate. B will be connected to the 2 pin of AND Gate. The output of AND Gate will be connected to the OR Gate. Bin will be connected to the 4 pin of the AND Gate. The (A XOR B)' will be connected to the 4 pin of the AND Gate. Bin is also connected to the AND Gate. The output of the AND Gate will be connected to the OR Gate. The output of the OR Gate will give the Borrow out. And the LED will also be there at the output of the OR Gate. The output (Difference) will be represented at the XOR Gate and LED will also be placed there, which will represent the output of Difference. Also connect a wire whose both ends are connected in ground wires, same in Vcc. Attach a wire in Vcc and connect it to the positive terminal of the battery, the ground wire will connected to the negative terminal of the battery.