WEBVTT

00:00.360 --> 00:06.750
Now what we will do was we will start understanding how to use an automatic operator within N.S.A. in

00:06.750 --> 00:07.800
day to day, Rachel.

00:07.890 --> 00:11.370
First thing that we do is to include the mandatory library search.

00:11.370 --> 00:17.160
So if we plan so if we plan to work with an unsigned order signed today, right, so we won't be required

00:17.160 --> 00:22.740
to use I Tripoli Dot Numeric Standard.

00:22.940 --> 00:30.330
Dartmouth did include all the operator definition, as well as it also include the definition for our

00:30.480 --> 00:31.500
site and unsigned.

00:31.920 --> 00:37.760
Now we proceed and declared signal's right, so we required to operate, which will be acting as the

00:37.800 --> 00:38.760
data source for us.

00:38.760 --> 00:40.860
So we proceed with the signal, right?

00:41.130 --> 00:47.250
Let it just use the run rate and first operate with an unsigned data.

00:47.380 --> 00:50.200
Right now, we need to specify the size range.

00:50.220 --> 00:55.620
So let's assume that we want to operate with a fool, but I'll print state.

00:55.620 --> 01:03.360
So this should be three down to zero rate and will be initially using this to let assume one zero zero

01:03.360 --> 01:04.140
zero rate.

01:05.220 --> 01:10.050
We required one more operator OK, which will serve as the second input for our making block.

01:10.050 --> 01:13.380
So deemed to be OK again unsigned.

01:14.340 --> 01:16.520
OK and sage will remain same.

01:16.530 --> 01:19.260
There is three down to the zero rate.

01:20.190 --> 01:23.620
The registry initialized is two zero one zero zero.

01:23.820 --> 01:30.540
Right then the result of little will be of six five victory because forward will be allocated for a

01:30.540 --> 01:33.840
sum and one bit will be allocated for a cardio great.

01:33.870 --> 01:36.240
Similarly, if we consider subtraction.

01:36.480 --> 01:41.940
OK, so the result of satisfaction will be forward and one which we need to allocate for a bar.

01:42.000 --> 01:42.260
Right?

01:42.630 --> 01:49.320
So both the variable, which will be holding the result of addition and subtraction, must be all size

01:49.770 --> 01:50.280
VIPIT.

01:50.550 --> 01:55.860
And if you consider a multiplication operation, so the size of variables should be at least twice the

01:55.860 --> 01:57.360
size of our opening right.

01:57.630 --> 02:03.810
So here are all printed off size for weight, so the variable which will be holding the result of multiplication

02:03.810 --> 02:05.910
should be at least eight bit inside state.

02:05.910 --> 02:06.930
So just go ahead.

02:07.230 --> 02:11.560
Now we know that addition and multiplication would have a size of five it.

02:11.580 --> 02:15.660
So we just could signal, OK, let's just declare a variable add.

02:16.110 --> 02:16.500
OK.

02:16.560 --> 02:22.770
This will be holding the result of addition, and some of which will be holding the result of subtraction.

02:23.130 --> 02:23.490
OK.

02:23.550 --> 02:25.710
Again, and say OK.

02:25.710 --> 02:32.500
And this should be of size five with rates of four down to zero and will be initializing this to all

02:32.650 --> 02:32.880
see.

02:33.990 --> 02:38.880
Similarly, the variable which will be holding the result of multiplication, we'll just be naming it

02:38.880 --> 02:39.960
as modeled, right?

02:40.320 --> 02:48.060
Again, and say in this case, it should have at least a size of seven down to zero that is e betrayed

02:48.540 --> 02:51.110
that it just initialized this to a zero no for a need.

02:51.120 --> 02:57.420
Maybe we could just use this suffix as the x ray and then we could just add to zero state.

03:00.030 --> 03:05.700
So this basically mean we are specifying the initialization value and then hexadecimal format, right?

03:05.710 --> 03:08.400
So once we complete the declaration of the signal.

03:08.430 --> 03:10.590
Now we know that we want to work with the signal.

03:10.830 --> 03:16.030
So the type of reader that will be utilizing is the signal assignment operator, right?

03:16.050 --> 03:17.490
So let's proceed with an add.

03:17.770 --> 03:23.710
Now we need to make sure that the size that you have on an elite, you then added just matches because

03:23.710 --> 03:26.190
visually the strongly typed language, right?

03:26.220 --> 03:33.440
So when we consider this addition, so addition is of s it right, and if we consider D in one plus

03:33.470 --> 03:36.510
d into so both have a size of four bit Rachel.

03:36.820 --> 03:43.020
Not just you'll, you'll be noticing that we have a size of orbit, whereas on an elegies we have a

03:43.020 --> 03:44.060
size of Typekit great.

03:44.070 --> 03:47.280
So in this case, the good idea will be to match your size at eight.

03:47.280 --> 03:50.040
So how you might just say this, you are pendency, right?

03:50.370 --> 03:53.550
So Dean went to append anything with a variable.

03:53.550 --> 03:58.370
So we have an ampersand operator in vista rates that will be appending zero.

03:58.390 --> 04:01.980
And then I say to a single zero single could see, right?

04:01.980 --> 04:05.570
So this is how you can work for a bit variable to a fiery trade.

04:05.580 --> 04:09.150
So what we are doing here is we are appending zero.

04:09.330 --> 04:15.240
OK, I then it must be all five variable rates assimilating will be falling for the into.

04:15.270 --> 04:15.870
All right.

04:15.870 --> 04:22.530
So this will make sure that we have a theme size on an allergist as well as our interest rate, and

04:22.530 --> 04:24.680
we won't be getting error at a later date.

04:24.790 --> 04:25.070
Three.

04:26.340 --> 04:29.860
So this complete the expression for an add variable.

04:29.880 --> 04:37.110
Now we proceed and just copy this expression that will be replacing add with subtraction right down.

04:37.110 --> 04:43.570
In this case, we just need to replace this operator with minus three and four and multiplication.

04:43.590 --> 04:43.890
Right.

04:43.890 --> 04:48.270
So we just need to add the one cross to two, right?

04:48.270 --> 04:49.020
So this makes sense.

04:49.020 --> 04:55.500
So if you compute the multiplication to forbid multiplication and less requested bits say so here we

04:55.500 --> 04:57.360
get a little bit reserved and here are two.

04:57.360 --> 04:59.280
We created a great so.

04:59.430 --> 05:01.410
We already have a match to take, right?

05:01.680 --> 05:04.130
So let me just see what quote, right?

05:04.140 --> 05:09.630
So here you could clearly see a green indication indicating that we are correctly following the language

05:09.630 --> 05:10.500
syntax today.

05:10.540 --> 05:14.010
Now we go ahead and try to perform a simulation.

05:14.010 --> 05:18.480
So we all really set this source code as stopping the simulation thought.

05:18.480 --> 05:23.640
So we could just proceed to perform runs simulation and perform a behavioral simulation.

05:28.270 --> 05:33.610
Now, if you observe, right, so we have, Dean, when is it and into us four, right?

05:34.060 --> 05:36.430
So eight plus for sure that it's early to tell.

05:36.490 --> 05:42.400
So if we just right click on an ad and change the ratings to an unsigned decimal, right, so you would

05:42.400 --> 05:44.680
clearly know this, we get the value of it, right?

05:45.280 --> 05:50.350
The result of the extraction is eight minus four will give us four right and eight for the.

05:50.590 --> 05:52.430
We get hexadecimal 20 right.

05:52.440 --> 05:57.910
So to get an unsigned decimal, just right click on the bus and select 19 decimal and you'll be able

05:57.910 --> 05:59.170
to notice 32, right?

05:59.470 --> 06:04.630
So this is how you perform and are mighty operations with an operator and an unsigned at a rate.

06:04.630 --> 06:12.430
So whenever you have lattices you here since the value is greater than the two, right?

06:12.430 --> 06:14.290
So we are getting the positive result.

06:14.290 --> 06:20.770
But if you assume that being one is having a lower value as compared to the into, in that case, we'll

06:20.770 --> 06:26.860
be getting the boost compliment value right, which we need to convert to the respect to decimal number.

06:26.980 --> 06:30.250
So let me just give a try to it to replace this with the into.

06:30.670 --> 06:32.920
And then here we have Dean right now.

06:32.920 --> 06:38.080
You could clearly see we are performing the subtraction between Dean two and Dean went right to Dean.

06:38.080 --> 06:41.140
Two is having a lower value as compared to Dean one, right?

06:41.440 --> 06:45.520
So we'll just see what line relaunch a simulation.

06:45.940 --> 06:47.880
So now if you observe, right?

06:47.950 --> 06:54.550
So eight plus four, 12 again addition will be seem OK, multiplication will be seen, but no, here

06:54.790 --> 07:00.090
if we just change the relics to a binary for our subtraction.

07:00.100 --> 07:04.150
So we are getting a value of one one one zero zero, right?

07:04.150 --> 07:09.670
So the value that we received is one one one zero zero.

07:09.700 --> 07:09.970
Right.

07:10.240 --> 07:15.100
So whenever we have one over here that basically indicate that it is a negative number.

07:15.250 --> 07:21.910
So this basically indicates that it is negative number and to get an equal in value, we need to find

07:21.910 --> 07:23.230
out the two compliment, right?

07:23.230 --> 07:25.680
So we have this resolved rate.

07:25.690 --> 07:32.830
So first we get one compliment by complimenting every bit that we have in reserve ratio zero zero zero

07:33.070 --> 07:33.760
one one.

07:34.050 --> 07:34.270
Right.

07:34.270 --> 07:36.040
So this is one compliment.

07:36.340 --> 07:40.030
Now we just need to add one to it to get to compliment, right?

07:40.050 --> 07:45.580
So when and when will it be zero and decision to carry when one will again be a zero?

07:45.610 --> 07:47.710
This will again generate a carry.

07:47.740 --> 07:51.790
So zero plus one use one and then we get two zeros, right?

07:52.120 --> 07:57.370
So if you just find out an equal and decimal value, so it is four.

07:57.410 --> 07:57.700
Right.

07:57.700 --> 08:01.020
So the result is basically minus four.

08:01.030 --> 08:07.360
And if you observe what we are doing is so our D into is having a value of four and in one is having

08:07.360 --> 08:08.350
a value of eight, right?

08:08.680 --> 08:14.740
So we are basically performing four minus eight and they should give us minus four, right?

08:14.740 --> 08:16.540
And this is what is happening over here.
