[USRP-users] Accessing a customized register of FPGA code from UHD
Isen I-Chun Chao
chao926 at gmail.com
Tue Apr 14 05:03:35 EDT 2015
Thanks. I was aware of the file, setting_reg.hpp, and I just did not know
what address number I should set up.
Also, following your instruction, I got a piece of code segment below,
which is from control/gpio_atr:
setting_reg #(.my_addr(BASE+2), .width(WIDTH)) reg_tx
However, I still have no idea how to access this variable from Applications
like UHD program. Is there any example code available for us? I know Marcus
has been dedicated to GNURadio S/W part. But I am sure there are someone
who is completely familiar with FPGA related problems. Could somebody
helps? I would very appreciate it.
*Best Regards,Isen I-Chun Chao*
On Wed, Apr 8, 2015 at 4:32 AM, Marcus Müller <usrp-users at lists.ettus.com>
> Commenting on code that I don't know is a bit hard, but:
> you will need to have a working instance of setting_reg; after that,
> you'll be able to use the register just like the other registers you'd find
> in your uhd/host/lib/usrp/x300/x300_regs.hpp.
> Git grep is really helpful finding examples for the usage of setting_reg:
> cd fpga/usrp3/lib
> git grep --context 3 setting_reg
> On 04/05/2015 04:38 AM, Isen I-Chun Chao via USRP-users wrote:
> I have a customized register in x300_core.v, say named *my_var.* I would
> like to get the register value from the application layer through UHD or
> I wonder if there any example in UHD can be used for my reference or anyone
> could provide some advice.
> Thank you very much.
> *Best Regards,Isen I-Chun Chao*
> USRP-users mailing listUSRP-users at lists.ettus.comhttp://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
> USRP-users mailing list
> USRP-users at lists.ettus.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the USRP-users