So let us first try to understand an entire application code that will be utilizing in this demonstration,
right?
So first thing that we need to do is to include a mandatory file so far a better controller.
We have an expedient shortage.
Okay.
So this is the driver file that consists of all the EPAs, which allow us to work with the blocked memory
controller, right?
Then we require the next parameter to take to get any hardware related information.
Right to the first step is to initialize IBM, right?
And for that, we require structure.
We have BDM config and the instant structure right.
Then we declared on function.
We refer to it as beta mainnet.
OK, and this will perform an initialization of our block memory array.
First, we call lookup config where we pass the device, Eydie, and that can read the config structure
for us.
Finally, we call C of G initialized where we add an instance structure, config structure and the bees
address, and this will perform an initialization.
It will also return the status of an initialization rate.
So we are just verifying whether status is equal to existing success.
And if that is the case, well, we will be sending the messages speed M and it is successful, right
else we will just mention and it fit right.
So this is the process of initialization.
Now we go to a mean good.
So after an IT platform we called Beat I minute right now the process that we will be following to demonstrate
the usage of a memory where it's very simple.
What we're going to do is we declare an invisible pointer.
OK, we named it as this address and this basically store the base address of our beat em, right?
So how you get the gist, you basically go to an experimental or take flight and then you have one of
a type which is referred to as any x IBM controller base address.
So this is the base address of our beta will just be adding that value to a base address rate and then
we will be writing 15 samples to this location, right?
So how we do that?
So we declare an integer I initialize to a zero that will act as an iteration counter for us, right?
And then we utilize a for loop where we are storing or generating random data, which we want to store
in the memory rate so that it is very simple.
It is five cross-site.
So with each new iteration value, we will be generating a value which is multiple of right now and
then we'll be adding that to the base interest rate.
Now we already knew that since our memory is byte oriented, so we need to offset our next data by full
right and that is what we did over here.
So with each iteration value, we will be finding it will be base address plus multiple of four.
This is how we will be implementing an address and that will basically automatically offset our new
address value by food location data.
And that is what we want because our memory is by doing direct.