WEBVTT

00:00.330 --> 00:08.160
This is you may modify this code such that we are able to enlist how we include the multiple conditions

00:08.440 --> 00:13.710
in any field blocks, always try to implement forest to one max to be said.

00:14.280 --> 00:17.510
These are the four data inputs that we have for our books.

00:17.940 --> 00:18.200
OK.

00:18.690 --> 00:25.230
And this is having the type that's standard and the scholarship rate and the direction it's in right

00:25.240 --> 00:25.650
now.

00:25.650 --> 00:31.350
In this case, when we have a full input to our mucks should have a controlled bin of, say, stupid

00:31.350 --> 00:31.610
grades.

00:31.740 --> 00:39.060
Select should have a set of two bits of standard and logic and vector, and then we will just be adding

00:39.060 --> 00:40.080
one down to zero.

00:40.090 --> 00:46.680
This is how we specify the Two-Bit Select Line Right and then y will again have the same type as our

00:46.680 --> 00:47.670
input, which is standard.

00:47.670 --> 00:51.450
And this code logic only if it has been the direction which is out right now.

00:51.450 --> 00:54.230
This represents the combination of system monkey, right?

00:54.240 --> 00:56.950
So we need to include all the input in a process block.

00:56.970 --> 00:59.700
So we have a ABCD and select as our input.

01:00.090 --> 01:02.830
So B and Select is already included.

01:02.850 --> 01:04.800
We just need to add C and right.

01:04.800 --> 01:08.000
So this is how we declare the combination of process.

01:08.010 --> 01:11.160
Now we proceed and try to write the code for it.

01:11.160 --> 01:14.800
Greater will just be commenting this entire process.

01:14.820 --> 01:19.170
Let it just go ahead and come in this entire process and create the new process, right?

01:19.440 --> 01:21.960
So after begin, right?

01:21.960 --> 01:23.970
So we start with the process.

01:24.270 --> 01:28.470
And since this is a compilation process, we need to add all the input, right?

01:28.470 --> 01:34.590
So A, B, C, D and select all the input should be included in the process and so do the list, then

01:34.590 --> 01:36.120
we are to begin right?

01:36.420 --> 01:40.430
And since we have started the process, we will just be ending a process, right?

01:40.680 --> 01:44.160
If you want to provide the name to a process, you could also provide a grade.

01:44.160 --> 01:50.130
So this represent our combination of the process, provide the name at a cool rate.

01:50.130 --> 01:54.030
So this is how you give a name to or a label to the process, right?

01:54.630 --> 01:56.400
Then we proceed like this.

01:56.400 --> 02:03.990
So if right, so if select is equal to zero zero, so we have the multiple dwellings you need, we need

02:03.990 --> 02:05.430
to use the double click rate.

02:05.430 --> 02:07.350
So if it is zero zero, then.

02:08.430 --> 02:15.410
Then in that case, why OK, way to present our output port, so we by which we are saying no value

02:15.420 --> 02:20.990
evaluators, by utilizing the signals assignment operators, the way will be cost way else.

02:21.000 --> 02:28.280
If rate sales will be like this rate, then we specified the condition, so select will be close to

02:28.320 --> 02:28.690
again.

02:28.710 --> 02:30.270
Readable Code 01.

02:30.960 --> 02:31.320
OK.

02:31.350 --> 02:32.880
Again, you need to add 10.

02:32.910 --> 02:35.160
And here we will be able to be.

02:36.160 --> 02:37.510
Rape and --.

02:38.840 --> 02:43.280
And they've selected is equal to one zero.

02:43.550 --> 02:44.450
OK, there.

02:45.510 --> 02:49.260
Why will be calls to sea and in the rest of the case, right?

02:49.500 --> 02:52.820
The last case represent, then select is one one.

02:52.830 --> 03:01.860
We need to connect it to the right or else if right now remember we are not utilizing edge or here because

03:01.860 --> 03:05.550
when we consider united and this cold logic, we have nine different levels, right?

03:05.560 --> 03:06.840
So if we consider it is.

03:07.290 --> 03:13.830
So even though if we have a value other than one one, right, so we still will be connecting way to

03:13.870 --> 03:17.250
the end, that is what that is, not what we are expecting, right?

03:17.280 --> 03:27.660
Or else if we will just be adding select equals to one one, OK, then in that case, we will be connected

03:27.660 --> 03:28.190
to D..

03:28.860 --> 03:29.190
OK.

03:29.920 --> 03:31.200
LS ls.

03:31.200 --> 03:34.770
Indicating all the conditions which are not mentioned over here, right?

03:34.770 --> 03:36.180
So this will be the combination.

03:36.750 --> 03:44.320
Other than 192 in that case, why will we simply want to see right, so single could and sit next to

03:44.340 --> 03:45.840
this complete all the.

03:47.040 --> 03:52.500
States that we want to including an if statement, so as soon as you finish the definition of an if

03:52.860 --> 03:57.530
you just need to use and if rates in space, if right.

03:57.560 --> 04:02.400
So this completes the call and you'll be finding here, we get a green indication, right, that we

04:02.400 --> 04:08.580
correctly follow a language languished literally just go ahead and see what is the circuit that is invoke

04:08.590 --> 04:09.390
out of this code.

04:09.400 --> 04:11.460
So we'll just be reloading our schematic.

04:11.700 --> 04:20.900
And one thing that you'll be recognizing is this basically need to a creation of a gene of a Marxist

04:20.900 --> 04:21.180
state.

04:21.510 --> 04:27.870
So remember, you already have seen this circuit right when we discuss a conditional signals achievement,

04:28.260 --> 04:30.920
a similar kind of network is created right.

04:30.930 --> 04:36.840
And there we have discussed that whenever you have a situation where you want to utilize the complex

04:36.840 --> 04:42.270
expression, we prefer to go with that behavioral modeling style instead of a dataflow molding state.

04:42.450 --> 04:48.540
And the reason being you could clearly see with any field statement, OK, we are able to achieve the

04:48.540 --> 04:53.730
same gene of a muxes or the same logic that we could get with the conditional signal statement.

04:54.000 --> 05:00.360
So whenever you have a situation now to implement a complex expression retreat of low modeling states,

05:00.390 --> 05:05.790
you'll see that if you could implement it with the behavioral modeling state, proceed with behavioral

05:05.790 --> 05:06.600
modeling exchange rate.

05:06.600 --> 05:09.810
So this is exactly similar what we get in a previous case.

05:09.870 --> 05:10.740
All right.

05:11.040 --> 05:13.800
So this is how we work around with.

05:15.000 --> 05:15.390
The.

05:16.550 --> 05:21.680
A failed blog that we have in and behavioral morning, say now what we're going to do is we'll just

05:21.680 --> 05:26.240
be performing a simulation just to verify whether our system is correctly operating.

05:26.240 --> 05:31.040
Rachel will click on run simulation and we perform behavioral simulation, right?

05:31.040 --> 05:34.730
So we'll be applying a set of a stimulus to all the input.

05:34.730 --> 05:40.430
And as we change the value of select, we'll be observing whether we correctly receive the signal that

05:40.430 --> 05:41.900
we have on in the input.

05:42.200 --> 05:49.490
OK, so let me just go ahead and try to apply the clock for all the inputs right to eat right click

05:49.490 --> 05:50.630
foods clock right?

05:50.630 --> 05:57.590
So one two zero and then we will be adding a period as a nanosecond rate.

05:57.590 --> 06:00.110
So leading edge will be one, trailing edge will be zero.

06:00.410 --> 06:03.260
The period that we have to turn is 100 nanosecond rate.

06:03.260 --> 06:08.780
So far, we will be choosing some different periods when one zero does remain common and the period

06:08.780 --> 06:11.990
that we have chosen over is three hundred nanosecond.

06:11.990 --> 06:18.650
For C, let it just use a different rates of food clock one to zero.

06:19.800 --> 06:27.570
And then here, the parade will be choosing its 500 nanosecond for the first look, right, one two

06:27.570 --> 06:27.960
zero.

06:28.380 --> 06:32.490
And the period that we will be adding is 700 nanoseconds right now.

06:32.500 --> 06:38.130
What we're going to do is we will be changing the value of selected religious force consumed because

06:38.130 --> 06:41.370
select is multilayered so we cannot use food clock, right?

06:41.370 --> 06:45.720
So we will be using foods constrained and let it just add a value of zero zero, right?

06:45.750 --> 06:49.200
So this basically mean that we should follow.

06:49.470 --> 06:49.830
Right.

06:49.860 --> 06:54.520
So let's just go ahead and try to run it for thousand nanosecond.

06:54.540 --> 06:54.840
Right.

06:54.840 --> 07:01.460
So if you just click on one button and try to click on Souffert, right, you could see the waveform

07:01.530 --> 07:09.120
that y is following is exactly equivalent to a right because this is expected as select values.

07:09.450 --> 07:13.780
Now let me just try to change the select value to zero one, right?

07:13.800 --> 07:15.450
So when we are at 20 to one.

07:15.870 --> 07:17.640
And if you just try to.

07:18.560 --> 07:24.110
Both form and execution of the stimulus, you could clearly see that.

07:24.470 --> 07:27.140
And we have a value of one over here, right?

07:27.440 --> 07:31.970
So you have a reform, which is exactly following the reform.

07:32.750 --> 07:33.050
Right?

07:33.590 --> 07:41.330
Similarly, if you just use the food constitution and apply the value as one zero right now, why should

07:41.330 --> 07:42.080
policy?

07:42.620 --> 07:42.840
Right.

07:42.920 --> 07:45.140
And that is what is happening over here, right?

07:45.180 --> 07:47.510
And if you apply one one.

07:49.450 --> 07:55.660
OK, in this case, why should follow right away should follow the right.

07:55.690 --> 08:00.740
So here you could see now we have the view form, which is exactly equal to hate.

08:01.570 --> 08:06.860
So this is how you could verify and operation of the forest to one rate.
