So let us try to understand an entire week that could be used to perform profiling with any set, right,
so we started first, including an important driver, right?
So we have a next smart card.
This is the day we fight for our excitement.
Ugandan experimental, which consist of all the hardware information to be declared to structure.
First one is a config structure and then we have an instant structure, right?
We declare our timeout any function which will perform initialization as well as a configuration of
our time right?
So first we call lookup config where we passed the device and then we call initialize where.
We insist on fixed structure and the visa rate.
So this two things will basically perform an initialization of a timer, and then we usually do not
perform the check, whether initialization is successful or we also do not perform the cell test when
we are utilizing a timer for a profile.
Right.
Then we proceed with the configuration.
So first we call the stop function.
Then we call the stop function, so this will basically stop our timer, and this will be our usual
procedure when we work around with a timer or a counter, right?
Then we read the existing option, which has been said by default in any timer, right?
And then we update and operation of a timer, so we weren't operating it down.
So whenever we work in a normal, we want to set the counter to the max value.
That is possible because that allows us to calculate the longer time that our application could be.
Right.
So the excitement is, I'll say, 32 to the MAX on that record store, and the counter is basically
to raise to 30 to minus one, right?
Just give us discount rate, which is what we have updated over here.
Right.
So this allows us to calculate the longest delay, which is possible that is it out?
What are you thinking of doing that you'll not be finding any application consuming that amount of time?
Right.
So.
We'll make sure that once we add the max possible value of a counter label to calculate the longer delays
also right, then we are resetting a timer and stopping the counter operation.
Right now, the application that we'll be utilizing for our profiling is this one, right?
So they'll print it and provide.
This is the statement that we are saying you want to consult, and our agenda is to calculate the number
of what it takes to sing this statement that is profiling to concentrate.
So just before the application that is this is a statement just before the statement we call the start
variable, which will store the value that are counter have against it today.
To know the value of a counter act, the specific instance.
We could just call a great value, so this will basically return the correct value of a counter.
So what we are doing this is an application that we are.
Filing suggest before it we are calculating the value of a counter right, so this function returns
the value of a counter, which we are storing in the stock, then as we complete an execution of our
application or this statement, we will just be calling an end.
OK, that will store again the current value of a counter, right?
So once we perform a subtraction of this to really well, to know the number of properties that we have
right now, the entire counter is working in a normal OK, so we could clearly see stock will have a
higher value as compared to a rate.
When we compute the difference, it will be stock minus right and that will return the number of property.
This makes sense.
So we will first be bringing the number of properties that are deliberate to provide consumers right,
and that will be simply by performing a subtraction between start any rate.
So once that is done, we are required to compute the time in nanosecond as well as microsecond rate.
Now, we already know the number of clock that will be simply to stack mindset.
And if you multiply this with the clock, they will able to calculate the time right thing.
I know the clock, but it will be simply an inverse of the clock frequency that we act when we say time,
right?
And we already know that the exact timer?
OK.
So if you just zoom in our blog to say so, we say timer work at a sexy clock and that is basically
an output clocking.
These are so clocking that I'd give out 100 megahertz.
So we are operating at 10 nanosecond rate.
So that is the single clock with a time, right?
So here we have been this two.
Minus it, OK, and then in.
So to convert, this student has to minus name, we just need to multiply by 10.
Right.
This will give us endless Tennant.
And then this two minus three and then two minus nine is basically the nanosecond rate.
So whenever you are in a situation where you want to bring the time in nanosecond, you just need to
multiply by the factor of 10, right?
And that is what we are doing in the next step, right?
So that time in nanosecond, but in 0d.
And the factor that we are writing is stent growth stock minus it, right?
And to calculate the value in microsecond.
Right.
So here we have two inches to minus eight.
So if you just separate and minus two and minus six, so this will be giving this microsecond.
And then there's two minus two will be giving a 0.01.
Right?
So if you just multiply the number of clock ticks with zero point zero one, we will be 60, be getting
the time in microsecond rate.
Again, we have a 13 point number, so we need to use three different.
This is what we did over here, the last British sprinter, because we want to bring the floating point
number the time in microsecond.
But since zero f will be a format specified right, the factor is 0.01 start minus.
Right now, remember to utilize Sprint, you should have the local memory of at least 128 GB in and
microvilli.
So while configuring a microvilli c that you select the local memory to be 128 GB when this is done
will just be building up our application project, right?
So that will generate Angella five for us, which will be utilizing to execute the code on an FPGA,
right?
Then we select.
Our application project, right click Debug s launch on heart rate.
So now will try to execute the code on two and FPGA rates, we have already connected our serial terminal
to CommSec's to operate at night six zero zero.
So now you could clearly see we have a profile seed money to the number of crafting that we can do is
around 5:30 for the value in nanosecond is five three four zero nanosecond and value in microsecond
is around five point eighty four.
Right.
So this is how we profile the single applications with the maximum profile time that we get out of 32
bit timer is around 42 second rate.
Would you not be finding any application consuming that much amount of time, right?
Whenever you have a situation where you want to profile all the different functions that you have in
your application, then we utilize an inverted feature that we get with NIST.
Right.
So now we'll start to discuss how we use NFC capable.