Now, what will do it since from the beginning, we are just working within a single bit input and output
board will consider an example that will give us an insight of how you use a multi bit size with input
and output.
OK, and then follow our De Développement exchange rate and to implement to understand this, we will
be considering this example.
So this this forward binary to Greek or converter to expression is very simple.
So we have a system and we are able to replace it with a basic logic.
It so you could clearly see in an internal of our system, we only have a be psychologically trait.
So hence we prefer to go with an dataflow more state right at an input site and B rate, which is of,
say, forward at an output site.
We have achieved OK, which is again of space for.
Now what we want to do is we will be declaring one new source code, right, and they will try to implement
this entire system, right?
So let it just go ahead.
And I'll a new design source to our existing project.
Great.
So we select designs to click on this plus button, right?
And will choose either to create design tools.
Click Next.
Right here we will be creating a new file, so just click on Create File and we name this as binary
to create right.
Then we click OK and then finish.
So this will automatically open up about where we could specify input and output.
Right?
So in this case, you could clearly observe that B is having a sides of orbit, right?
And the output that also have a size of orbit, right?
So we need to declare to put each of 64bit, one will have to input direction and either will have an
output direction, right?
So let's just go ahead and declare B right so that represent an input.
And whenever we want to specify a multipage size, we just need to click on this plus, right?
And then we need to specify the minimum and maximum size that we have for our vector.
So in this case, for bitrate so far forward a list, we will be zero and I maybe will be three, right?
This is what we want to specify.
The next one is our output port, so we'll just need this s t right.
The direction will be output.
Again, we will select both.
So again, the image besides will be three and a list besides will be C, right?
So we'll click OK.
This will automatically create a visual template for us where we will start writing article.
Right.
So first thing in a case when you have a multiple sources present in your project is to correctly choose
the top model, right?
So in this example, we want to work with the binary to create code converter, right?
So we'll just be choosing between G and then right click set to desktop, right?
This is the first thing that we do.
The next thing is we go to a simulation source and we choose again b 2G and then we will be setting
a desktop, right?
So whatever you see in a flow navigator will give will be performed with those sources, which are to
say, desktop rates.
And now we go to a design source and we'll start modifying.
So here we have our template right now to access the single bit out of a vector.
The process is very simple, right?
So if you you just need to use the parentheses, right?
So this is a bit different as compared to the C language to remember that C is case sensitive, right?
And visually they insensitive.
Write to whatever rules that you follow in the C may not be valid in of Rachel Rachel.
This could be a good point to remember that we and C are not similar, right?
So they are different.
So in a C, OK, we use the square bracket to access an element in an array, but in a case of a version.
OK.
So whenever you are in a situation where you want to access the bit from an vector, you just need to
use the parentheses, right?
So let me just go ahead and analyze the diagram, right?
So here we have a G3 and that is simply close to right.
So we will be going ahead to access the MSP bitrate to represent the MSP of our output.
Right.
So G, and then we will be utilizing the round bracket or apprentices, right?
Then we use three.
This is how we access the single bit off directory.
Then this will be close to and since we are working with a lead of low modelling state, so we need
to use the concurrent signal assignment operator.
So we use the less than or equal to in the when we want to add the signal assignment operator.
Right.
And this is equal to the MSP based off our input, right?
So be again apparent.
This is a sign that three, right?
So this is how you access the single digit of the vector, right?
In the next case, we have G2.
Rachel G2 will be equal to be three XOR with B2, right?
So this is an expression that we want to add or.
Here, so to access the G2 rate, so it will be G, then don't break it to rate and this will be equal
to be three OK and two axes and it we just need to add a keyword XOR.
OK.
And we do remember this is a very scarce incentive due to you could use XOR in a lower case as well
as uppercase right in the next expression that we have is given will be close to be two x r with B.
So we go ahead the achievement rate and this will be equal to B2.
OK, XOR with.
Bill, this makes its.
And the last expression is for zero.
And this will be equal to be when X or with.
The seal, right?
So this completes the entire goal.
Now, as soon as our goal is completed, we'll get what we're going to do is we will be saving our by
pressing control this night.
So since we already set our morning desktop, we could go ahead, do an ideal analysis and also the
schematic right?
So if you observe, OK, we have one, two and three x.org it and one direct connection between input
and output, right?
So this exactly matches to what we have over here, right?
The next step is alert.
Whatever the next step is, what we're going to do is we'll be adding some random binary values.
So again, we'll be able to win on in simulation, whether we get an equivalent green number, right?