aboutsummaryrefslogtreecommitdiffstats
path: root/firmware/usrp3/x300/x300_debug.py
diff options
context:
space:
mode:
authorAshish Chaudhari <ashish@ettus.com>2016-06-23 16:22:06 -0700
committerAshish Chaudhari <ashish@ettus.com>2016-07-07 18:37:43 -0700
commit7cc16e5be09d29495db3e4076330ee66c8eeca24 (patch)
tree7d83445e4416447372e6852aa8a21daa4de87710 /firmware/usrp3/x300/x300_debug.py
parentabc4790ae4be6d542ea39c8ce42045c3fec40b9d (diff)
downloaduhd-7cc16e5be09d29495db3e4076330ee66c8eeca24.tar.gz
uhd-7cc16e5be09d29495db3e4076330ee66c8eeca24.tar.bz2
uhd-7cc16e5be09d29495db3e4076330ee66c8eeca24.zip
x300: UHD is now compatible with FPGA images with Aurora support
- UHD and ZPU is now aware of Aurora SFP+ transceivers in the FPGA image - Added script to exercise Aurora BIST features
Diffstat (limited to 'firmware/usrp3/x300/x300_debug.py')
-rwxr-xr-xfirmware/usrp3/x300/x300_debug.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/firmware/usrp3/x300/x300_debug.py b/firmware/usrp3/x300/x300_debug.py
index 1596929ad..f5dfad7f6 100755
--- a/firmware/usrp3/x300/x300_debug.py
+++ b/firmware/usrp3/x300/x300_debug.py
@@ -110,7 +110,7 @@ class ctrl_socket(object):
(flags, rxseq, addr, data) = unpack_reg_peek_poke_fmt(in_pkt)
if flags & X300_FW_COMMS_FLAGS_ERROR == X300_FW_COMMS_FLAGS_ERROR:
raise Exception("X300 peek of address %d returns error code" % (addr))
- print("PEEK of address %d(0x%x) reads %d(0x%x)" % (addr,addr,data,data))
+ return data
def poke(self,poke_addr,poke_data):
out_pkt = pack_reg_peek_poke_fmt(X300_FW_COMMS_FLAGS_POKE32|X300_FW_COMMS_FLAGS_ACK, seq(), poke_addr, poke_data)
@@ -118,7 +118,6 @@ class ctrl_socket(object):
(flags, rxseq, addr, data) = unpack_reg_peek_poke_fmt(in_pkt)
if flags & X300_FW_COMMS_FLAGS_ERROR == X300_FW_COMMS_FLAGS_ERROR:
raise Exception("X300 peek of address %d returns error code" % (addr))
- print("POKE of address %d(0x%x) with %d(0x%x)" % (poke_addr,poke_addr,poke_data,poke_data) )
########################################################################
@@ -159,9 +158,12 @@ if __name__=='__main__':
if options.peek is not None:
addr = options.peek
- status.peek(addr)
+ data = status.peek(addr)
+ print("PEEK of address %d(0x%x) reads %d(0x%x)" % (addr,addr,data,data))
if options.poke is not None and options.data is not None:
addr = options.poke
data = options.data
status.poke(addr,data)
+ print("POKE of address %d(0x%x) with %d(0x%x)" % (addr,addr,data,data))
+