WEBVTT

00:00.070 --> 00:06.390
Now, what will do it since from the beginning, we are just working within a single bit input and output

00:06.390 --> 00:13.350
board will consider an example that will give us an insight of how you use a multi bit size with input

00:13.350 --> 00:14.010
and output.

00:14.190 --> 00:20.340
OK, and then follow our De Développement exchange rate and to implement to understand this, we will

00:20.340 --> 00:21.750
be considering this example.

00:21.760 --> 00:25.650
So this this forward binary to Greek or converter to expression is very simple.

00:25.650 --> 00:29.340
So we have a system and we are able to replace it with a basic logic.

00:29.350 --> 00:35.700
It so you could clearly see in an internal of our system, we only have a be psychologically trait.

00:35.700 --> 00:41.970
So hence we prefer to go with an dataflow more state right at an input site and B rate, which is of,

00:41.970 --> 00:43.820
say, forward at an output site.

00:43.830 --> 00:47.030
We have achieved OK, which is again of space for.

00:47.210 --> 00:53.700
Now what we want to do is we will be declaring one new source code, right, and they will try to implement

00:53.700 --> 00:55.700
this entire system, right?

00:56.700 --> 00:57.990
So let it just go ahead.

00:57.990 --> 01:01.330
And I'll a new design source to our existing project.

01:01.330 --> 01:01.590
Great.

01:01.590 --> 01:04.800
So we select designs to click on this plus button, right?

01:04.800 --> 01:06.980
And will choose either to create design tools.

01:07.000 --> 01:07.770
Click Next.

01:07.770 --> 01:15.600
Right here we will be creating a new file, so just click on Create File and we name this as binary

01:15.600 --> 01:17.130
to create right.

01:17.550 --> 01:19.770
Then we click OK and then finish.

01:19.990 --> 01:23.940
So this will automatically open up about where we could specify input and output.

01:24.120 --> 01:24.360
Right?

01:24.840 --> 01:30.000
So in this case, you could clearly observe that B is having a sides of orbit, right?

01:30.210 --> 01:34.800
And the output that also have a size of orbit, right?

01:34.800 --> 01:41.460
So we need to declare to put each of 64bit, one will have to input direction and either will have an

01:41.460 --> 01:42.510
output direction, right?

01:42.510 --> 01:46.650
So let's just go ahead and declare B right so that represent an input.

01:46.830 --> 01:51.750
And whenever we want to specify a multipage size, we just need to click on this plus, right?

01:51.990 --> 01:58.640
And then we need to specify the minimum and maximum size that we have for our vector.

01:58.860 --> 02:04.960
So in this case, for bitrate so far forward a list, we will be zero and I maybe will be three, right?

02:05.130 --> 02:06.690
This is what we want to specify.

02:06.690 --> 02:10.700
The next one is our output port, so we'll just need this s t right.

02:11.040 --> 02:12.300
The direction will be output.

02:12.300 --> 02:13.710
Again, we will select both.

02:13.980 --> 02:18.690
So again, the image besides will be three and a list besides will be C, right?

02:18.690 --> 02:19.680
So we'll click OK.

02:19.920 --> 02:25.170
This will automatically create a visual template for us where we will start writing article.

02:25.240 --> 02:25.440
Right.

02:25.440 --> 02:31.560
So first thing in a case when you have a multiple sources present in your project is to correctly choose

02:31.560 --> 02:32.640
the top model, right?

02:32.700 --> 02:37.170
So in this example, we want to work with the binary to create code converter, right?

02:37.170 --> 02:43.410
So we'll just be choosing between G and then right click set to desktop, right?

02:43.440 --> 02:45.210
This is the first thing that we do.

02:45.450 --> 02:51.270
The next thing is we go to a simulation source and we choose again b 2G and then we will be setting

02:51.270 --> 02:52.050
a desktop, right?

02:52.890 --> 02:59.280
So whatever you see in a flow navigator will give will be performed with those sources, which are to

02:59.280 --> 03:00.450
say, desktop rates.

03:00.450 --> 03:04.710
And now we go to a design source and we'll start modifying.

03:05.010 --> 03:10.470
So here we have our template right now to access the single bit out of a vector.

03:10.500 --> 03:11.890
The process is very simple, right?

03:11.910 --> 03:15.030
So if you you just need to use the parentheses, right?

03:15.030 --> 03:21.540
So this is a bit different as compared to the C language to remember that C is case sensitive, right?

03:21.660 --> 03:24.210
And visually they insensitive.

03:24.210 --> 03:32.130
Write to whatever rules that you follow in the C may not be valid in of Rachel Rachel.

03:32.340 --> 03:36.630
This could be a good point to remember that we and C are not similar, right?

03:36.630 --> 03:37.500
So they are different.

03:37.770 --> 03:45.420
So in a C, OK, we use the square bracket to access an element in an array, but in a case of a version.

03:45.540 --> 03:45.940
OK.

03:45.960 --> 03:51.330
So whenever you are in a situation where you want to access the bit from an vector, you just need to

03:51.330 --> 03:52.650
use the parentheses, right?

03:52.950 --> 03:56.280
So let me just go ahead and analyze the diagram, right?

03:56.290 --> 04:00.150
So here we have a G3 and that is simply close to right.

04:00.390 --> 04:07.260
So we will be going ahead to access the MSP bitrate to represent the MSP of our output.

04:07.530 --> 04:07.870
Right.

04:07.980 --> 04:13.600
So G, and then we will be utilizing the round bracket or apprentices, right?

04:13.620 --> 04:14.910
Then we use three.

04:15.090 --> 04:19.160
This is how we access the single bit off directory.

04:19.620 --> 04:23.880
Then this will be close to and since we are working with a lead of low modelling state, so we need

04:23.880 --> 04:27.980
to use the concurrent signal assignment operator.

04:28.140 --> 04:36.810
So we use the less than or equal to in the when we want to add the signal assignment operator.

04:37.150 --> 04:37.290
Right.

04:37.320 --> 04:40.950
And this is equal to the MSP based off our input, right?

04:40.950 --> 04:42.900
So be again apparent.

04:42.900 --> 04:44.480
This is a sign that three, right?

04:44.500 --> 04:49.170
So this is how you access the single digit of the vector, right?

04:49.410 --> 04:52.110
In the next case, we have G2.

04:52.110 --> 04:57.420
Rachel G2 will be equal to be three XOR with B2, right?

04:57.420 --> 04:59.700
So this is an expression that we want to add or.

04:59.760 --> 05:07.140
Here, so to access the G2 rate, so it will be G, then don't break it to rate and this will be equal

05:07.230 --> 05:12.770
to be three OK and two axes and it we just need to add a keyword XOR.

05:13.170 --> 05:13.490
OK.

05:13.740 --> 05:21.270
And we do remember this is a very scarce incentive due to you could use XOR in a lower case as well

05:21.270 --> 05:27.300
as uppercase right in the next expression that we have is given will be close to be two x r with B.

05:27.870 --> 05:34.440
So we go ahead the achievement rate and this will be equal to B2.

05:35.070 --> 05:36.630
OK, XOR with.

05:37.650 --> 05:39.300
Bill, this makes its.

05:40.440 --> 05:43.160
And the last expression is for zero.

05:43.210 --> 05:48.280
And this will be equal to be when X or with.

05:49.030 --> 05:50.380
The seal, right?

05:50.680 --> 05:52.660
So this completes the entire goal.

05:52.690 --> 05:58.330
Now, as soon as our goal is completed, we'll get what we're going to do is we will be saving our by

05:58.330 --> 06:00.160
pressing control this night.

06:00.170 --> 06:05.620
So since we already set our morning desktop, we could go ahead, do an ideal analysis and also the

06:05.620 --> 06:06.460
schematic right?

06:07.560 --> 06:13.230
So if you observe, OK, we have one, two and three x.org it and one direct connection between input

06:13.230 --> 06:13.980
and output, right?

06:13.990 --> 06:17.880
So this exactly matches to what we have over here, right?

06:18.200 --> 06:19.960
The next step is alert.

06:20.040 --> 06:25.470
Whatever the next step is, what we're going to do is we'll be adding some random binary values.

06:25.470 --> 06:29.790
So again, we'll be able to win on in simulation, whether we get an equivalent green number, right?
