It seemed initially successful, the first thing that we do is to go to file export export hardware,
and this will be including bits.
So click next and we will be utilizing the same project directly to export our extensive file.
So once I exploded successful, we go to tools and then we launch our site, right?
So we'll be choosing the same project director where we have an excessive rate, so we know that our
project is in Project and 60, so we'll just choose the browse button and which would choose the same
territory for a light.
This workspace ended, then we will be clicking on a launch for the.
OK, so let's start to create an platform project, so we select to create platform project will just
be naming this profile.
We'll click next.
And here we want to use and hardware that we have created in the library.
So to include that, the process is very simple.
You just need to click on Browse Button, go to this project director and here you have an extensive
library so that contain all the information related to anhydride, so lets you select that just click
finish to.
This will automatically create a platform project consisting of an hardware specification that we have
developed in that revival, right?
So once we have our platform project ready.
You could clearly notice, though, out of date status, right?
So we first proceed to build our platform project, so control and be.
To start the process of building the project.
So once Bill is finished, we will select the platform project, right click on it, select new and
then we will be choosing an application project great.
So the name that will be providing for our application project is file.
The score is DeBlois, and then we click next straight.
Here also, we will be choosing an Halloway template.
This is exactly what we've been doing from the beginning right to the process remain exactly similar.
So once we create an application project, right?
So here we will be adding to schooling and had to wait and see, right?
So I've already created one who will be discussing what is inside the code.
First, we proceed to.
Do some mandatory said so we select our platform project right out here, if you go here, you have
we are aware where you have a board support package.
So we select good support package we click on.
Modify BSP setting, this is the first thing that we do.
We go to a stand alone, right?
And here you have and enable software you profiling, right?
So the default option is false.
We will be clicking on it and then we choose to.
Right now, this required the timer.
So if we just expiring the window right and click on this arrow, you'll will be finding it required
a timer to perform a profile, right?
So the description of it is like this, right?
So I just be reading the description, so specify the timer to be used for profiling.
Flower power is a system specifying no use video timer for alarm systems specifying known to use an
assumed time, right?
So in the case of a micro police, we do need to add an independent timer, but in the case of an armed
system, it will be utilizing an ICU timer, right?
So we do not need to choose any option over here.
We just be selecting the default option, which is not right.
So once this is done, we go to drivers bias.
Seven car takes the night, right?
So here where you see an Excel compiler flag, OK, to enable profiling, we need to add to flag so
we go ahead and add Dash.
This is the first thing that we do space dash, right?
So these are the two extra flags that we need to add in an extra compiler flag and then hit, right?
So when you click on anarchy, you'll be finding it automatically start the process of building an entire
project, right?
And here you find out of this.
So again, proceed to click on control and be to initiate the process of building a library as well
as an entire platform project.
Right?
So here, -- will succeed without any rate once this is done right.
So the next important setting that we need to do is.
OK, so let's first discuss and cool that we have.
So this is all that you need to do in that Black Farm project.
Great.
So you just need to go to a board support package, OK, modify be setting and then you need to go to
a stand alone.
OK, here you need to enable and software intrusive profiling, OK, and for our processing system,
we do not need to add any timer by default, which was an issue timer.
You go to use seven cortex.
And then in an extra compiler flag, you need to add dashti and that speech.
So these are the two things that you need to do with this is done right.
We'll just be discussing an entire code that we are.
Profiling, OK, in this specific example, and so since we have utilized IP to interact with an.
OK, so we proceed first with an initialization of opportunities, so we declared a config structure
and insert a structure.
OK, then we call lookup config.
Here we pass the device, ideal for GPI.
This will return the config structure, which we are utilizing in the CMG initialize along with an infrastructure
and a beach address book, to perform an initialization.
So if status is exists, this axis will just be mentioning GPIO successfully initialize and we will
be mentioning GPI when week, right?
We are also setting up the redirection.
We want to utilize our four entities which are available, so we need to set the direction to be an
right.
So we just need to add a zero to set any of the pain as an output rate, and we are again utilizing
only a single channel.
Right now, we declared the three functions here one, nearly three and five.
So these are basically writing that down to any need.
In fact, we are writing the same data.
We have just added this as a random function.
So OK, so that we could provide it.
So we are utilizing discrete right and then writing some random values on Grammarly.
Now, if you go to a mean, so we have energy platform Jupiler and this will perform an initialization
for you.
And then we are calling all the functions or here.
So we are also printing in Hallock.
So this is an entire application that we have.
So you could add any number of function in your Halloway Nazi and all of them will be profiling at the
same rate.
So once you complete your application.
Right.
So here you will see we have profile undisclosed software in the school system and then profiler the
school software, which we just stand alone all seven Cortex-A9.
So you need to select that right click and then you have C or C++, basically.
So here you need to go.
And then in a setting, right, so you see a profiling or do you need to enable the profiling?
Again, you could see the flag which is mentioned is.
That's right, so this is the thing that you need to enable in an C or C++ been sitting next to one,
this instant click apply and apply.
So this is one more setting that you need to configure.
Once this is done and now we are ready to execute our quick vote to select our style on the seven right
click and then you have a runner, right?
So just click on run configuration.
OK, now here you would see a multiple option.
Let's see who I would GDB.
And this single application debug and SBM analysis.
So just double click on a single application debug rate.
So here you have a debugger.
Been created, right, so you need to go to an application, tap.
OK.
And then in an advance option, you just need to click on it.
So when this is done, you now see another enabled profiling option.
You just need to choose the frequency that you want.
Great.
So you may want to work on one megahertz frequency data.
So that is the frequency where we will be receiving a sampling, a sample from our different application
and then we profile you.
Great.
So here you could see we have one two three four zero, so we need to add two more zero and we need
to specify an address.
OK, so this should be not coinciding with the instruction code.
OK, well, we will be storing all the samples that we are utilizing for profiling.
So usually we add an address like this to one zero zero zero zero zero zero zero, right?
So this this address will work just fine.
OK.
And then we click, OK, right?
So once you do this, you just need to apply and click on right now.
At this point, you should have connected your FPGA board to your PC.
OK, so as soon as we run our application, it will automatically program and FPGA start profiling and
create a samples.
OK?
That will be stored in the memory location that we have choosing.
And then we automatically get the profile file, right?
So you could see we get the binary file, which consist of all the provided data so we can just click
on OK, and this will automatically open up the viewer.
Be a very good understanding the resources used by different functions which are present in our.
So you could say hello, Darcy is consuming 50 percent off, I keep say if you just click on the zero
to your Google Seeds UPI on it, it's consuming fiber linearly one.
It's consuming zero point zero percent, allegedly at eighty five.
We're get into one until it this way.
What you could do is so let's assume you have a multiple functionality in your system.
OK, and then this way you could analyze the percentage of the time consumed by the different functions,
and then you could optimize the specific function.
Right.
So this is an in-built feature that we get with why it is 80.
You profile your entire application to optimize it for the CPU and usage.