On Fri, Nov 17, 2006 at 10:23:01PM -0800, Oussama S. wrote:
Has anyone done any such thresholding measurements? Is there a good or
‘basic’ threshold that I could use for my measurements?
Any suggestion would be greatly appreciated.
It’s hard to do remote diagnosis, but here are some observations:
Matt and I have successfully used this strategy to debug code running
in the FPGA. It work as expected.
Using the standard fpga build, this stuff is wired to the pins if
debug is enabled:
rx_debugbus is connected like this:
// Debugging Aids
assign debugbus = RD;
assign debugbus = rx_overrun;
assign debugbus = read_count;
assign debugbus = rx_full;
assign debugbus = rxstrobe;
assign debugbus = usbclk;
assign debugbus = have_pkt_rdy;
assign debugbus[10:7] = store_next;
//assign debugbus[15:11] = rxfifolevel[4:0];
assign debugbus[15:11] = bitwidth;
debug_0 comes out on TX_A
debug_1 comes out on RX_A
debug_2 comes out on TX_B
debug_3 comes out on RX_B
Note that the USB clock is on bit 5 of debug_0 (== TX_A)
It will be running at 48 MHz. If you output enable and FR_DEBUG_EN
you will see this! See more below
You have to:
- output enable the pins
- write a suitable value to FR_DEBUG_EN register
u._write_fpga_reg(FR_DEBUG_EN, 0xf) will enable all debug outputs
This is only safe if you are using basic or LF tx/rx d’boards.
Are you sure that you know how to drive your logic analyzer?
Have you tried probing the pins with an oscilloscope?
Do you have a proper ground hooked up to your LA and/or oscope?
I have just confirmed this info as follows:
USRP with only a BASIC_TX on side A
From the command line I typed this:
[eb@dee ~]$ python
Python 2.4.2 (#1, Oct 13 2006, 17:10:51)
[GCC 4.1.0 (SUSE Linux)] on linux2
Type “help”, “copyright”, “credits” or “license” for more information.
from gnuradio import usrp
from usrp_fpga_regs import *
Then I fired up my trust o’scope and probed the pin labeled io_tx(5) on
J50 on the Basic Tx. To get this I used a very short ground
connection (about 1/4 inch) from my scope probe to one of the pins
labeled DGND on J50
The o’scope screen shot is attached, and here’s a link to the probing