Send USRP-users mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of USRP-users digest..."
Today's Topics:
1. Write registers on USRP2 FPGA (Eduardo Lloret Fuentes)
2. 100 Msps FPGA code for N210 (Marc Epard)
3. Re: [Discuss-gnuradio] Write registers on USRP2 FPGA (Nick Foster)
----------------------------------------------------------------------
Message: 1
Date: Thu, 17 Mar 2011 14:10:10 +0100
From: Eduardo Lloret Fuentes <[email protected]>
To: discuss-gnuradio <[email protected]>,
[email protected]
Subject: [USRP-users] Write registers on USRP2 FPGA
Message-ID:
<[email protected]>
Content-Type: text/plain; charset="iso-8859-1"
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?
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.ettus.com/pipermail/usrp-users_lists.ettus.com/attachments/20110317/1a67b808/attachment-0001.html>
------------------------------
Message: 2
Date: Thu, 17 Mar 2011 10:27:06 -0500
From: Marc Epard <[email protected]>
To: [email protected]
Subject: [USRP-users] 100 Msps FPGA code for N210
Message-ID: <[email protected]>
Content-Type: text/plain; charset="us-ascii"
I've had some requests for the code to do 100 Msps on the N210, so I posted the
ISE project, Verilog code, and a built image at https://public.me.com/mepard.
It works by filling the SRAM with samples at full rate without decimation,
scaling, or downconversion, then dribbling them out the Ethernet in the normal
fashion.
Some things you should know:
* It cannot be used to transmit. Transmit support used the SRAM, which I needed
to buffer the received samples.
* It works with the current UHD firmware and host code.
* When you issue_stream_cmd, request no more than 2^18 samples, the size of the
SRAM. You can issue another stream command later to get another batch, but you
can't get more than 256K contiguous samples.
* The rx sample rate is ignored. For good measure, I set it to the usual
maximum of 25 Msps.
* Since there's no downconversion, you'll only get whatever center frequencies
the DBSRX2 supports and you can't use lo offsets.
The uhd_streamer.cpp app, also posted, is what we've used to do our testing.
Enjoy.
-Marc
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.ettus.com/pipermail/usrp-users_lists.ettus.com/attachments/20110317/0a82857c/attachment-0001.html>
------------------------------
Message: 3
Date: Thu, 17 Mar 2011 09:54:12 -0700
From: Nick Foster <[email protected]>
To: Eduardo Lloret Fuentes <[email protected]>
Cc: [email protected]
Subject: Re: [USRP-users] [Discuss-gnuradio] Write registers on USRP2
FPGA
Message-ID: <1300380852.11493.34.camel@crapshoot>
Content-Type: text/plain; charset="UTF-8"
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
> [email protected]
> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
------------------------------
_______________________________________________
USRP-users mailing list
[email protected]
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
End of USRP-users Digest, Vol 7, Issue 29
*****************************************