On Thu, 2011-03-17 at 14:10 +0100, Eduardo Lloret Fuentes wrote:
> Hello!
>
> I was successful trying to add my own FPGA code into the original FPGA
> project. I just added a module into the u2_rev3.v and bypass the DSP
> pipeline. So, all the original FPGA code is there and the firmware is
> running. Now, I would like to modify some registers of my own FPGA
> design. Maybe using the I2C or the SPI standards already implemented
> via ethernet.
>
> I read that for the USRP there is a command, "usrper i2c_write
> i2c_addr <hex-string>" that can be used to modify some existing
> registers.
>
> Is there anything similar for USRP2?
>
> Is there any other way to modify an existing register (from the
> original code) or a custom register (from my own code) via ethernet?
There are peek32 and poke32, which are both methods in the USRP2 lib and
are brought out to the Python interface. These allow you to read and
write to FPGA registers. I assume you're not really trying to write I2C
or SPI, but to write to FPGA registers -- if you want to access the I2C
or SPI buses, you'll have to either modify the USRP2 firmware or use UHD
and write some custom code.
--n
>
> I would like to clarify that I am using the gnuradio master branch but
> if there is a way to write these registers using the UHD driver it is
> also quite interesting for me.
>
> A lot of thanks in advance.
>
> Eduardo.
> _______________________________________________
> Discuss-gnuradio mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio