|
From: | Roshan Baliga |
Subject: | [Discuss-gnuradio] reading and writing fpga registers |
Date: | Thu, 31 May 2007 09:48:29 -0700 |
User-agent: | Thunderbird 2.0.0.0 (X11/20070326) |
Hello Everyone,I'm trying to read and write the fpga registers using just libusrp (sorry Eric!).
(1) My write returns "true", but the read returns 0, regardless of which fpga register I read/write to (I've tried a few). For example:
<snip> if (utx->_write_fpga_reg(FR_ADC_OFFSET_0,0x7777)) <snip> int readregvalue2 = (utx->_read_fpga_reg(FR_ADC_OFFSET_0)); I must be doing something wrong here.(2) I believe that the user-defined FPGA registers don't exist in the verilog code. Do I need to add them manually? I was going to do that in usrp_std.v. I'm happy to submit a patch if I get things working where you can IFDEF the extra registers out if you need the space.
-Roshan
[Prev in Thread] | Current Thread | [Next in Thread] |