Page 1 of 1

How the data address works in the red pitaya

Posted: Fri Apr 20, 2018 12:46 pm
by trinhlinh
Hello everyone,
I am currently a trainee and also a beginner with RP.
I'm working on a project making a radar using RP transceiver and I do not understand how the data addresses were chosen as in this picture (why the sts_0 is 0x4000_0000, the cfg is 0x4000_1000 and 0x4000_3000, etc). Can we change them as we wish?
address_data.png
And now what should I do if I would like to add a 76-bit data in this block.
Thanks for any suggestions.

Re: How the data address works in the red pitaya

Posted: Fri Apr 20, 2018 1:00 pm
by pavel
Can we change them as we wish?
Yes.
And now what should I do if I would like to add a 76-bit data in this block.
What block?

If you want to add bits to the sts and cfg registers, then you don't need to change their addresses. Just change the number of bits in the configuration of the sts and cfg registers. The name of the parameter is STS_DATA_WIDTH or CFG_DATA_WIDTH.

Re: How the data address works in the red pitaya

Posted: Fri Apr 20, 2018 1:22 pm
by trinhlinh
Thank you for your answer Pavel.
What should i do if i would like to write 76 bits (4 bits at the beginning and 3 times 24 bits after) in the block sts_0 and retrieve them after? Can you give an example if it is possible? Thank you

Re: How the data address works in the red pitaya

Posted: Fri Apr 20, 2018 1:27 pm
by pavel
Can you give an example if it is possible?
Sorry, I can't give you more examples than you already have in my repository. I'd suggest you to look at how other bits are already connected to the sts registers and do something similar.