[USRP-users] Problem with reading from two rfnoc blocks

2018-05-22 Thread Taliver Heath via USRP-users
Greetings! I'm having some issues with talking to two channels at the same time. I'm building from the maint branch, and if I use just one channel, I get readings, but if I do two channels, the device simply hangs and never responds. The following is the sample code for this: // Compile with:

Re: [USRP-users] A question about accessing registers on a device3

2018-03-09 Thread Taliver Heath via USRP-users
And I was able to solve my own problem after I got over the fear of bricking. :) Yes, sr_write writes, while user_reg_read reads, and the offset is totally dependent upon the FPGA implementation. (Noted for future people searching). On Fri, Mar 9, 2018 at 8:55 AM, Taliver Heath

[USRP-users] A question about accessing registers on a device3

2018-03-09 Thread Taliver Heath via USRP-users
We built an FPGA version off of the radio_block, re-using the registers as: SR_BASE = 160 SR_DB_GPIO= SR_BASE + 8’d32 = 192 SR_THRESHOLD =SR_BASE + 8'd40; ...etc RB_MISC_IO = RB_BASE + 0; RB_SPI = RB_BASE + 1; RB_LEDS = RB_BASE + 2; ..etc But now I'm having a real

[USRP-users] Question about testing or mocking

2018-03-07 Thread Taliver Heath via USRP-users
Hello USRP users! I'm in the process of writing code that reads from a USRP device. I'd like to make sure that I'm calling things like they are expected to be called, without having to connect and run against an actual device. Towards this end, I was about to start by writing my own "test"

Re: [USRP-users] How to Access a user register in fpga of X310 using UHD (3.10.2)

2017-09-12 Thread Taliver Heath via USRP-users
And following up on this -- how do you enumerate the names of the registers? They seem to be present in the code, but "enumerate_registers" doens't do anything: void ListAllRegisters(uhd::usrp::multi_usrp::sptr usrp) { auto list = usrp->enumerate_registers(); cout << "Register List (" <<

Re: [USRP-users] Porting from x86 to armv7 (Ettus E310) - performance issues

2017-09-06 Thread Taliver Heath via USRP-users
I had the same issues -- the big performance eater in my case was anything that was doing modulo in a tight loop. So, if you have something like: for ( int i = 0; i < 1000; i++) { array[i % arr_size] = ... } You'll take a pretty big hit. On Wed, Sep 6, 2017 at 4:00 PM, Tom Bereknyei via

[USRP-users] Enumerate Registers on an X310

2017-09-06 Thread Taliver Heath via USRP-users
Hello wonderful USRP team! I'm working on a custom FPGA design for an X310 system, and to get a baseline on control, we're trying to do a simple "enumaerate_registers". The problem is, with the base rfnoc image install for the X310, we're not seeing any registers being shown when I do the