WEBVTT

00:00.150 --> 00:06.630
What we cover next is how we perform an initialization of signal line ready, but rate so signal could

00:06.630 --> 00:07.920
have a multiple value.

00:07.920 --> 00:14.460
It could either be a single day or multiple bad, and we have a large potato in how you handle all the

00:14.460 --> 00:17.610
situation when we consider an initialization rate.

00:17.610 --> 00:21.210
So we will be discussing the different strategies that we have at this rate.

00:21.210 --> 00:23.550
So we will be working with the signal here.

00:23.550 --> 00:28.710
And the theme that we discuss over here are equally eligible for variables, right?

00:28.740 --> 00:30.520
So we start with the signal, right?

00:30.930 --> 00:36.950
Ladies, is you that we first work with the single bit signal, so we declared the name of the signal

00:36.960 --> 00:37.940
estimate, right?

00:38.190 --> 00:39.630
And say this single bit.

00:39.630 --> 00:42.720
So we work with lyricism standard and discord logic.

00:42.840 --> 00:48.900
So whenever we need to specify a single bit, we just need to add standard underscore logic Great Dane

00:48.900 --> 00:51.380
to add an initialization value.

00:51.390 --> 00:54.240
We just start cooler and equals to right.

00:54.780 --> 01:01.500
And then since we have only a single bit value, so we need to use a single word great.

01:01.500 --> 01:08.130
So if you want to initialize them to a value of zero to a single good and then you add seal, right?

01:08.130 --> 01:13.200
So this is how you perform initialization of a template to a value of zero.

01:13.200 --> 01:18.000
If you want to initialize them to a value of one, you just need to add single code.

01:18.270 --> 01:18.490
Right.

01:18.540 --> 01:24.500
So this is how you declared a single bit variable and initialize it to the specific value.

01:24.510 --> 01:30.930
Right now, if you have the multi bit signal in that case, you need to use double code light.

01:31.170 --> 01:34.600
So let's assume we have a team to OK, which is multiple.

01:35.190 --> 01:41.730
OK, so we'd have a series of four pixel standard and this code Logic or Niseko Vector and then three

01:42.180 --> 01:43.610
down to zero later.

01:43.620 --> 01:49.040
This is the size that we have for our time to right now, and we want to initialize it to all zero.

01:49.050 --> 01:55.230
So we are getting that golden equals two no sizes greater than when greater will be utilizing double

01:55.230 --> 01:57.720
code than zero zero zero C, right?

01:57.720 --> 02:03.580
So here the number that we act is by default considered to be net binary format rate.

02:03.580 --> 02:08.910
So for each bit, we'll give you specify one of the binary number to Zoom.

02:08.910 --> 02:17.250
You have some higher sales rate so that you get a 16 bit, so adding a 16 zeros will not be a good idea,

02:17.250 --> 02:17.460
right?

02:17.490 --> 02:24.750
Instead, what we do is we work with a different radix rate, so we work predominantly with that hexadecimal

02:24.750 --> 02:28.750
whenever we have a site greater than eapic rate, certainly.

02:28.770 --> 02:34.140
But you could use a binary red state so you could easily specify eight zeros.

02:34.440 --> 02:40.770
But as soon as your size goes about it, we prefer to go with an hexadecimal red state.

02:40.780 --> 02:48.510
So we proceed like this signal that is a you three is of, say, 16 that creates the standard underscore

02:48.510 --> 02:51.830
logic, i.e. the school vector, right?

02:51.840 --> 02:54.960
And to say is that we are targeting is 16 bit.

02:54.960 --> 02:58.540
So we just need to add down to zero rate.

02:58.540 --> 02:59.790
So we know known to zero.

03:00.300 --> 03:01.640
Mean and equals two.

03:01.680 --> 03:04.320
OK, then we have a double code, right?

03:04.320 --> 03:08.090
Because we have multiple states right now here.

03:08.100 --> 03:13.000
We want to specify the initialize value in an hexadecimal format, right?

03:13.020 --> 03:16.940
So 16bit is equal to four exactly single digit rate.

03:16.950 --> 03:21.750
So to specify an extra decimal value, we add X at the beginning rate.

03:21.750 --> 03:28.320
So just before that about code, you need to add an x ray so that represent the format specified four

03:28.530 --> 03:32.700
and hexadecimal number two add 16 zeros to item three.

03:32.700 --> 03:38.640
We just need to add four zeros because each digit that we specify we're here is an hexadecimal digit

03:38.640 --> 03:41.470
again, that is equal to four binary digit rate.

03:41.490 --> 03:46.500
So for hexadecimal, digit will be equivalent to the 16 binary digit rate.

03:46.500 --> 03:52.870
So this is how you specify the value whenever you have the signal size greater than eight.

03:52.890 --> 03:57.000
But right now, let's assume you have a size greater than 32 bit rate.

03:57.000 --> 04:02.010
So usually we work it now with the values which are multiple of twos, right?

04:02.010 --> 04:06.180
So after 32, we preferably go within 64 bit rate.

04:06.360 --> 04:13.380
So in that case, so if you divide sixty four by four, so you get 16 hexadecimal digit, that is again

04:13.830 --> 04:16.440
a difficult task to add an individual digit rate.

04:16.440 --> 04:20.100
So in that case, to initialize all the bits to a zero.

04:20.130 --> 04:23.490
What we do is we have other metrics already to do.

04:23.520 --> 04:30.230
We have a signal we named it a stand for and it have a size of 128 bit rate, cisgendered and logic.

04:30.450 --> 04:39.190
This vector right to to specify the one weighted birthday state till we date 127 down to zero.

04:39.210 --> 04:39.480
Right.

04:39.480 --> 04:46.410
So this is how you specify 128 bit to initialize all of the bit to a zero at once, right?

04:46.680 --> 04:49.050
What we do is we just had other states.

04:49.050 --> 04:50.580
So this is the key word that we add.

04:50.850 --> 04:54.930
Then we add equals to greater, then rate equals to greater.

04:55.120 --> 04:58.050
And in the single code, we just started C, right?

04:58.080 --> 04:59.850
So what this will do is this will.

04:59.900 --> 05:05.680
Automatically initialize all the bits that we have with the signal.

05:05.710 --> 05:09.250
OK, two words here, right to do that, the four methods that we have.

05:09.580 --> 05:15.760
So in a case of a single bit signal, we just need to use a single code in the case of multiple signal.

05:15.790 --> 05:17.150
You need to use the code.

05:17.170 --> 05:23.830
So till the size of each bit, we would prefer to specify the initialize value in a binary format itself.

05:24.100 --> 05:27.220
But as soon as you have a size created a need, right?

05:27.550 --> 05:34.390
So in that case, we prefer to work with an either radix rate or we prefer to work with an hexadecimal

05:34.390 --> 05:34.800
format.

05:34.810 --> 05:39.010
So each hexadecimal digit is equivalent to four binary digit rate.

05:39.340 --> 05:43.130
And as soon as we have a size greater than 32 bit rate.

05:43.150 --> 05:47.380
So we prefer this method where we rate others then equals to agree to that.

05:47.470 --> 05:51.100
And then we add the value that we want to initialize, right?

05:51.110 --> 05:56.620
So what we do is this will initialize all the bit that we have in the signal to a zero, if you just

05:56.620 --> 05:58.930
specify this to be single code one.

05:59.020 --> 06:05.870
So what this will do is this will initialize all the bit that we have in our vector to see.

06:06.730 --> 06:13.120
So these are the multiple ways that we have with this for adding an initial value to signal and variable

06:13.120 --> 06:13.390
rate.

06:13.390 --> 06:19.330
So all the things that we discuss over here is equally eligible for a variable also, so you could follow

06:19.330 --> 06:23.600
the same method and perform an initialization of variable rate.
