What we cover next is how we perform an initialization of signal line ready, but rate so signal could
have a multiple value.
It could either be a single day or multiple bad, and we have a large potato in how you handle all the
situation when we consider an initialization rate.
So we will be discussing the different strategies that we have at this rate.
So we will be working with the signal here.
And the theme that we discuss over here are equally eligible for variables, right?
So we start with the signal, right?
Ladies, is you that we first work with the single bit signal, so we declared the name of the signal
estimate, right?
And say this single bit.
So we work with lyricism standard and discord logic.
So whenever we need to specify a single bit, we just need to add standard underscore logic Great Dane
to add an initialization value.
We just start cooler and equals to right.
And then since we have only a single bit value, so we need to use a single word great.
So if you want to initialize them to a value of zero to a single good and then you add seal, right?
So this is how you perform initialization of a template to a value of zero.
If you want to initialize them to a value of one, you just need to add single code.
Right.
So this is how you declared a single bit variable and initialize it to the specific value.
Right now, if you have the multi bit signal in that case, you need to use double code light.
So let's assume we have a team to OK, which is multiple.
OK, so we'd have a series of four pixel standard and this code Logic or Niseko Vector and then three
down to zero later.
This is the size that we have for our time to right now, and we want to initialize it to all zero.
So we are getting that golden equals two no sizes greater than when greater will be utilizing double
code than zero zero zero C, right?
So here the number that we act is by default considered to be net binary format rate.
So for each bit, we'll give you specify one of the binary number to Zoom.
You have some higher sales rate so that you get a 16 bit, so adding a 16 zeros will not be a good idea,
right?
Instead, what we do is we work with a different radix rate, so we work predominantly with that hexadecimal
whenever we have a site greater than eapic rate, certainly.
But you could use a binary red state so you could easily specify eight zeros.
But as soon as your size goes about it, we prefer to go with an hexadecimal red state.
So we proceed like this signal that is a you three is of, say, 16 that creates the standard underscore
logic, i.e. the school vector, right?
And to say is that we are targeting is 16 bit.
So we just need to add down to zero rate.
So we know known to zero.
Mean and equals two.
OK, then we have a double code, right?
Because we have multiple states right now here.
We want to specify the initialize value in an hexadecimal format, right?
So 16bit is equal to four exactly single digit rate.
So to specify an extra decimal value, we add X at the beginning rate.
So just before that about code, you need to add an x ray so that represent the format specified four
and hexadecimal number two add 16 zeros to item three.
We just need to add four zeros because each digit that we specify we're here is an hexadecimal digit
again, that is equal to four binary digit rate.
So for hexadecimal, digit will be equivalent to the 16 binary digit rate.
So this is how you specify the value whenever you have the signal size greater than eight.
But right now, let's assume you have a size greater than 32 bit rate.
So usually we work it now with the values which are multiple of twos, right?
So after 32, we preferably go within 64 bit rate.
So in that case, so if you divide sixty four by four, so you get 16 hexadecimal digit, that is again
a difficult task to add an individual digit rate.
So in that case, to initialize all the bits to a zero.
What we do is we have other metrics already to do.
We have a signal we named it a stand for and it have a size of 128 bit rate, cisgendered and logic.
This vector right to to specify the one weighted birthday state till we date 127 down to zero.
Right.
So this is how you specify 128 bit to initialize all of the bit to a zero at once, right?
What we do is we just had other states.
So this is the key word that we add.
Then we add equals to greater, then rate equals to greater.
And in the single code, we just started C, right?
So what this will do is this will.
Automatically initialize all the bits that we have with the signal.
OK, two words here, right to do that, the four methods that we have.
So in a case of a single bit signal, we just need to use a single code in the case of multiple signal.
You need to use the code.
So till the size of each bit, we would prefer to specify the initialize value in a binary format itself.
But as soon as you have a size created a need, right?
So in that case, we prefer to work with an either radix rate or we prefer to work with an hexadecimal
format.
So each hexadecimal digit is equivalent to four binary digit rate.
And as soon as we have a size greater than 32 bit rate.
So we prefer this method where we rate others then equals to agree to that.
And then we add the value that we want to initialize, right?
So what we do is this will initialize all the bit that we have in the signal to a zero, if you just
specify this to be single code one.
So what this will do is this will initialize all the bit that we have in our vector to see.
So these are the multiple ways that we have with this for adding an initial value to signal and variable
rate.
So all the things that we discuss over here is equally eligible for a variable also, so you could follow
the same method and perform an initialization of variable rate.