
What is HALF SUBTRACTOR?
| Half Subtractor is a combination logic circuit that is the opposite of the Half Adder logic circuit that subtracts two binary numbers from each other, for example, X – Y to find the resulting difference between the two numbers. |
|---|
Intended Learning Outcome (What Will I Learn?)
After reading and participating in this tutorial, the readers should be able to:
- learn how to convert a Half Adder by adding a NOT gate in order to convert it to Half Subtractor using simulation;
- create a digital logic circuit for Half Subtractor simulation ; and,
- simulate the created Half Subtractor simulation digital logic circuit.
Requirements
To be able to follow this tutorial, you should have the following tools at hand:
- A desktop PC or laptop with Windows (7, 8, 10) operating system; and,
- A BOOLR latest release version which you can download at its Github repository GGBRW/BOOLR or vist its website at boolr.me
Difficulty
- Basic
Part 1: Setting up a new project the BOOLR app.
1 | Open BOOLR.exe from the downloaded latest release zip file of the app.

2 | Create a new project by clicking NEW BOARD.

Then, you will be directed to Create New Board where you are ask to type in the name of the new board.

Type in the board name. For this tutorial, lets have "Half Subtractor" as board name.

3 | Click
to finalize setting up a new project.

| For the basic operations and functions of the BOOLR Digital Logic Simulation, you are advise to read Introduction. |
|---|
Part 2: Creating a Half Subtractor Digital Logic Circuit in BOOLR
Now, we create a circuit in the BOOLR. For this tutorial, we will create the subractor circuit a from the basic config of Half Adder. You may read my last tutorial about Half Adder.
1 | We start by adding the base component similar to a Half Adder. Add the XOR gate in the worksheet, simply click at where you want the to add the component.

2 | Add AND gate by clicking
and following the process mentioned in step 2. Place it below the XOR gate. Make sure that the not gate is not connected to the output of the XOR gate.

3 | Add a NOT gate by clicking
then follow the step 2 in adding the component in the worksheet.
Discussion: A NOT gate operates that it inverts the value of the input. For example, a low input becomes a high output. You can browse the truth table by right clicking the . ![]() |
|---|
4 | Select input devices from
. From the menu click on INPUT.

5 | Add two set of input on the left of the XOR gate but not directly connected to. Follow what is shown below.

6 | Add an OUTPUT as an output to both XOR and OR gate. Follow step 4 but click on OUTPUT.

7 | Connect input to XOR, AND and NOT terminal.

9 | Connect output to XOR and AND.

Part 3: Simulation of the created FULL ADDER logic gate
| How does HALF SUBTRACTOR works? |
|---|
HALF SUBTRACTOR is a combination logic circuit that perform subtraction of two bits. It has two inputs, the minuend X and subtrahend Y and two outputs the difference D and borrow out B out. It follows the truth table below.![]() In the logic simulator, the DIFFERENCE output is the output connected to the XOR gate and the BORROW is connected to AND gate. ![]() |
1 |Verify the simulation button if it is play or paused. Pause button indicates simulation is going on, while Play button signifies the simulation is paused.By default, the BOOLR app is always on simulation.

2 | Verifying our discussion earlier, input the values. Observe the result at the OUTPUT. To change the values of input, click on the number inside the input symbol.

3 | Change values of input to 1 and 1 respectively. Follow step 2 on how to change the input values.

Result of Simulation according to the truth table values.
![]() ![]() ![]() ![]() |
|---|
Curriculum
You can browse the other curriculum for BOOBLR Digital Logic Simulator.
- Introduction to BOOLR Digital Logic Simulation
- Half Adder Logic Simulation
- Full Adder Logic Simulation
Posted on Utopian.io - Rewarding Open Source Contributors







Thank you for the contribution. It has been approved.
You can contact us on Discord.
[utopian-moderator]
Thanks @kizilelma
Thanks for the education
You got a 1.98% upvote from @upmyvote courtesy of @juecoree!
If you believe this post is spam or abuse, please report it to our Discord #abuse channel.
If you want to support our Curation Digest or our Spam & Abuse prevention efforts, please vote @themarkymark as witness.
Hey @juecoree I am @utopian-io. I have just upvoted you!
Achievements
Suggestions
Get Noticed!
Community-Driven Witness!
I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!
Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x