Now that we have created her father, how about we create a full other by instantiating this we mean
by instantiating let us create a black box from this circuit so that we can copy it multiple times without
having to copy all of these components in the circuit.
Instantiating can be done by first making this as a black box.
So go to file, make sure you are going to have a go to file and then create update and then go to create
simple files for current file.
Click on that.
And click save, and here we go, we have created.
A black box from this, how can we see it now?
Now let us get Death Adder and to bring this black box to it, create a new block diagram, schematic
file.
And now if you go to component or simple tool here and you just go to have Adir.
And just go to project, you'll see our half hour right here.
So this is to have either I just created and is now as a black box, as you can see, we cannot see
any of the internal circuits and visualizing this is better.
No, we still need one more gate in order to create a full lather, remember the difference between
a half hour full hour there is that her father does not consider the Kawi input when it is something.
So it's only considering A and B. But let's say you are suffering multiple bids.
It's very important, as you know, that you have your carry in.
Right, because if you are coming to a bid, sometimes you have a Kawi and you need to summit again
with the next bid, as we have seen when we learned about something.
Multiple bids.
Right.
So that's the main difference.
Now, a full adder contains this coming in and we will see how we can add it.
But first, we need one more gate and it's the old gate.
Go to primitives and then go to logic and get.
A.J..
And just put it here.
OK, now let us get the inputs and outputs.
Remember, we need three inputs, a B. And of course, the Caribbean next.
I need one for the carry out and one other for the sum.
OK, so let us put this here, because this is the carryout.
Actually, we need to connect it here.
All right.
Now, let's zoom in a little bit.
I really cannot see very well.
All right, great.
Now, this is a.
This is in part B, this is C, end of the Caribbean here, I have my some idea.
I have my carry out seal now we can start interconnecting.
So you're connecting these together.
These.
And then the carry will be summed with this sum that is coming from here, right?
That is the most important thing that when I have a carry, I need to add it to the summation of both
of my inputs, right.
So I'm coming right now able to speak and then summing to them the em.
Right.
So this is a simulation block.
This is summation block with some both inputs here and B and then the result will be added to the C
in.
No, the summation will go as it is it's already, but what if I some this and I have a here at the
gallery here?
Well, I need to consider whenever I have a carry, I need to consider it at the gallery output.
So if I get the gallery from here, all I'm getting it from here.
It doesn't matter.
It should give me a gallery at the output.
OK, no, this is a full edit right now.
It has three inputs and outputs.
We just need to connect this one.
And it's now that the save this.
And I'm going to call it full adder one bit, OK?
Set it as a top level and simulate.
Or goodbye.
And by that, we are done compiling now to simulate this really quickly new and we need every WFA.
And certainly both let us less than that everything now let us save the file first, we need to save
it as a full other one bit.
Remember, we need the same name as the village file.
And next, let us try all the combinations, so.
We have zero zero zero.
Zero zero one.
Then we have.
Zero.
One zero.
Then we have zero zero zero one one.
Of course, then we have one zero zero.
And we have one zero one.
One zero.
One.
And then we have one one zero.
And finally, my one one, one, OK, now let me go to simulation settings, Mr. Defaults.
I'm going to delete this, of course, save and it's.
Would you like to save this?
Yes.
And here we go, no summing zero zero zero in binary is actually zero if we put the sum here and the
zero two zero zero zero plus one should give me a one zero plus one plus zero.
Should it also give me a call?
That's correct.
Now, zero plus one plus one should give me a zero and one in the carry.
That's correct.
Now one two zero zero should give me a one that you won't carry.
Now one plus zero plus one should give me a zero and one in the code.
Correct.
Now, if I have one plus one again, something zero and they go now if I'm serving one plus one plus
one, I should get one and one in the carousel.
My full ladder is fully functional and that's it.