How the data address works in the red pitaya

Applications, development tools, FPGA, C, WEB
Post Reply
trinhlinh
Posts: 2
Joined: Fri Apr 20, 2018 9:21 am

How the data address works in the red pitaya

Post by trinhlinh » Fri Apr 20, 2018 12:46 pm

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.
You do not have the required permissions to view the files attached to this post.

pavel
Posts: 516
Joined: Sat May 23, 2015 5:22 pm

Re: How the data address works in the red pitaya

Post by pavel » Fri Apr 20, 2018 1:00 pm

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.

trinhlinh
Posts: 2
Joined: Fri Apr 20, 2018 9:21 am

Re: How the data address works in the red pitaya

Post by trinhlinh » Fri Apr 20, 2018 1:22 pm

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

pavel
Posts: 516
Joined: Sat May 23, 2015 5:22 pm

Re: How the data address works in the red pitaya

Post by pavel » Fri Apr 20, 2018 1:27 pm

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.

Post Reply
jadalnie klasyczne ekskluzywne meble wypoczynkowe do salonu ekskluzywne meble tapicerowane ekskluzywne meble do sypialni ekskluzywne meble włoskie

Who is online

Users browsing this forum: Google [Bot] and 7 guests