[USRP-users] error in rfnoc_fosphor.grc

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

[USRP-users] error in rfnoc_fosphor.grc

Martin Braun via USRP-users

Not sure if this is a gnuradio error or a RFNOC error but I will start here and please redirect me if I have the wrong forum.

 

When I opened rfnoc_fosphor.grc example the flowgraph indicated the following error and would not give me the green arrow to run:

I am working with the latest master branch of gr-ettus. Does this assume a particular version of gnuradio and or uhd? I have the latest master branch of gnuradio and the lastest rfnoc-devel branch of uhd.

 

Thanks

Jeff

 

Error 0:

Connection (

  Block - uhd_rfnoc_streamer_ddc_0 - RFNoC: DDC(uhd_rfnoc_streamer_ddc)

    Source - out(0)

  Block - uhd_rfnoc_streamer_window_0 - RFNoC: Window(uhd_rfnoc_streamer_window)

    Sink - in(0)

):

  Source IO size "8" does not match sink IO size "8192".

 

Error 1:

Connection (

  Block - uhd_rfnoc_streamer_radio_0 - RFNoC: Radio(uhd_rfnoc_streamer_radio)

    Source - out(0)

  Block - uhd_rfnoc_streamer_ddc_0 - RFNoC: DDC(uhd_rfnoc_streamer_ddc)

    Sink - in(0)

):

  Source IO size "8192" does not match sink IO size "8".

 

 


_______________________________________________
USRP-users mailing list
[hidden email]
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
Reply | Threaded
Open this post in threaded view
|

Re: [USRP-users] error in rfnoc_fosphor.grc

Martin Braun via USRP-users
Hi,

> When I opened rfnoc_fosphor.grc example the flowgraph indicated the
> following error and would not give me the green arrow to run:
>
> I am working with the latest master branch of gr-ettus. Does this assume a
> particular version of gnuradio and or uhd? I have the latest master branch
> of gnuradio and the lastest rfnoc-devel branch of uhd.

Yeah those are "normal" ...  GRC doesn't deal very well with packet
size and the DCC block don't have a "packet size" attribute.

With F5/F6 you can force GRC to generate / run flowgraphs with errors
and they'll work fine.

Cheers,

   Sylvain

_______________________________________________
USRP-users mailing list
[hidden email]
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
Reply | Threaded
Open this post in threaded view
|

Re: [USRP-users] error in rfnoc_fosphor.grc

Martin Braun via USRP-users
Sylvain-

Ok that does not seem to be an option for me, it is all grayed out. Nevertheless I just ran the .py from the command line and I get the following output at the end of all the rfnoc verbage:

.
.
.

-- [NocScript] Executing SR_WRITE()
--   [0/fosphor_0] sr_write(WF_DECIM, 000000FE) ==>
INFO: Setting args on 0/FIFO_0 (gr_vlen=1024,spp=1024)
DEBUG: output item size: 1024
Traceback (most recent call last):
  File "./rfnoc_fosphor.py", line 335, in <module>
    main()
  File "./rfnoc_fosphor.py", line 323, in main
    tb = top_block_cls()
  File "./rfnoc_fosphor.py", line 162, in __init__
    "FIFO", 1, -1,
  File "/usr/local/lib/python2.7/dist-packages/ettus/ettus_swig.py", line 3380, in make
    return _ettus_swig.rfnoc_generic_make(dev, tx_stream_args, rx_stream_args, block_name, block_select, device_select)
RuntimeError: Cannot find a block for ID: FIFO_1


When I usrp probe my image I do have a fifo but maybe not enough?? I used make.py to build this. Can you recommend a build string for make.py that should build what I need?

Thanks
Jeff


|   |    /
|   |   |       RFNoC blocks on this device:
|   |   |  
|   |   |   * DmaFIFO_0
|   |   |   * Radio_0
|   |   |   * Radio_1
|   |   |   * fosphor_0
|   |   |   * FFT_0
|   |   |   * DDC_0
|   |   |   * Window_0
|   |   |   * FIFO_0






-----Original Message-----
From: Sylvain Munaut [mailto:[hidden email]]
Sent: Tuesday, October 04, 2016 10:45 AM
To: Long, Jeffrey P.
Cc: [hidden email]
Subject: Re: [USRP-users] error in rfnoc_fosphor.grc

Hi,

> When I opened rfnoc_fosphor.grc example the flowgraph indicated the
> following error and would not give me the green arrow to run:
>
> I am working with the latest master branch of gr-ettus. Does this assume a
> particular version of gnuradio and or uhd? I have the latest master branch
> of gnuradio and the lastest rfnoc-devel branch of uhd.

Yeah those are "normal" ...  GRC doesn't deal very well with packet
size and the DCC block don't have a "packet size" attribute.

With F5/F6 you can force GRC to generate / run flowgraphs with errors
and they'll work fine.

Cheers,

   Sylvain
_______________________________________________
USRP-users mailing list
[hidden email]
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
Reply | Threaded
Open this post in threaded view
|

Re: [USRP-users] error in rfnoc_fosphor.grc

Martin Braun via USRP-users
Hi,


> Ok that does not seem to be an option for me, it is all grayed out. Nevertheless I just ran the .py from the command line and I get the following output at the end of all the rfnoc verbage:

Yeah, they're grayed out, but F5 / F6 should still work. They bypass the icons.


> RuntimeError: Cannot find a block for ID: FIFO_1

The new flow graph needs two loopback FIFOs. Your FPGA image only has one.


Cheers,

   Sylvain

_______________________________________________
USRP-users mailing list
[hidden email]
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
Reply | Threaded
Open this post in threaded view
|

Re: [USRP-users] error in rfnoc_fosphor.grc

Martin Braun via USRP-users
Sylvain-

OK no luck on that F5/F6 thing. The flow graph does not start.

Anyway I built a new image with the extra fifo and running the python script version it seems to start up and then it seg faults. Am I still missing something?

Here is the verbose output in case something pops out at you.

Thanks
Jeff



jplong@exmachina:~/proj/gr-ettus/examples/rfnoc$ ./rfnoc_fosphor.py
linux; GNU C++ version 5.4.0 20160609; Boost_105800; UHD_004.000.000.rfnoc-devel-641-g8773fb2c

-- X300 initialization sequence...
-- Determining maximum frame size... 1472 bytes.
-- Setup basic communication...
-- Loading values from EEPROM...
-- Setup RF frontend clocking...
-- Radio 1x clock:200
-- Detecting internal GPSDO.... Found an internal GPSDO: LC_XO, Firmware Rev 0.929a
-- [RFNOC] ------- Block Setup -----------
-- Setting up NoC-Shell Control for port #0 (SID: 00:00>02:30)...OK
-- Port 48: Found NoC-Block with ID F1F0D00000000000.
-- Reading XML file: /usr/local/share/uhd/rfnoc/blocks/dma_fifo.xml
-- Setting up NoC-Shell Control for port #1 (SID: 00:01>02:31)...OK
-- [RFNoC Factory] block_ctrl_base::make()
-- Reading XML file: /usr/local/share/uhd/rfnoc/blocks/dma_fifo.xml
-- [RFNoC Factory] Using controller key 'DmaFIFO' and block name 'DmaFIFO'
-- block_ctrl_base()
-- Reading XML file: /usr/local/share/uhd/rfnoc/blocks/dma_fifo.xml
-- Found valid blockdef
-- NOC ID: 0xF1F0D00000000000  Block ID: 0/DmaFIFO_0
-- [0/DmaFIFO_0] block_ctrl_base::clear()
-- [0/DmaFIFO_0] node_ctrl_base::clear()
-- [0/DmaFIFO_0] block_ctrl_base::_clear()
-- [0/DmaFIFO_0] block_ctrl_base::_clear()
-- [0/DmaFIFO_0] Adding port definition at xbar/DmaFIFO_0/ports/in/0: type = '' pkt_size = '0' vlen = '0'
-- [0/DmaFIFO_0] Adding port definition at xbar/DmaFIFO_0/ports/in/1: type = '' pkt_size = '0' vlen = '0'
-- [0/DmaFIFO_0] Adding port definition at xbar/DmaFIFO_0/ports/out/0: type = '' pkt_size = '0' vlen = '0'
-- [0/DmaFIFO_0] Adding port definition at xbar/DmaFIFO_0/ports/out/1: type = '' pkt_size = '0' vlen = '0'
-- [DMA FIFO] Running BIST for FIFO 0... pass (Throughput: 1186.0MB/s)
-- [NocScript] Executing and asserting code: EQUAL($base_addr, 0) OR IS_PWR_OF_2($base_addr)
-- [NocScript] Executing and asserting code: IS_PWR_OF_2($depth)
-- [DMA FIFO] Running BIST for FIFO 1... pass (Throughput: 1185.1MB/s)
-- [NocScript] Executing and asserting code: EQUAL($base_addr, 0) OR IS_PWR_OF_2($base_addr)
-- [NocScript] Executing and asserting code: IS_PWR_OF_2($depth)
-- [RFNOC] ------- Block Setup -----------
-- Setting up NoC-Shell Control for port #0 (SID: 00:02>02:40)...OK
-- Port 64: Found NoC-Block with ID 12AD100000000001.
-- Reading XML file: /usr/local/share/uhd/rfnoc/blocks/radio_x300.xml
-- Setting up NoC-Shell Control for port #1 (SID: 00:03>02:41)...OK
-- [RFNoC Factory] block_ctrl_base::make()
-- Reading XML file: /usr/local/share/uhd/rfnoc/blocks/radio_x300.xml
-- [RFNoC Factory] Using controller key 'X300Radio' and block name 'Radio'
-- block_ctrl_base()
-- Reading XML file: /usr/local/share/uhd/rfnoc/blocks/radio_x300.xml
-- Found valid blockdef
-- NOC ID: 0x12AD100000000001  Block ID: 0/Radio_0
-- [0/Radio_0] block_ctrl_base::clear()
-- [0/Radio_0] node_ctrl_base::clear()
-- [0/Radio_0] block_ctrl_base::_clear()
-- [0/Radio_0] block_ctrl_base::_clear()
-- [0/Radio_0] Adding port definition at xbar/Radio_0/ports/in/0: type = 'sc16' pkt_size = '0' vlen = '0'
-- [0/Radio_0] Adding port definition at xbar/Radio_0/ports/in/1: type = 'sc16' pkt_size = '0' vlen = '0'
-- [0/Radio_0] Adding port definition at xbar/Radio_0/ports/out/0: type = 'sc16' pkt_size = '0' vlen = '0'
-- [0/Radio_0] Adding port definition at xbar/Radio_0/ports/out/1: type = 'sc16' pkt_size = '0' vlen = '0'
-- [RFNoC Radio] Performing register loopback test... pass
-- [RFNoC Radio] Performing register loopback test... pass
-- [0/Radio_0] radio_ctrl_impl::_update_spp(): Requested spp: 364
-- [0/Radio_0] radio_ctrl_impl::_update_spp(): Setting spp to: 364
-- [0/Radio_0] x300_radio_ctrl_impl::ctor()
-- [0/Radio_0] radio_ctrl_impl::_update_spp(): Requested spp: 364
-- [0/Radio_0] radio_ctrl_impl::_update_spp(): Setting spp to: 364
-- [RFNOC] ------- Block Setup -----------
-- Setting up NoC-Shell Control for port #0 (SID: 00:04>02:50)...OK
-- Port 80: Found NoC-Block with ID 12AD100000000001.
-- Reading XML file: /usr/local/share/uhd/rfnoc/blocks/radio_x300.xml
-- Setting up NoC-Shell Control for port #1 (SID: 00:05>02:51)...OK
-- [RFNoC Factory] block_ctrl_base::make()
-- Reading XML file: /usr/local/share/uhd/rfnoc/blocks/radio_x300.xml
-- [RFNoC Factory] Using controller key 'X300Radio' and block name 'Radio'
-- block_ctrl_base()
-- Reading XML file: /usr/local/share/uhd/rfnoc/blocks/radio_x300.xml
-- Found valid blockdef
-- NOC ID: 0x12AD100000000001  Block ID: 0/Radio_1
-- [0/Radio_1] block_ctrl_base::clear()
-- [0/Radio_1] node_ctrl_base::clear()
-- [0/Radio_1] block_ctrl_base::_clear()
-- [0/Radio_1] block_ctrl_base::_clear()
-- [0/Radio_1] Adding port definition at xbar/Radio_1/ports/in/0: type = 'sc16' pkt_size = '0' vlen = '0'
-- [0/Radio_1] Adding port definition at xbar/Radio_1/ports/in/1: type = 'sc16' pkt_size = '0' vlen = '0'
-- [0/Radio_1] Adding port definition at xbar/Radio_1/ports/out/0: type = 'sc16' pkt_size = '0' vlen = '0'
-- [0/Radio_1] Adding port definition at xbar/Radio_1/ports/out/1: type = 'sc16' pkt_size = '0' vlen = '0'
-- [RFNoC Radio] Performing register loopback test... pass
-- [RFNoC Radio] Performing register loopback test... pass
-- [0/Radio_1] radio_ctrl_impl::_update_spp(): Requested spp: 364
-- [0/Radio_1] radio_ctrl_impl::_update_spp(): Setting spp to: 364
-- [0/Radio_1] x300_radio_ctrl_impl::ctor()
-- [0/Radio_1] radio_ctrl_impl::_update_spp(): Requested spp: 364
-- [0/Radio_1] radio_ctrl_impl::_update_spp(): Setting spp to: 364
-- [RFNOC] ------- Block Setup -----------
-- Setting up NoC-Shell Control for port #0 (SID: 00:06>02:60)...OK
-- Port 96: Found NoC-Block with ID 666F000000000000.
-- Reading XML file: /usr/local/share/uhd/rfnoc/blocks/fosphor.xml
-- Setting up NoC-Shell Control for port #1 (SID: 00:07>02:61)...OK
-- [RFNoC Factory] block_ctrl_base::make()
-- Reading XML file: /usr/local/share/uhd/rfnoc/blocks/fosphor.xml
-- [RFNoC Factory] Using controller key 'Block' and block name 'fosphor'
-- block_ctrl_base()
-- Reading XML file: /usr/local/share/uhd/rfnoc/blocks/fosphor.xml
-- Found valid blockdef
-- NOC ID: 0x666F000000000000  Block ID: 0/fosphor_0
-- [0/fosphor_0] block_ctrl_base::clear()
-- [0/fosphor_0] node_ctrl_base::clear()
-- [0/fosphor_0] block_ctrl_base::_clear()
-- [0/fosphor_0] block_ctrl_base::_clear()
-- [0/fosphor_0] Adding port definition at xbar/fosphor_0/ports/in/0: type = 'sc16' pkt_size = '%vlen' vlen = '$spp'
-- [0/fosphor_0] Adding port definition at xbar/fosphor_0/ports/out/0: type = 'u8' pkt_size = '%vlen' vlen = '$spp'
-- [0/fosphor_0] Adding port definition at xbar/fosphor_0/ports/out/1: type = 'u8' pkt_size = '%vlen' vlen = '$spp'

UHD Warning:
    [0/fosphor_0] defines 2 input buffer sizes, but 1 input ports
-- [NocScript] Executing and asserting code: GE($enable, 0) AND LE($enable, 3)
-- [NocScript] Executing and asserting code: SR_WRITE("ENABLE", $enable)
-- [NocScript] Executing SR_WRITE()
--   [0/fosphor_0] sr_write(ENABLE, 00000003) ==>
-- [NocScript] Executing and asserting code: GE($random, 0) AND LE($random, 3)
-- [NocScript] Executing and asserting code: SR_WRITE("RANDOM", $random)
-- [NocScript] Executing SR_WRITE()
--   [0/fosphor_0] sr_write(RANDOM, 00000003) ==>
-- [NocScript] Executing and asserting code: GE($decim, 2) AND LE($decim, 1024)
-- [NocScript] Executing and asserting code: SR_WRITE("DECIM", ADD($decim, -2))
-- [NocScript] Executing SR_WRITE()
--   [0/fosphor_0] sr_write(DECIM, 00000000) ==>
-- [NocScript] Executing and asserting code: GE($offset, 0) AND LE($offset, 65536)
-- [NocScript] Executing and asserting code: SR_WRITE("OFFSET", $offset)
-- [NocScript] Executing SR_WRITE()
--   [0/fosphor_0] sr_write(OFFSET, 00000000) ==>
-- [NocScript] Executing and asserting code: GE($scale, 0) AND LE($scale, 65536)
-- [NocScript] Executing and asserting code: SR_WRITE("SCALE", $scale)
-- [NocScript] Executing SR_WRITE()
--   [0/fosphor_0] sr_write(SCALE, 00000100) ==>
-- [NocScript] Executing and asserting code: GE($trise, 0) AND LE($trise, 65536)
-- [NocScript] Executing and asserting code: SR_WRITE("TRISE", $trise)
-- [NocScript] Executing SR_WRITE()
--   [0/fosphor_0] sr_write(TRISE, 00001000) ==>
-- [NocScript] Executing and asserting code: GE($tdecay, 0) AND LE($tdecay, 65536)
-- [NocScript] Executing and asserting code: SR_WRITE("TDECAY", $tdecay)
-- [NocScript] Executing SR_WRITE()
--   [0/fosphor_0] sr_write(TDECAY, 00004000) ==>
-- [NocScript] Executing and asserting code: GE($alpha, 0) AND LE($alpha, 65536)
-- [NocScript] Executing and asserting code: SR_WRITE("ALPHA", $alpha)
-- [NocScript] Executing SR_WRITE()
--   [0/fosphor_0] sr_write(ALPHA, 0000FF00) ==>
-- [NocScript] Executing and asserting code: GE($epsilon, 0) AND LE($epsilon, 65536)
-- [NocScript] Executing and asserting code: SR_WRITE("EPSILON", $epsilon)
-- [NocScript] Executing SR_WRITE()
--   [0/fosphor_0] sr_write(EPSILON, 00000001) ==>
-- [NocScript] Executing and asserting code: GE($wf_ctrl, 0) AND LE($enable, 255)
-- [NocScript] Executing and asserting code: SR_WRITE("WF_CTRL", $wf_ctrl)
-- [NocScript] Executing SR_WRITE()
--   [0/fosphor_0] sr_write(WF_CTRL, 00000000) ==>
-- [NocScript] Executing and asserting code: GE($wf_decim, 2) AND LE($wf_decim, 256)
-- [NocScript] Executing and asserting code: SR_WRITE("WF_DECIM", ADD($wf_decim, -2))
-- [NocScript] Executing SR_WRITE()
--   [0/fosphor_0] sr_write(WF_DECIM, 00000006) ==>
-- [RFNOC] ------- Block Setup -----------
-- Setting up NoC-Shell Control for port #0 (SID: 00:08>02:70)...OK
-- Port 112: Found NoC-Block with ID FF70000000000000.
-- Reading XML file: /usr/local/share/uhd/rfnoc/blocks/fft.xml
-- [RFNoC Factory] block_ctrl_base::make()
-- Reading XML file: /usr/local/share/uhd/rfnoc/blocks/fft.xml
-- [RFNoC Factory] Using controller key 'Block' and block name 'FFT'
-- block_ctrl_base()
-- Reading XML file: /usr/local/share/uhd/rfnoc/blocks/fft.xml
-- Found valid blockdef
-- NOC ID: 0xFF70000000000000  Block ID: 0/FFT_0
-- [0/FFT_0] block_ctrl_base::clear()
-- [0/FFT_0] node_ctrl_base::clear()
-- [0/FFT_0] block_ctrl_base::_clear()
-- [0/FFT_0] Adding port definition at xbar/FFT_0/ports/in/0: type = 'sc16' pkt_size = '%vlen' vlen = '$spp'
-- [0/FFT_0] Adding port definition at xbar/FFT_0/ports/out/0: type = '$otype' pkt_size = '%vlen' vlen = '$spp'
-- [NocScript] Executing and asserting code: GE($spp, 16) AND LE($spp, 4096) AND IS_PWR_OF_2($spp)
-- [NocScript] Executing and asserting code: SR_WRITE("FFT_SIZE_LOG2", LOG2($spp)) AND SR_WRITE("AXIS_CONFIG_BUS", ADD(873472, LOG2($spp)))
-- [NocScript] Executing SR_WRITE()
--   [0/FFT_0] sr_write(FFT_SIZE_LOG2, 00000008) ==>
-- [NocScript] Executing SR_WRITE()
--   [0/FFT_0] sr_write(AXIS_CONFIG_BUS, 000D5408) ==>
-- [NocScript] Executing and asserting code: SR_WRITE("AXIS_CONFIG_BUS", ADD($ctrl_word, LOG2($spp)))
-- [NocScript] Executing SR_WRITE()
--   [0/FFT_0] sr_write(AXIS_CONFIG_BUS, 000D5408) ==>
-- [NocScript] Executing and asserting code: EQUAL($otype, "sc16")
-- [NocScript] Executing and asserting code:
--           IF(NOT(EQUAL($reset, 0)), SR_WRITE("FFT_RESET", 1) AND SR_WRITE("FFT_RESET", 0))
--      
-- [NocScript] Executing SR_WRITE()
--   [0/FFT_0] sr_write(FFT_RESET, 00000001) ==>
-- [NocScript] Executing SR_WRITE()
--   [0/FFT_0] sr_write(FFT_RESET, 00000000) ==>
-- [NocScript] Executing and asserting code: EQUAL($magnitude_out, "COMPLEX") OR EQUAL($magnitude_out, "MAGNITUDE") OR EQUAL($magnitude_out, "MAGNITUDE_SQUARED")
-- [NocScript] Executing and asserting code:
--           IF(EQUAL($magnitude_out, "COMPLEX"),           SR_WRITE("MAGNITUDE_OUT", 0)) OR
--           IF(EQUAL($magnitude_out, "MAGNITUDE"),         SR_WRITE("MAGNITUDE_OUT", 1)) OR
--           IF(EQUAL($magnitude_out, "MAGNITUDE_SQUARED"), SR_WRITE("MAGNITUDE_OUT", 2))
--      
-- [NocScript] Executing SR_WRITE()
--   [0/FFT_0] sr_write(MAGNITUDE_OUT, 00000000) ==>
-- [RFNOC] ------- Block Setup -----------
-- Setting up NoC-Shell Control for port #0 (SID: 00:09>02:80)...OK
-- Port 128: Found NoC-Block with ID DDC0000000000000.
-- Reading XML file: /usr/local/share/uhd/rfnoc/blocks/ddc.xml
-- Setting up NoC-Shell Control for port #1 (SID: 00:0a>02:81)...OK
-- [RFNoC Factory] block_ctrl_base::make()
-- Reading XML file: /usr/local/share/uhd/rfnoc/blocks/ddc.xml
-- [RFNoC Factory] Using controller key 'DDC' and block name 'DDC'
-- block_ctrl_base()
-- Reading XML file: /usr/local/share/uhd/rfnoc/blocks/ddc.xml
-- Found valid blockdef
-- NOC ID: 0xDDC0000000000000  Block ID: 0/DDC_0
-- [0/DDC_0] block_ctrl_base::clear()
-- [0/DDC_0] node_ctrl_base::clear()
-- [0/DDC_0] block_ctrl_base::_clear()
-- [0/DDC_0] block_ctrl_base::_clear()
-- [0/DDC_0] Adding port definition at xbar/DDC_0/ports/in/0: type = 'sc16' pkt_size = '0' vlen = '0'
-- [0/DDC_0] Adding port definition at xbar/DDC_0/ports/in/1: type = 'sc16' pkt_size = '0' vlen = '0'
-- [0/DDC_0] Adding port definition at xbar/DDC_0/ports/out/0: type = 'sc16' pkt_size = '0' vlen = '0'
-- [0/DDC_0] Adding port definition at xbar/DDC_0/ports/out/1: type = 'sc16' pkt_size = '0' vlen = '0'
-- [NocScript] Executing and asserting code: GE($input_rate, 0.0)
-- [NocScript] Executing and asserting code: GE($output_rate, 0.0)
-- [NocScript] Executing and asserting code: GE($fullscale, 0.0)
-- [NocScript] Executing and asserting code: GE($input_rate, 0.0)
-- [NocScript] Executing and asserting code: GE($output_rate, 0.0)
-- [NocScript] Executing and asserting code: GE($fullscale, 0.0)
--   [0/DDC_0] sr_write(CORDIC_FREQ, 00000000) ==>
--   [0/DDC_0] sr_write(DECIM_WORD, 00000001) ==>
--   [0/DDC_0] sr_write(N, 00000001) ==>
--   [0/DDC_0] sr_write(M, 00000001) ==>
--   [0/DDC_0] sr_write(SCALE_IQ, 00004DAB) ==>
-- [NocScript] Executing and asserting code: GE($output_rate, 0.0)
--   [0/DDC_0] sr_write(N, 00000001) ==>
--   [0/DDC_0] sr_write(M, 00000001) ==>
--   [0/DDC_0] sr_write(CONFIG, 00000001) ==>
--   [0/DDC_0] sr_write(CORDIC_FREQ, 00000000) ==>
--   [0/DDC_0] sr_write(DECIM_WORD, 00000001) ==>
--   [0/DDC_0] sr_write(N, 00000001) ==>
--   [0/DDC_0] sr_write(M, 00000001) ==>
--   [0/DDC_0] sr_write(SCALE_IQ, 00004DAB) ==>
-- [NocScript] Executing and asserting code: GE($output_rate, 0.0)
--   [0/DDC_0] sr_write(N, 00000001) ==>
--   [0/DDC_0] sr_write(M, 00000001) ==>
--   [0/DDC_0] sr_write(CONFIG, 00000001) ==>
-- [RFNOC] ------- Block Setup -----------
-- Setting up NoC-Shell Control for port #0 (SID: 00:0b>02:90)...OK
-- Port 144: Found NoC-Block with ID D053000000000000.
-- Reading XML file: /usr/local/share/uhd/rfnoc/blocks/window.xml
-- [RFNoC Factory] block_ctrl_base::make()
-- Reading XML file: /usr/local/share/uhd/rfnoc/blocks/window.xml
-- [RFNoC Factory] Using controller key 'Window' and block name 'Window'
-- block_ctrl_base()
-- Reading XML file: /usr/local/share/uhd/rfnoc/blocks/window.xml
-- Found valid blockdef
-- NOC ID: 0xD053000000000000  Block ID: 0/Window_0
-- [0/Window_0] block_ctrl_base::clear()
-- [0/Window_0] node_ctrl_base::clear()
-- [0/Window_0] block_ctrl_base::_clear()
-- [0/Window_0] Adding port definition at xbar/Window_0/ports/in/0: type = 'sc16' pkt_size = '%vlen' vlen = '$spp'
-- [0/Window_0] Adding port definition at xbar/Window_0/ports/out/0: type = 'sc16' pkt_size = '%vlen' vlen = '$spp'
-- window_block::window_block() max_len ==4096
-- [0/Window_0] window_block::set_window()
-- [RFNOC] ------- Block Setup -----------
-- Setting up NoC-Shell Control for port #0 (SID: 00:0c>02:a0)...OK
-- Port 160: Found NoC-Block with ID F1F0000000000000.
-- Reading XML file: /usr/local/share/uhd/rfnoc/blocks/fifo.xml
-- [RFNoC Factory] block_ctrl_base::make()
-- Reading XML file: /usr/local/share/uhd/rfnoc/blocks/fifo.xml
-- [RFNoC Factory] Using controller key 'Block' and block name 'FIFO'
-- block_ctrl_base()
-- Reading XML file: /usr/local/share/uhd/rfnoc/blocks/fifo.xml
-- Found valid blockdef
-- NOC ID: 0xF1F0000000000000  Block ID: 0/FIFO_0
-- [0/FIFO_0] block_ctrl_base::clear()
-- [0/FIFO_0] node_ctrl_base::clear()
-- [0/FIFO_0] block_ctrl_base::_clear()
-- [0/FIFO_0] Adding port definition at xbar/FIFO_0/ports/in/0: type = '' pkt_size = '0' vlen = '0'
-- [0/FIFO_0] Adding port definition at xbar/FIFO_0/ports/out/0: type = '' pkt_size = '0' vlen = '0'
-- [RFNOC] ------- Block Setup -----------
-- Setting up NoC-Shell Control for port #0 (SID: 00:0d>02:b0)...OK
-- Port 176: Found NoC-Block with ID F1F0000000000000.
-- Reading XML file: /usr/local/share/uhd/rfnoc/blocks/fifo.xml
-- [RFNoC Factory] block_ctrl_base::make()
-- Reading XML file: /usr/local/share/uhd/rfnoc/blocks/fifo.xml
-- [RFNoC Factory] Using controller key 'Block' and block name 'FIFO'
-- block_ctrl_base()
-- Reading XML file: /usr/local/share/uhd/rfnoc/blocks/fifo.xml
-- Found valid blockdef
-- NOC ID: 0xF1F0000000000000  Block ID: 0/FIFO_1
-- [0/FIFO_1] block_ctrl_base::clear()
-- [0/FIFO_1] node_ctrl_base::clear()
-- [0/FIFO_1] block_ctrl_base::_clear()
-- [0/FIFO_1] Adding port definition at xbar/FIFO_1/ports/in/0: type = '' pkt_size = '0' vlen = '0'
-- [0/FIFO_1] Adding port definition at xbar/FIFO_1/ports/out/0: type = '' pkt_size = '0' vlen = '0'
-- Performing timer loopback test... pass
-- Performing timer loopback test... pass
-- [0/DmaFIFO_0] block_ctrl_base::clear()
-- [0/DmaFIFO_0] node_ctrl_base::clear()
-- [0/DmaFIFO_0] block_ctrl_base::_clear()
-- [0/DmaFIFO_0] block_ctrl_base::_clear()
-- [0/Radio_0] block_ctrl_base::clear()
-- [0/Radio_0] node_ctrl_base::clear()
-- [0/Radio_0] block_ctrl_base::_clear()
-- [0/Radio_0] block_ctrl_base::_clear()
-- [0/Radio_1] block_ctrl_base::clear()
-- [0/Radio_1] node_ctrl_base::clear()
-- [0/Radio_1] block_ctrl_base::_clear()
-- [0/Radio_1] block_ctrl_base::_clear()
-- [0/fosphor_0] block_ctrl_base::clear()
-- [0/fosphor_0] node_ctrl_base::clear()
-- [0/fosphor_0] block_ctrl_base::_clear()
-- [0/fosphor_0] block_ctrl_base::_clear()
-- [0/FFT_0] block_ctrl_base::clear()
-- [0/FFT_0] node_ctrl_base::clear()
-- [0/FFT_0] block_ctrl_base::_clear()
-- [0/DDC_0] block_ctrl_base::clear()
-- [0/DDC_0] node_ctrl_base::clear()
-- [0/DDC_0] block_ctrl_base::_clear()
-- [0/DDC_0] block_ctrl_base::_clear()
-- [0/Window_0] block_ctrl_base::clear()
-- [0/Window_0] node_ctrl_base::clear()
-- [0/Window_0] block_ctrl_base::_clear()
-- [0/FIFO_0] block_ctrl_base::clear()
-- [0/FIFO_0] node_ctrl_base::clear()
-- [0/FIFO_0] block_ctrl_base::_clear()
-- [0/FIFO_1] block_ctrl_base::clear()
-- [0/FIFO_1] node_ctrl_base::clear()
-- [0/FIFO_1] block_ctrl_base::_clear()
INFO: Setting args on 0/Window_0 (spp=1024)
DEBUG: output item size: 8192
-- [0/Window_0] window_block::set_window()
INFO: Setting args on 0/Radio_0 (spp=1024)
-- [0/Radio_0] radio_ctrl_impl::_update_spp(): Requested spp: 1024
-- [0/Radio_0] radio_ctrl_impl::_update_spp(): Setting spp to: 1024
DEBUG: output item size: 8
INFO: Setting args on 0/fosphor_0 (spp=1024)
DEBUG: output item size: 1024
-- [NocScript] Executing and asserting code: GE($enable, 0) AND LE($enable, 3)
-- [NocScript] Executing and asserting code: SR_WRITE("ENABLE", $enable)
-- [NocScript] Executing SR_WRITE()
--   [0/fosphor_0] sr_write(ENABLE, 00000003) ==>
-- [NocScript] Executing and asserting code: GE($decim, 2) AND LE($decim, 1024)
-- [NocScript] Executing and asserting code: SR_WRITE("DECIM", ADD($decim, -2))
-- [NocScript] Executing SR_WRITE()
--   [0/fosphor_0] sr_write(DECIM, 00000030) ==>
-- [NocScript] Executing and asserting code: GE($offset, 0) AND LE($offset, 65536)
-- [NocScript] Executing and asserting code: SR_WRITE("OFFSET", $offset)
-- [NocScript] Executing SR_WRITE()
--   [0/fosphor_0] sr_write(OFFSET, 00000000) ==>
-- [NocScript] Executing and asserting code: GE($scale, 0) AND LE($scale, 65536)
-- [NocScript] Executing and asserting code: SR_WRITE("SCALE", $scale)
-- [NocScript] Executing SR_WRITE()
--   [0/fosphor_0] sr_write(SCALE, 00000100) ==>
-- [NocScript] Executing and asserting code: GE($trise, 0) AND LE($trise, 65536)
-- [NocScript] Executing and asserting code: SR_WRITE("TRISE", $trise)
-- [NocScript] Executing SR_WRITE()
--   [0/fosphor_0] sr_write(TRISE, 00000040) ==>
-- [NocScript] Executing and asserting code: GE($tdecay, 0) AND LE($tdecay, 65536)
-- [NocScript] Executing and asserting code: SR_WRITE("TDECAY", $tdecay)
-- [NocScript] Executing SR_WRITE()
--   [0/fosphor_0] sr_write(TDECAY, 00000100) ==>
-- [NocScript] Executing and asserting code: GE($alpha, 0) AND LE($alpha, 65536)
-- [NocScript] Executing and asserting code: SR_WRITE("ALPHA", $alpha)
-- [NocScript] Executing SR_WRITE()
--   [0/fosphor_0] sr_write(ALPHA, 0000F618) ==>
-- [NocScript] Executing and asserting code: GE($epsilon, 0) AND LE($epsilon, 65536)
-- [NocScript] Executing and asserting code: SR_WRITE("EPSILON", $epsilon)
-- [NocScript] Executing SR_WRITE()
--   [0/fosphor_0] sr_write(EPSILON, 00000004) ==>
-- [NocScript] Executing and asserting code: GE($wf_ctrl, 0) AND LE($enable, 255)
-- [NocScript] Executing and asserting code: SR_WRITE("WF_CTRL", $wf_ctrl)
-- [NocScript] Executing SR_WRITE()
--   [0/fosphor_0] sr_write(WF_CTRL, 00000000) ==>
-- [NocScript] Executing and asserting code: GE($wf_decim, 2) AND LE($wf_decim, 256)
-- [NocScript] Executing and asserting code: SR_WRITE("WF_DECIM", ADD($wf_decim, -2))
-- [NocScript] Executing SR_WRITE()
--   [0/fosphor_0] sr_write(WF_DECIM, 000000FE) ==>
INFO: Setting args on 0/FIFO_0 (gr_vlen=1024,spp=1024)
DEBUG: output item size: 1024
INFO: Setting args on 0/FIFO_1 (gr_vlen=1024,spp=1024)
DEBUG: output item size: 1024
INFO: Setting args on 0/FFT_0 (spp=1024,magnitude_out=COMPLEX)
-- [NocScript] Executing and asserting code: GE($spp, 16) AND LE($spp, 4096) AND IS_PWR_OF_2($spp)
-- [NocScript] Executing and asserting code: SR_WRITE("FFT_SIZE_LOG2", LOG2($spp)) AND SR_WRITE("AXIS_CONFIG_BUS", ADD(873472, LOG2($spp)))
-- [NocScript] Executing SR_WRITE()
--   [0/FFT_0] sr_write(FFT_SIZE_LOG2, 0000000A) ==>
-- [NocScript] Executing SR_WRITE()
--   [0/FFT_0] sr_write(AXIS_CONFIG_BUS, 000D540A) ==>
-- [NocScript] Executing and asserting code: EQUAL($magnitude_out, "COMPLEX") OR EQUAL($magnitude_out, "MAGNITUDE") OR EQUAL($magnitude_out, "MAGNITUDE_SQUARED")
-- [NocScript] Executing and asserting code:
--           IF(EQUAL($magnitude_out, "COMPLEX"),           SR_WRITE("MAGNITUDE_OUT", 0)) OR
--           IF(EQUAL($magnitude_out, "MAGNITUDE"),         SR_WRITE("MAGNITUDE_OUT", 1)) OR
--           IF(EQUAL($magnitude_out, "MAGNITUDE_SQUARED"), SR_WRITE("MAGNITUDE_OUT", 2))
--      
-- [NocScript] Executing SR_WRITE()
--   [0/FFT_0] sr_write(MAGNITUDE_OUT, 00000000) ==>
DEBUG: output item size: 8192
INFO: Setting args on 0/DmaFIFO_0 (gr_vlen=1024,spp=1024)
DEBUG: output item size: 1024
-- [NocScript] Executing and asserting code: EQUAL($base_addr, 0) OR IS_PWR_OF_2($base_addr)
-- [NocScript] Executing and asserting code: IS_PWR_OF_2($depth)
-- [NocScript] Executing and asserting code: EQUAL($base_addr, 0) OR IS_PWR_OF_2($base_addr)
-- [NocScript] Executing and asserting code: IS_PWR_OF_2($depth)
-- [GNU Radio] Connecting 0/DmaFIFO_0:0 --> 0/FIFO_1:0
-- [0/DmaFIFO_0] source_block_ctrl_base::set_destination() 2.48>2.176
-- [0/DmaFIFO_0]   Setting SID: 2.48>2.176
--   Assuming max packet size for 0/DmaFIFO_0
-- [0/DmaFIFO_0] source_block_ctrl_base::configure_flow_control_out() buf_size_pkts==2
-- [0/FIFO_1] sink_block_ctrl_base::configure_flow_control_in(cycles=0, packets=1)
-- [GNU Radio] Connecting 0/DmaFIFO_0:1 --> 0/FIFO_0:0
-- [0/DmaFIFO_0] source_block_ctrl_base::set_destination() 2.49>2.160
-- [0/DmaFIFO_0]   Setting SID: 2.49>2.160
--   Assuming max packet size for 0/DmaFIFO_0
-- [0/DmaFIFO_0] source_block_ctrl_base::configure_flow_control_out() buf_size_pkts==2
-- [0/FIFO_0] sink_block_ctrl_base::configure_flow_control_in(cycles=0, packets=1)
-- [GNU Radio] Connecting 0/FFT_0:0 --> 0/fosphor_0:0
-- [0/FFT_0] source_block_ctrl_base::set_destination() 2.112>2.96
-- [0/FFT_0]   Setting SID: 2.112>2.96
--   [0/FFT_0] source_block_ctrl_base::configure_flow_control_out() buf_size_pkts==4
-- [0/fosphor_0] sink_block_ctrl_base::configure_flow_control_in(cycles=0, packets=2)
-- [GNU Radio] Connecting 0/fosphor_0:0 --> 0/DmaFIFO_0:0
-- [0/fosphor_0] source_block_ctrl_base::set_destination() 2.96>2.48
-- [0/fosphor_0]   Setting SID: 2.96>2.48
--   [0/fosphor_0] source_block_ctrl_base::configure_flow_control_out() buf_size_pkts==32
-- [0/DmaFIFO_0] sink_block_ctrl_base::configure_flow_control_in(cycles=0, packets=2)
-- [GNU Radio] Connecting 0/fosphor_0:1 --> 0/DmaFIFO_0:1
-- [0/fosphor_0] source_block_ctrl_base::set_destination() 2.97>2.49
-- [0/fosphor_0]   Setting SID: 2.97>2.49
--   [0/fosphor_0] source_block_ctrl_base::configure_flow_control_out() buf_size_pkts==32
-- [0/DmaFIFO_0] sink_block_ctrl_base::configure_flow_control_in(cycles=0, packets=2)
-- [GNU Radio] Connecting 0/Radio_0:0 --> 0/Window_0:0
-- [0/Radio_0] source_block_ctrl_base::set_destination() 2.64>2.144
-- [0/Radio_0]   Setting SID: 2.64>2.144
--   Assuming max packet size for 0/Radio_0
-- [0/Radio_0] source_block_ctrl_base::configure_flow_control_out() buf_size_pkts==2
-- [0/Window_0] sink_block_ctrl_base::configure_flow_control_in(cycles=0, packets=1)
-- [GNU Radio] Connecting 0/Window_0:0 --> 0/FFT_0:0
-- [0/Window_0] source_block_ctrl_base::set_destination() 2.144>2.112
-- [0/Window_0]   Setting SID: 2.144>2.112
--   [0/Window_0] source_block_ctrl_base::configure_flow_control_out() buf_size_pkts==4
-- [0/FFT_0] sink_block_ctrl_base::configure_flow_control_in(cycles=0, packets=2)
DEBUG: check_topology()
DEBUG: RFNoC blocks with streaming ports: 0
DEBUG: check_topology()
DEBUG: RFNoC blocks with streaming ports: 1
DEBUG: check_topology()
DEBUG: RFNoC blocks with streaming ports: 2
DEBUG: start(): ninputs == 0 noutputs == 1
******* MESSAGE DEBUG PRINT ********
DEBUG: start(): ninputs == 0 noutputs == 1
((clear . 1) (decim . 50))
************************************
DEBUG: start(): ninputs == 0 noutputs == 0
-- [NocScript] Executing and asserting code: IF(NOT(EQUAL($clear, 0)), SR_WRITE("CLEAR", $clear))
-- [NocScript] Executing SR_WRITE()
--   DEBUG: creating rx streamer with: gr_vlen=1024,spp=1024,block_id=0/FIFO_1,block_port=0
DEBUG: creating rx streamer with: gr_vlen=1024,spp=1024,block_id=0/FIFO_0,block_port=0
[0/fosphor_0] sr_write(CLEAR, 00000001) ==>
-- [RX Streamer] chan 0 connecting to 0/FIFO_1
-- [NocScript] Executing and asserting code: GE($decim, 2) AND LE($decim, 1024)
-- [RX Streamer] creating rx stream recv_buff_size=33554432
-- [NocScript] Executing and asserting code: SR_WRITE("DECIM", ADD($decim, -2))
-- [NocScript] Executing SR_WRITE()
--   [0/fosphor_0] sr_write(DECIM, 00000030) ==>

UHD Warning:
    The recv buffer could not be resized sufficiently.
    Target sock buff size: 33554432 bytes.
    Actual sock buff size: 212992 bytes.
    See the transport application notes on buffer resizing.
    Please run: sudo sysctl -w net.core.rmem_max=33554432
-- [RX Streamer] data_sid = 00:0e>02:b0 actual recv_buff_size = 212992
-- [0/FIFO_1] source_block_ctrl_base::set_destination() 0.0>0.14
-- [0/FIFO_1]   Setting SID: 2.176>0.14
--   [RX Streamer] resp_out_dst_sid == 14
-- [RX Streamer] Number of upstream radio nodes: 1
-- [RX Streamer] spp == 1024
-- [RX Streamer] Flow Control Window (minus one) = 162, Flow Control Handler Window = 5
-- [0/FIFO_1] source_block_ctrl_base::configure_flow_control_out() buf_size_pkts==162
-- [RX Terminator 0] rx_stream_terminator::set_rx_streamer() 1
-- [0/FIFO_1] source_node_ctrl::set_rx_streamer() 0 -> 1
-- [0/DmaFIFO_0] source_node_ctrl::set_rx_streamer() 0 -> 1
-- [0/fosphor_0] source_node_ctrl::set_rx_streamer() 0 -> 1
-- [0/FFT_0] source_node_ctrl::set_rx_streamer() 0 -> 1
-- [0/Window_0] source_node_ctrl::set_rx_streamer() 0 -> 1
-- [0/Radio_0] radio_ctrl_impl::set_rx_streamer() 0 -> 1
-- [0/Radio_0] x300_radio_ctrl_impl::check_radio_config()
-- [Device3] updating RX streamer to RX Terminator 0
--   New tick_rate == 2e+08  New samp_rate == 2e+08 New scaling == 3.05185e-05
-- [RX Streamer] chan 0 connecting to 0/FIFO_0
-- [RX Streamer] creating rx stream recv_buff_size=33554432

UHD Warning:
    The recv buffer could not be resized sufficiently.
    Target sock buff size: 33554432 bytes.
    Actual sock buff size: 212992 bytes.
    See the transport application notes on buffer resizing.
    Please run: sudo sysctl -w net.core.rmem_max=33554432
QGLShaderProgram: could not create shader program
QGLShaderProgram::uniformLocation( cmap ): shader program is not linked
QGLShaderProgram::uniformLocation( tex ): shader program is not linked
QGLShaderProgram::uniformLocation( range ): shader program is not linked
-- [RX Streamer] data_sid = 00:0f>02:a0 actual recv_buff_size = 212992
-- [0/FIFO_0] source_block_ctrl_base::set_destination() 0.0>0.15
-- [0/FIFO_0]   Setting SID: 2.160>0.15
--   [RX Streamer] resp_out_dst_sid == 15
-- [RX Streamer] Number of upstream radio nodes: 1
-- [RX Streamer] spp == 1024
-- [RX Streamer] Flow Control Window (minus one) = 162, Flow Control Handler Window = 5
-- [0/FIFO_0] source_block_ctrl_base::configure_flow_control_out() buf_size_pkts==162
-- [RX Terminator 1] rx_stream_terminator::set_rx_streamer() 1
-- [0/FIFO_0] source_node_ctrl::set_rx_streamer() 0 -> 1
-- [0/DmaFIFO_0] source_node_ctrl::set_rx_streamer() 1 -> 1
-- [0/fosphor_0] source_node_ctrl::set_rx_streamer() 1 -> 1
-- [Device3] updating RX streamer to RX Terminator 0
--   New tick_rate == 2e+08  New samp_rate == 2e+08 New scaling == 3.05185e-05
-- [Device3] updating RX streamer to RX Terminator 1
--   New tick_rate == 2e+08  New samp_rate == 2e+08 New scaling == 3.05185e-05
-- [0/FIFO_0] source_block_ctrl_base::issue_stream_cmd()
-- [0/FIFO_1] source_block_ctrl_base::issue_stream_cmd()
-- [0/DmaFIFO_0] source_block_ctrl_base::issue_stream_cmd()
-- [0/DmaFIFO_0] source_block_ctrl_base::issue_stream_cmd()
-- [0/fosphor_0] source_block_ctrl_base::issue_stream_cmd()
-- [0/fosphor_0] source_block_ctrl_base::issue_stream_cmd()
-- [0/FFT_0] source_block_ctrl_base::issue_stream_cmd()
-- [0/FFT_0] source_block_ctrl_base::issue_stream_cmd()
-- [0/Window_0] source_block_ctrl_base::issue_stream_cmd()
-- [0/Window_0] source_block_ctrl_base::issue_stream_cmd()
-- [0/Radio_0] radio_ctrl_impl::issue_stream_cmd() 0 a
-- [0/fosphor_0] source_block_ctrl_base::issue_stream_cmd()
-- [0/FFT_0] source_block_ctrl_base::issue_stream_cmd()
-- [0/Radio_0] radio_ctrl_impl::issue_stream_cmd() 0 a
-- [0/Window_0] source_block_ctrl_base::issue_stream_cmd()
-- [0/fosphor_0] source_block_ctrl_base::issue_stream_cmd()
-- [0/Radio_0] radio_ctrl_impl::issue_stream_cmd() 0 a
-- [0/FFT_0] source_block_ctrl_base::issue_stream_cmd()
-- [0/Window_0] source_block_ctrl_base::issue_stream_cmd()
-- [0/Radio_0] radio_ctrl_impl::issue_stream_cmd() 0 a
-- expected: 30 got: 40
Doverrun on chan 0
-- expected: 41 got: 30
Doverrun on chan 0
-- expected: 31 got: 41
Doverrun on chan 0
-- expected: 42 got: 31
Doverrun on chan 0
-- expected: 32 got: 42
Doverrun on chan 0
-- expected: 43 got: 32
Doverrun on chan 0
-- expected: 33 got: 43
Doverrun on chan 0
-- expected: 44 got: 33
Doverrun on chan 0
-- expected: 34 got: 44
Doverrun on chan 0
-- expected: 45 got: 34
Doverrun on chan 0
-- expected: 35 got: 45
Doverrun on chan 0
-- expected: 46 got: 35
Doverrun on chan 0
-- expected: 36 got: 46
Doverrun on chan 0
-- expected: 47 got: 36
Doverrun on chan 0
-- expected: 37 got: 47
Doverrun on chan 0
-- expected: 48 got: 37
Doverrun on chan 0
-- expected: 38 got: 48
Doverrun on chan 0
-- expected: 49 got: 38
Doverrun on chan 0
-- expected: 39 got: 49
Doverrun on chan 0
-- expected: 50 got: 39
Doverrun on chan 0
-- expected: 40 got: 50
Doverrun on chan 0
Segmentation fault (core dumped)



-----Original Message-----
From: Sylvain Munaut [mailto:[hidden email]]
Sent: Tuesday, October 04, 2016 11:04 AM
To: Long, Jeffrey P.
Cc: [hidden email]
Subject: Re: [USRP-users] error in rfnoc_fosphor.grc

Hi,


> Ok that does not seem to be an option for me, it is all grayed out. Nevertheless I just ran the .py from the command line and I get the following output at the end of all the rfnoc verbage:

Yeah, they're grayed out, but F5 / F6 should still work. They bypass the icons.


> RuntimeError: Cannot find a block for ID: FIFO_1

The new flow graph needs two loopback FIFOs. Your FPGA image only has one.


Cheers,

   Sylvain
_______________________________________________
USRP-users mailing list
[hidden email]
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
Reply | Threaded
Open this post in threaded view
|

Re: [USRP-users] error in rfnoc_fosphor.grc

Martin Braun via USRP-users
Sylvain-

Just wanted to give you an update. I have it working now. The output below is misleading. On a hunch I switched my graphics over from Nvida to intel and it started working.
The segfault and other errors I got were really the graphics dying. I have the dell precision laptop with the 4K hybrid graphics and it has given me all kinds of problems. I did install the nvidia openCL but evidently it was not working. I will try to go back and fix it...maybe.

Thanks for your help. This will be nice because now I don't need to borrow the expensive RTSA from the other department.  : )

Jeff
-----Original Message-----
From: USRP-users [mailto:[hidden email]] On Behalf Of Long, Jeffrey P. via USRP-users
Sent: Tuesday, October 04, 2016 1:07 PM
To: Sylvain Munaut
Cc: [hidden email]
Subject: Re: [USRP-users] error in rfnoc_fosphor.grc

Sylvain-

OK no luck on that F5/F6 thing. The flow graph does not start.

Anyway I built a new image with the extra fifo and running the python script version it seems to start up and then it seg faults. Am I still missing something?

Here is the verbose output in case something pops out at you.

Thanks
Jeff



jplong@exmachina:~/proj/gr-ettus/examples/rfnoc$ ./rfnoc_fosphor.py
linux; GNU C++ version 5.4.0 20160609; Boost_105800; UHD_004.000.000.rfnoc-devel-641-g8773fb2c

-- X300 initialization sequence...
-- Determining maximum frame size... 1472 bytes.
-- Setup basic communication...
-- Loading values from EEPROM...
-- Setup RF frontend clocking...
-- Radio 1x clock:200
-- Detecting internal GPSDO.... Found an internal GPSDO: LC_XO, Firmware Rev 0.929a
-- [RFNOC] ------- Block Setup -----------
-- Setting up NoC-Shell Control for port #0 (SID: 00:00>02:30)...OK
-- Port 48: Found NoC-Block with ID F1F0D00000000000.
-- Reading XML file: /usr/local/share/uhd/rfnoc/blocks/dma_fifo.xml
-- Setting up NoC-Shell Control for port #1 (SID: 00:01>02:31)...OK
-- [RFNoC Factory] block_ctrl_base::make()
-- Reading XML file: /usr/local/share/uhd/rfnoc/blocks/dma_fifo.xml
-- [RFNoC Factory] Using controller key 'DmaFIFO' and block name 'DmaFIFO'
-- block_ctrl_base()
-- Reading XML file: /usr/local/share/uhd/rfnoc/blocks/dma_fifo.xml
-- Found valid blockdef
-- NOC ID: 0xF1F0D00000000000  Block ID: 0/DmaFIFO_0
-- [0/DmaFIFO_0] block_ctrl_base::clear()
-- [0/DmaFIFO_0] node_ctrl_base::clear()
-- [0/DmaFIFO_0] block_ctrl_base::_clear()
-- [0/DmaFIFO_0] block_ctrl_base::_clear()
-- [0/DmaFIFO_0] Adding port definition at xbar/DmaFIFO_0/ports/in/0: type = '' pkt_size = '0' vlen = '0'
-- [0/DmaFIFO_0] Adding port definition at xbar/DmaFIFO_0/ports/in/1: type = '' pkt_size = '0' vlen = '0'
-- [0/DmaFIFO_0] Adding port definition at xbar/DmaFIFO_0/ports/out/0: type = '' pkt_size = '0' vlen = '0'
-- [0/DmaFIFO_0] Adding port definition at xbar/DmaFIFO_0/ports/out/1: type = '' pkt_size = '0' vlen = '0'
-- [DMA FIFO] Running BIST for FIFO 0... pass (Throughput: 1186.0MB/s)
-- [NocScript] Executing and asserting code: EQUAL($base_addr, 0) OR IS_PWR_OF_2($base_addr)
-- [NocScript] Executing and asserting code: IS_PWR_OF_2($depth)
-- [DMA FIFO] Running BIST for FIFO 1... pass (Throughput: 1185.1MB/s)
-- [NocScript] Executing and asserting code: EQUAL($base_addr, 0) OR IS_PWR_OF_2($base_addr)
-- [NocScript] Executing and asserting code: IS_PWR_OF_2($depth)
-- [RFNOC] ------- Block Setup -----------
-- Setting up NoC-Shell Control for port #0 (SID: 00:02>02:40)...OK
-- Port 64: Found NoC-Block with ID 12AD100000000001.
-- Reading XML file: /usr/local/share/uhd/rfnoc/blocks/radio_x300.xml
-- Setting up NoC-Shell Control for port #1 (SID: 00:03>02:41)...OK
-- [RFNoC Factory] block_ctrl_base::make()
-- Reading XML file: /usr/local/share/uhd/rfnoc/blocks/radio_x300.xml
-- [RFNoC Factory] Using controller key 'X300Radio' and block name 'Radio'
-- block_ctrl_base()
-- Reading XML file: /usr/local/share/uhd/rfnoc/blocks/radio_x300.xml
-- Found valid blockdef
-- NOC ID: 0x12AD100000000001  Block ID: 0/Radio_0
-- [0/Radio_0] block_ctrl_base::clear()
-- [0/Radio_0] node_ctrl_base::clear()
-- [0/Radio_0] block_ctrl_base::_clear()
-- [0/Radio_0] block_ctrl_base::_clear()
-- [0/Radio_0] Adding port definition at xbar/Radio_0/ports/in/0: type = 'sc16' pkt_size = '0' vlen = '0'
-- [0/Radio_0] Adding port definition at xbar/Radio_0/ports/in/1: type = 'sc16' pkt_size = '0' vlen = '0'
-- [0/Radio_0] Adding port definition at xbar/Radio_0/ports/out/0: type = 'sc16' pkt_size = '0' vlen = '0'
-- [0/Radio_0] Adding port definition at xbar/Radio_0/ports/out/1: type = 'sc16' pkt_size = '0' vlen = '0'
-- [RFNoC Radio] Performing register loopback test... pass
-- [RFNoC Radio] Performing register loopback test... pass
-- [0/Radio_0] radio_ctrl_impl::_update_spp(): Requested spp: 364
-- [0/Radio_0] radio_ctrl_impl::_update_spp(): Setting spp to: 364
-- [0/Radio_0] x300_radio_ctrl_impl::ctor()
-- [0/Radio_0] radio_ctrl_impl::_update_spp(): Requested spp: 364
-- [0/Radio_0] radio_ctrl_impl::_update_spp(): Setting spp to: 364
-- [RFNOC] ------- Block Setup -----------
-- Setting up NoC-Shell Control for port #0 (SID: 00:04>02:50)...OK
-- Port 80: Found NoC-Block with ID 12AD100000000001.
-- Reading XML file: /usr/local/share/uhd/rfnoc/blocks/radio_x300.xml
-- Setting up NoC-Shell Control for port #1 (SID: 00:05>02:51)...OK
-- [RFNoC Factory] block_ctrl_base::make()
-- Reading XML file: /usr/local/share/uhd/rfnoc/blocks/radio_x300.xml
-- [RFNoC Factory] Using controller key 'X300Radio' and block name 'Radio'
-- block_ctrl_base()
-- Reading XML file: /usr/local/share/uhd/rfnoc/blocks/radio_x300.xml
-- Found valid blockdef
-- NOC ID: 0x12AD100000000001  Block ID: 0/Radio_1
-- [0/Radio_1] block_ctrl_base::clear()
-- [0/Radio_1] node_ctrl_base::clear()
-- [0/Radio_1] block_ctrl_base::_clear()
-- [0/Radio_1] block_ctrl_base::_clear()
-- [0/Radio_1] Adding port definition at xbar/Radio_1/ports/in/0: type = 'sc16' pkt_size = '0' vlen = '0'
-- [0/Radio_1] Adding port definition at xbar/Radio_1/ports/in/1: type = 'sc16' pkt_size = '0' vlen = '0'
-- [0/Radio_1] Adding port definition at xbar/Radio_1/ports/out/0: type = 'sc16' pkt_size = '0' vlen = '0'
-- [0/Radio_1] Adding port definition at xbar/Radio_1/ports/out/1: type = 'sc16' pkt_size = '0' vlen = '0'
-- [RFNoC Radio] Performing register loopback test... pass
-- [RFNoC Radio] Performing register loopback test... pass
-- [0/Radio_1] radio_ctrl_impl::_update_spp(): Requested spp: 364
-- [0/Radio_1] radio_ctrl_impl::_update_spp(): Setting spp to: 364
-- [0/Radio_1] x300_radio_ctrl_impl::ctor()
-- [0/Radio_1] radio_ctrl_impl::_update_spp(): Requested spp: 364
-- [0/Radio_1] radio_ctrl_impl::_update_spp(): Setting spp to: 364
-- [RFNOC] ------- Block Setup -----------
-- Setting up NoC-Shell Control for port #0 (SID: 00:06>02:60)...OK
-- Port 96: Found NoC-Block with ID 666F000000000000.
-- Reading XML file: /usr/local/share/uhd/rfnoc/blocks/fosphor.xml
-- Setting up NoC-Shell Control for port #1 (SID: 00:07>02:61)...OK
-- [RFNoC Factory] block_ctrl_base::make()
-- Reading XML file: /usr/local/share/uhd/rfnoc/blocks/fosphor.xml
-- [RFNoC Factory] Using controller key 'Block' and block name 'fosphor'
-- block_ctrl_base()
-- Reading XML file: /usr/local/share/uhd/rfnoc/blocks/fosphor.xml
-- Found valid blockdef
-- NOC ID: 0x666F000000000000  Block ID: 0/fosphor_0
-- [0/fosphor_0] block_ctrl_base::clear()
-- [0/fosphor_0] node_ctrl_base::clear()
-- [0/fosphor_0] block_ctrl_base::_clear()
-- [0/fosphor_0] block_ctrl_base::_clear()
-- [0/fosphor_0] Adding port definition at xbar/fosphor_0/ports/in/0: type = 'sc16' pkt_size = '%vlen' vlen = '$spp'
-- [0/fosphor_0] Adding port definition at xbar/fosphor_0/ports/out/0: type = 'u8' pkt_size = '%vlen' vlen = '$spp'
-- [0/fosphor_0] Adding port definition at xbar/fosphor_0/ports/out/1: type = 'u8' pkt_size = '%vlen' vlen = '$spp'

UHD Warning:
    [0/fosphor_0] defines 2 input buffer sizes, but 1 input ports
-- [NocScript] Executing and asserting code: GE($enable, 0) AND LE($enable, 3)
-- [NocScript] Executing and asserting code: SR_WRITE("ENABLE", $enable)
-- [NocScript] Executing SR_WRITE()
--   [0/fosphor_0] sr_write(ENABLE, 00000003) ==>
-- [NocScript] Executing and asserting code: GE($random, 0) AND LE($random, 3)
-- [NocScript] Executing and asserting code: SR_WRITE("RANDOM", $random)
-- [NocScript] Executing SR_WRITE()
--   [0/fosphor_0] sr_write(RANDOM, 00000003) ==>
-- [NocScript] Executing and asserting code: GE($decim, 2) AND LE($decim, 1024)
-- [NocScript] Executing and asserting code: SR_WRITE("DECIM", ADD($decim, -2))
-- [NocScript] Executing SR_WRITE()
--   [0/fosphor_0] sr_write(DECIM, 00000000) ==>
-- [NocScript] Executing and asserting code: GE($offset, 0) AND LE($offset, 65536)
-- [NocScript] Executing and asserting code: SR_WRITE("OFFSET", $offset)
-- [NocScript] Executing SR_WRITE()
--   [0/fosphor_0] sr_write(OFFSET, 00000000) ==>
-- [NocScript] Executing and asserting code: GE($scale, 0) AND LE($scale, 65536)
-- [NocScript] Executing and asserting code: SR_WRITE("SCALE", $scale)
-- [NocScript] Executing SR_WRITE()
--   [0/fosphor_0] sr_write(SCALE, 00000100) ==>
-- [NocScript] Executing and asserting code: GE($trise, 0) AND LE($trise, 65536)
-- [NocScript] Executing and asserting code: SR_WRITE("TRISE", $trise)
-- [NocScript] Executing SR_WRITE()
--   [0/fosphor_0] sr_write(TRISE, 00001000) ==>
-- [NocScript] Executing and asserting code: GE($tdecay, 0) AND LE($tdecay, 65536)
-- [NocScript] Executing and asserting code: SR_WRITE("TDECAY", $tdecay)
-- [NocScript] Executing SR_WRITE()
--   [0/fosphor_0] sr_write(TDECAY, 00004000) ==>
-- [NocScript] Executing and asserting code: GE($alpha, 0) AND LE($alpha, 65536)
-- [NocScript] Executing and asserting code: SR_WRITE("ALPHA", $alpha)
-- [NocScript] Executing SR_WRITE()
--   [0/fosphor_0] sr_write(ALPHA, 0000FF00) ==>
-- [NocScript] Executing and asserting code: GE($epsilon, 0) AND LE($epsilon, 65536)
-- [NocScript] Executing and asserting code: SR_WRITE("EPSILON", $epsilon)
-- [NocScript] Executing SR_WRITE()
--   [0/fosphor_0] sr_write(EPSILON, 00000001) ==>
-- [NocScript] Executing and asserting code: GE($wf_ctrl, 0) AND LE($enable, 255)
-- [NocScript] Executing and asserting code: SR_WRITE("WF_CTRL", $wf_ctrl)
-- [NocScript] Executing SR_WRITE()
--   [0/fosphor_0] sr_write(WF_CTRL, 00000000) ==>
-- [NocScript] Executing and asserting code: GE($wf_decim, 2) AND LE($wf_decim, 256)
-- [NocScript] Executing and asserting code: SR_WRITE("WF_DECIM", ADD($wf_decim, -2))
-- [NocScript] Executing SR_WRITE()
--   [0/fosphor_0] sr_write(WF_DECIM, 00000006) ==>
-- [RFNOC] ------- Block Setup -----------
-- Setting up NoC-Shell Control for port #0 (SID: 00:08>02:70)...OK
-- Port 112: Found NoC-Block with ID FF70000000000000.
-- Reading XML file: /usr/local/share/uhd/rfnoc/blocks/fft.xml
-- [RFNoC Factory] block_ctrl_base::make()
-- Reading XML file: /usr/local/share/uhd/rfnoc/blocks/fft.xml
-- [RFNoC Factory] Using controller key 'Block' and block name 'FFT'
-- block_ctrl_base()
-- Reading XML file: /usr/local/share/uhd/rfnoc/blocks/fft.xml
-- Found valid blockdef
-- NOC ID: 0xFF70000000000000  Block ID: 0/FFT_0
-- [0/FFT_0] block_ctrl_base::clear()
-- [0/FFT_0] node_ctrl_base::clear()
-- [0/FFT_0] block_ctrl_base::_clear()
-- [0/FFT_0] Adding port definition at xbar/FFT_0/ports/in/0: type = 'sc16' pkt_size = '%vlen' vlen = '$spp'
-- [0/FFT_0] Adding port definition at xbar/FFT_0/ports/out/0: type = '$otype' pkt_size = '%vlen' vlen = '$spp'
-- [NocScript] Executing and asserting code: GE($spp, 16) AND LE($spp, 4096) AND IS_PWR_OF_2($spp)
-- [NocScript] Executing and asserting code: SR_WRITE("FFT_SIZE_LOG2", LOG2($spp)) AND SR_WRITE("AXIS_CONFIG_BUS", ADD(873472, LOG2($spp)))
-- [NocScript] Executing SR_WRITE()
--   [0/FFT_0] sr_write(FFT_SIZE_LOG2, 00000008) ==>
-- [NocScript] Executing SR_WRITE()
--   [0/FFT_0] sr_write(AXIS_CONFIG_BUS, 000D5408) ==>
-- [NocScript] Executing and asserting code: SR_WRITE("AXIS_CONFIG_BUS", ADD($ctrl_word, LOG2($spp)))
-- [NocScript] Executing SR_WRITE()
--   [0/FFT_0] sr_write(AXIS_CONFIG_BUS, 000D5408) ==>
-- [NocScript] Executing and asserting code: EQUAL($otype, "sc16")
-- [NocScript] Executing and asserting code:
--           IF(NOT(EQUAL($reset, 0)), SR_WRITE("FFT_RESET", 1) AND SR_WRITE("FFT_RESET", 0))
--      
-- [NocScript] Executing SR_WRITE()
--   [0/FFT_0] sr_write(FFT_RESET, 00000001) ==>
-- [NocScript] Executing SR_WRITE()
--   [0/FFT_0] sr_write(FFT_RESET, 00000000) ==>
-- [NocScript] Executing and asserting code: EQUAL($magnitude_out, "COMPLEX") OR EQUAL($magnitude_out, "MAGNITUDE") OR EQUAL($magnitude_out, "MAGNITUDE_SQUARED")
-- [NocScript] Executing and asserting code:
--           IF(EQUAL($magnitude_out, "COMPLEX"),           SR_WRITE("MAGNITUDE_OUT", 0)) OR
--           IF(EQUAL($magnitude_out, "MAGNITUDE"),         SR_WRITE("MAGNITUDE_OUT", 1)) OR
--           IF(EQUAL($magnitude_out, "MAGNITUDE_SQUARED"), SR_WRITE("MAGNITUDE_OUT", 2))
--      
-- [NocScript] Executing SR_WRITE()
--   [0/FFT_0] sr_write(MAGNITUDE_OUT, 00000000) ==>
-- [RFNOC] ------- Block Setup -----------
-- Setting up NoC-Shell Control for port #0 (SID: 00:09>02:80)...OK
-- Port 128: Found NoC-Block with ID DDC0000000000000.
-- Reading XML file: /usr/local/share/uhd/rfnoc/blocks/ddc.xml
-- Setting up NoC-Shell Control for port #1 (SID: 00:0a>02:81)...OK
-- [RFNoC Factory] block_ctrl_base::make()
-- Reading XML file: /usr/local/share/uhd/rfnoc/blocks/ddc.xml
-- [RFNoC Factory] Using controller key 'DDC' and block name 'DDC'
-- block_ctrl_base()
-- Reading XML file: /usr/local/share/uhd/rfnoc/blocks/ddc.xml
-- Found valid blockdef
-- NOC ID: 0xDDC0000000000000  Block ID: 0/DDC_0
-- [0/DDC_0] block_ctrl_base::clear()
-- [0/DDC_0] node_ctrl_base::clear()
-- [0/DDC_0] block_ctrl_base::_clear()
-- [0/DDC_0] block_ctrl_base::_clear()
-- [0/DDC_0] Adding port definition at xbar/DDC_0/ports/in/0: type = 'sc16' pkt_size = '0' vlen = '0'
-- [0/DDC_0] Adding port definition at xbar/DDC_0/ports/in/1: type = 'sc16' pkt_size = '0' vlen = '0'
-- [0/DDC_0] Adding port definition at xbar/DDC_0/ports/out/0: type = 'sc16' pkt_size = '0' vlen = '0'
-- [0/DDC_0] Adding port definition at xbar/DDC_0/ports/out/1: type = 'sc16' pkt_size = '0' vlen = '0'
-- [NocScript] Executing and asserting code: GE($input_rate, 0.0)
-- [NocScript] Executing and asserting code: GE($output_rate, 0.0)
-- [NocScript] Executing and asserting code: GE($fullscale, 0.0)
-- [NocScript] Executing and asserting code: GE($input_rate, 0.0)
-- [NocScript] Executing and asserting code: GE($output_rate, 0.0)
-- [NocScript] Executing and asserting code: GE($fullscale, 0.0)
--   [0/DDC_0] sr_write(CORDIC_FREQ, 00000000) ==>
--   [0/DDC_0] sr_write(DECIM_WORD, 00000001) ==>
--   [0/DDC_0] sr_write(N, 00000001) ==>
--   [0/DDC_0] sr_write(M, 00000001) ==>
--   [0/DDC_0] sr_write(SCALE_IQ, 00004DAB) ==>
-- [NocScript] Executing and asserting code: GE($output_rate, 0.0)
--   [0/DDC_0] sr_write(N, 00000001) ==>
--   [0/DDC_0] sr_write(M, 00000001) ==>
--   [0/DDC_0] sr_write(CONFIG, 00000001) ==>
--   [0/DDC_0] sr_write(CORDIC_FREQ, 00000000) ==>
--   [0/DDC_0] sr_write(DECIM_WORD, 00000001) ==>
--   [0/DDC_0] sr_write(N, 00000001) ==>
--   [0/DDC_0] sr_write(M, 00000001) ==>
--   [0/DDC_0] sr_write(SCALE_IQ, 00004DAB) ==>
-- [NocScript] Executing and asserting code: GE($output_rate, 0.0)
--   [0/DDC_0] sr_write(N, 00000001) ==>
--   [0/DDC_0] sr_write(M, 00000001) ==>
--   [0/DDC_0] sr_write(CONFIG, 00000001) ==>
-- [RFNOC] ------- Block Setup -----------
-- Setting up NoC-Shell Control for port #0 (SID: 00:0b>02:90)...OK
-- Port 144: Found NoC-Block with ID D053000000000000.
-- Reading XML file: /usr/local/share/uhd/rfnoc/blocks/window.xml
-- [RFNoC Factory] block_ctrl_base::make()
-- Reading XML file: /usr/local/share/uhd/rfnoc/blocks/window.xml
-- [RFNoC Factory] Using controller key 'Window' and block name 'Window'
-- block_ctrl_base()
-- Reading XML file: /usr/local/share/uhd/rfnoc/blocks/window.xml
-- Found valid blockdef
-- NOC ID: 0xD053000000000000  Block ID: 0/Window_0
-- [0/Window_0] block_ctrl_base::clear()
-- [0/Window_0] node_ctrl_base::clear()
-- [0/Window_0] block_ctrl_base::_clear()
-- [0/Window_0] Adding port definition at xbar/Window_0/ports/in/0: type = 'sc16' pkt_size = '%vlen' vlen = '$spp'
-- [0/Window_0] Adding port definition at xbar/Window_0/ports/out/0: type = 'sc16' pkt_size = '%vlen' vlen = '$spp'
-- window_block::window_block() max_len ==4096
-- [0/Window_0] window_block::set_window()
-- [RFNOC] ------- Block Setup -----------
-- Setting up NoC-Shell Control for port #0 (SID: 00:0c>02:a0)...OK
-- Port 160: Found NoC-Block with ID F1F0000000000000.
-- Reading XML file: /usr/local/share/uhd/rfnoc/blocks/fifo.xml
-- [RFNoC Factory] block_ctrl_base::make()
-- Reading XML file: /usr/local/share/uhd/rfnoc/blocks/fifo.xml
-- [RFNoC Factory] Using controller key 'Block' and block name 'FIFO'
-- block_ctrl_base()
-- Reading XML file: /usr/local/share/uhd/rfnoc/blocks/fifo.xml
-- Found valid blockdef
-- NOC ID: 0xF1F0000000000000  Block ID: 0/FIFO_0
-- [0/FIFO_0] block_ctrl_base::clear()
-- [0/FIFO_0] node_ctrl_base::clear()
-- [0/FIFO_0] block_ctrl_base::_clear()
-- [0/FIFO_0] Adding port definition at xbar/FIFO_0/ports/in/0: type = '' pkt_size = '0' vlen = '0'
-- [0/FIFO_0] Adding port definition at xbar/FIFO_0/ports/out/0: type = '' pkt_size = '0' vlen = '0'
-- [RFNOC] ------- Block Setup -----------
-- Setting up NoC-Shell Control for port #0 (SID: 00:0d>02:b0)...OK
-- Port 176: Found NoC-Block with ID F1F0000000000000.
-- Reading XML file: /usr/local/share/uhd/rfnoc/blocks/fifo.xml
-- [RFNoC Factory] block_ctrl_base::make()
-- Reading XML file: /usr/local/share/uhd/rfnoc/blocks/fifo.xml
-- [RFNoC Factory] Using controller key 'Block' and block name 'FIFO'
-- block_ctrl_base()
-- Reading XML file: /usr/local/share/uhd/rfnoc/blocks/fifo.xml
-- Found valid blockdef
-- NOC ID: 0xF1F0000000000000  Block ID: 0/FIFO_1
-- [0/FIFO_1] block_ctrl_base::clear()
-- [0/FIFO_1] node_ctrl_base::clear()
-- [0/FIFO_1] block_ctrl_base::_clear()
-- [0/FIFO_1] Adding port definition at xbar/FIFO_1/ports/in/0: type = '' pkt_size = '0' vlen = '0'
-- [0/FIFO_1] Adding port definition at xbar/FIFO_1/ports/out/0: type = '' pkt_size = '0' vlen = '0'
-- Performing timer loopback test... pass
-- Performing timer loopback test... pass
-- [0/DmaFIFO_0] block_ctrl_base::clear()
-- [0/DmaFIFO_0] node_ctrl_base::clear()
-- [0/DmaFIFO_0] block_ctrl_base::_clear()
-- [0/DmaFIFO_0] block_ctrl_base::_clear()
-- [0/Radio_0] block_ctrl_base::clear()
-- [0/Radio_0] node_ctrl_base::clear()
-- [0/Radio_0] block_ctrl_base::_clear()
-- [0/Radio_0] block_ctrl_base::_clear()
-- [0/Radio_1] block_ctrl_base::clear()
-- [0/Radio_1] node_ctrl_base::clear()
-- [0/Radio_1] block_ctrl_base::_clear()
-- [0/Radio_1] block_ctrl_base::_clear()
-- [0/fosphor_0] block_ctrl_base::clear()
-- [0/fosphor_0] node_ctrl_base::clear()
-- [0/fosphor_0] block_ctrl_base::_clear()
-- [0/fosphor_0] block_ctrl_base::_clear()
-- [0/FFT_0] block_ctrl_base::clear()
-- [0/FFT_0] node_ctrl_base::clear()
-- [0/FFT_0] block_ctrl_base::_clear()
-- [0/DDC_0] block_ctrl_base::clear()
-- [0/DDC_0] node_ctrl_base::clear()
-- [0/DDC_0] block_ctrl_base::_clear()
-- [0/DDC_0] block_ctrl_base::_clear()
-- [0/Window_0] block_ctrl_base::clear()
-- [0/Window_0] node_ctrl_base::clear()
-- [0/Window_0] block_ctrl_base::_clear()
-- [0/FIFO_0] block_ctrl_base::clear()
-- [0/FIFO_0] node_ctrl_base::clear()
-- [0/FIFO_0] block_ctrl_base::_clear()
-- [0/FIFO_1] block_ctrl_base::clear()
-- [0/FIFO_1] node_ctrl_base::clear()
-- [0/FIFO_1] block_ctrl_base::_clear()
INFO: Setting args on 0/Window_0 (spp=1024)
DEBUG: output item size: 8192
-- [0/Window_0] window_block::set_window()
INFO: Setting args on 0/Radio_0 (spp=1024)
-- [0/Radio_0] radio_ctrl_impl::_update_spp(): Requested spp: 1024
-- [0/Radio_0] radio_ctrl_impl::_update_spp(): Setting spp to: 1024
DEBUG: output item size: 8
INFO: Setting args on 0/fosphor_0 (spp=1024)
DEBUG: output item size: 1024
-- [NocScript] Executing and asserting code: GE($enable, 0) AND LE($enable, 3)
-- [NocScript] Executing and asserting code: SR_WRITE("ENABLE", $enable)
-- [NocScript] Executing SR_WRITE()
--   [0/fosphor_0] sr_write(ENABLE, 00000003) ==>
-- [NocScript] Executing and asserting code: GE($decim, 2) AND LE($decim, 1024)
-- [NocScript] Executing and asserting code: SR_WRITE("DECIM", ADD($decim, -2))
-- [NocScript] Executing SR_WRITE()
--   [0/fosphor_0] sr_write(DECIM, 00000030) ==>
-- [NocScript] Executing and asserting code: GE($offset, 0) AND LE($offset, 65536)
-- [NocScript] Executing and asserting code: SR_WRITE("OFFSET", $offset)
-- [NocScript] Executing SR_WRITE()
--   [0/fosphor_0] sr_write(OFFSET, 00000000) ==>
-- [NocScript] Executing and asserting code: GE($scale, 0) AND LE($scale, 65536)
-- [NocScript] Executing and asserting code: SR_WRITE("SCALE", $scale)
-- [NocScript] Executing SR_WRITE()
--   [0/fosphor_0] sr_write(SCALE, 00000100) ==>
-- [NocScript] Executing and asserting code: GE($trise, 0) AND LE($trise, 65536)
-- [NocScript] Executing and asserting code: SR_WRITE("TRISE", $trise)
-- [NocScript] Executing SR_WRITE()
--   [0/fosphor_0] sr_write(TRISE, 00000040) ==>
-- [NocScript] Executing and asserting code: GE($tdecay, 0) AND LE($tdecay, 65536)
-- [NocScript] Executing and asserting code: SR_WRITE("TDECAY", $tdecay)
-- [NocScript] Executing SR_WRITE()
--   [0/fosphor_0] sr_write(TDECAY, 00000100) ==>
-- [NocScript] Executing and asserting code: GE($alpha, 0) AND LE($alpha, 65536)
-- [NocScript] Executing and asserting code: SR_WRITE("ALPHA", $alpha)
-- [NocScript] Executing SR_WRITE()
--   [0/fosphor_0] sr_write(ALPHA, 0000F618) ==>
-- [NocScript] Executing and asserting code: GE($epsilon, 0) AND LE($epsilon, 65536)
-- [NocScript] Executing and asserting code: SR_WRITE("EPSILON", $epsilon)
-- [NocScript] Executing SR_WRITE()
--   [0/fosphor_0] sr_write(EPSILON, 00000004) ==>
-- [NocScript] Executing and asserting code: GE($wf_ctrl, 0) AND LE($enable, 255)
-- [NocScript] Executing and asserting code: SR_WRITE("WF_CTRL", $wf_ctrl)
-- [NocScript] Executing SR_WRITE()
--   [0/fosphor_0] sr_write(WF_CTRL, 00000000) ==>
-- [NocScript] Executing and asserting code: GE($wf_decim, 2) AND LE($wf_decim, 256)
-- [NocScript] Executing and asserting code: SR_WRITE("WF_DECIM", ADD($wf_decim, -2))
-- [NocScript] Executing SR_WRITE()
--   [0/fosphor_0] sr_write(WF_DECIM, 000000FE) ==>
INFO: Setting args on 0/FIFO_0 (gr_vlen=1024,spp=1024)
DEBUG: output item size: 1024
INFO: Setting args on 0/FIFO_1 (gr_vlen=1024,spp=1024)
DEBUG: output item size: 1024
INFO: Setting args on 0/FFT_0 (spp=1024,magnitude_out=COMPLEX)
-- [NocScript] Executing and asserting code: GE($spp, 16) AND LE($spp, 4096) AND IS_PWR_OF_2($spp)
-- [NocScript] Executing and asserting code: SR_WRITE("FFT_SIZE_LOG2", LOG2($spp)) AND SR_WRITE("AXIS_CONFIG_BUS", ADD(873472, LOG2($spp)))
-- [NocScript] Executing SR_WRITE()
--   [0/FFT_0] sr_write(FFT_SIZE_LOG2, 0000000A) ==>
-- [NocScript] Executing SR_WRITE()
--   [0/FFT_0] sr_write(AXIS_CONFIG_BUS, 000D540A) ==>
-- [NocScript] Executing and asserting code: EQUAL($magnitude_out, "COMPLEX") OR EQUAL($magnitude_out, "MAGNITUDE") OR EQUAL($magnitude_out, "MAGNITUDE_SQUARED")
-- [NocScript] Executing and asserting code:
--           IF(EQUAL($magnitude_out, "COMPLEX"),           SR_WRITE("MAGNITUDE_OUT", 0)) OR
--           IF(EQUAL($magnitude_out, "MAGNITUDE"),         SR_WRITE("MAGNITUDE_OUT", 1)) OR
--           IF(EQUAL($magnitude_out, "MAGNITUDE_SQUARED"), SR_WRITE("MAGNITUDE_OUT", 2))
--      
-- [NocScript] Executing SR_WRITE()
--   [0/FFT_0] sr_write(MAGNITUDE_OUT, 00000000) ==>
DEBUG: output item size: 8192
INFO: Setting args on 0/DmaFIFO_0 (gr_vlen=1024,spp=1024)
DEBUG: output item size: 1024
-- [NocScript] Executing and asserting code: EQUAL($base_addr, 0) OR IS_PWR_OF_2($base_addr)
-- [NocScript] Executing and asserting code: IS_PWR_OF_2($depth)
-- [NocScript] Executing and asserting code: EQUAL($base_addr, 0) OR IS_PWR_OF_2($base_addr)
-- [NocScript] Executing and asserting code: IS_PWR_OF_2($depth)
-- [GNU Radio] Connecting 0/DmaFIFO_0:0 --> 0/FIFO_1:0
-- [0/DmaFIFO_0] source_block_ctrl_base::set_destination() 2.48>2.176
-- [0/DmaFIFO_0]   Setting SID: 2.48>2.176
--   Assuming max packet size for 0/DmaFIFO_0
-- [0/DmaFIFO_0] source_block_ctrl_base::configure_flow_control_out() buf_size_pkts==2
-- [0/FIFO_1] sink_block_ctrl_base::configure_flow_control_in(cycles=0, packets=1)
-- [GNU Radio] Connecting 0/DmaFIFO_0:1 --> 0/FIFO_0:0
-- [0/DmaFIFO_0] source_block_ctrl_base::set_destination() 2.49>2.160
-- [0/DmaFIFO_0]   Setting SID: 2.49>2.160
--   Assuming max packet size for 0/DmaFIFO_0
-- [0/DmaFIFO_0] source_block_ctrl_base::configure_flow_control_out() buf_size_pkts==2
-- [0/FIFO_0] sink_block_ctrl_base::configure_flow_control_in(cycles=0, packets=1)
-- [GNU Radio] Connecting 0/FFT_0:0 --> 0/fosphor_0:0
-- [0/FFT_0] source_block_ctrl_base::set_destination() 2.112>2.96
-- [0/FFT_0]   Setting SID: 2.112>2.96
--   [0/FFT_0] source_block_ctrl_base::configure_flow_control_out() buf_size_pkts==4
-- [0/fosphor_0] sink_block_ctrl_base::configure_flow_control_in(cycles=0, packets=2)
-- [GNU Radio] Connecting 0/fosphor_0:0 --> 0/DmaFIFO_0:0
-- [0/fosphor_0] source_block_ctrl_base::set_destination() 2.96>2.48
-- [0/fosphor_0]   Setting SID: 2.96>2.48
--   [0/fosphor_0] source_block_ctrl_base::configure_flow_control_out() buf_size_pkts==32
-- [0/DmaFIFO_0] sink_block_ctrl_base::configure_flow_control_in(cycles=0, packets=2)
-- [GNU Radio] Connecting 0/fosphor_0:1 --> 0/DmaFIFO_0:1
-- [0/fosphor_0] source_block_ctrl_base::set_destination() 2.97>2.49
-- [0/fosphor_0]   Setting SID: 2.97>2.49
--   [0/fosphor_0] source_block_ctrl_base::configure_flow_control_out() buf_size_pkts==32
-- [0/DmaFIFO_0] sink_block_ctrl_base::configure_flow_control_in(cycles=0, packets=2)
-- [GNU Radio] Connecting 0/Radio_0:0 --> 0/Window_0:0
-- [0/Radio_0] source_block_ctrl_base::set_destination() 2.64>2.144
-- [0/Radio_0]   Setting SID: 2.64>2.144
--   Assuming max packet size for 0/Radio_0
-- [0/Radio_0] source_block_ctrl_base::configure_flow_control_out() buf_size_pkts==2
-- [0/Window_0] sink_block_ctrl_base::configure_flow_control_in(cycles=0, packets=1)
-- [GNU Radio] Connecting 0/Window_0:0 --> 0/FFT_0:0
-- [0/Window_0] source_block_ctrl_base::set_destination() 2.144>2.112
-- [0/Window_0]   Setting SID: 2.144>2.112
--   [0/Window_0] source_block_ctrl_base::configure_flow_control_out() buf_size_pkts==4
-- [0/FFT_0] sink_block_ctrl_base::configure_flow_control_in(cycles=0, packets=2)
DEBUG: check_topology()
DEBUG: RFNoC blocks with streaming ports: 0
DEBUG: check_topology()
DEBUG: RFNoC blocks with streaming ports: 1
DEBUG: check_topology()
DEBUG: RFNoC blocks with streaming ports: 2
DEBUG: start(): ninputs == 0 noutputs == 1
******* MESSAGE DEBUG PRINT ********
DEBUG: start(): ninputs == 0 noutputs == 1
((clear . 1) (decim . 50))
************************************
DEBUG: start(): ninputs == 0 noutputs == 0
-- [NocScript] Executing and asserting code: IF(NOT(EQUAL($clear, 0)), SR_WRITE("CLEAR", $clear))
-- [NocScript] Executing SR_WRITE()
--   DEBUG: creating rx streamer with: gr_vlen=1024,spp=1024,block_id=0/FIFO_1,block_port=0
DEBUG: creating rx streamer with: gr_vlen=1024,spp=1024,block_id=0/FIFO_0,block_port=0
[0/fosphor_0] sr_write(CLEAR, 00000001) ==>
-- [RX Streamer] chan 0 connecting to 0/FIFO_1
-- [NocScript] Executing and asserting code: GE($decim, 2) AND LE($decim, 1024)
-- [RX Streamer] creating rx stream recv_buff_size=33554432
-- [NocScript] Executing and asserting code: SR_WRITE("DECIM", ADD($decim, -2))
-- [NocScript] Executing SR_WRITE()
--   [0/fosphor_0] sr_write(DECIM, 00000030) ==>

UHD Warning:
    The recv buffer could not be resized sufficiently.
    Target sock buff size: 33554432 bytes.
    Actual sock buff size: 212992 bytes.
    See the transport application notes on buffer resizing.
    Please run: sudo sysctl -w net.core.rmem_max=33554432
-- [RX Streamer] data_sid = 00:0e>02:b0 actual recv_buff_size = 212992
-- [0/FIFO_1] source_block_ctrl_base::set_destination() 0.0>0.14
-- [0/FIFO_1]   Setting SID: 2.176>0.14
--   [RX Streamer] resp_out_dst_sid == 14
-- [RX Streamer] Number of upstream radio nodes: 1
-- [RX Streamer] spp == 1024
-- [RX Streamer] Flow Control Window (minus one) = 162, Flow Control Handler Window = 5
-- [0/FIFO_1] source_block_ctrl_base::configure_flow_control_out() buf_size_pkts==162
-- [RX Terminator 0] rx_stream_terminator::set_rx_streamer() 1
-- [0/FIFO_1] source_node_ctrl::set_rx_streamer() 0 -> 1
-- [0/DmaFIFO_0] source_node_ctrl::set_rx_streamer() 0 -> 1
-- [0/fosphor_0] source_node_ctrl::set_rx_streamer() 0 -> 1
-- [0/FFT_0] source_node_ctrl::set_rx_streamer() 0 -> 1
-- [0/Window_0] source_node_ctrl::set_rx_streamer() 0 -> 1
-- [0/Radio_0] radio_ctrl_impl::set_rx_streamer() 0 -> 1
-- [0/Radio_0] x300_radio_ctrl_impl::check_radio_config()
-- [Device3] updating RX streamer to RX Terminator 0
--   New tick_rate == 2e+08  New samp_rate == 2e+08 New scaling == 3.05185e-05
-- [RX Streamer] chan 0 connecting to 0/FIFO_0
-- [RX Streamer] creating rx stream recv_buff_size=33554432

UHD Warning:
    The recv buffer could not be resized sufficiently.
    Target sock buff size: 33554432 bytes.
    Actual sock buff size: 212992 bytes.
    See the transport application notes on buffer resizing.
    Please run: sudo sysctl -w net.core.rmem_max=33554432
QGLShaderProgram: could not create shader program
QGLShaderProgram::uniformLocation( cmap ): shader program is not linked
QGLShaderProgram::uniformLocation( tex ): shader program is not linked
QGLShaderProgram::uniformLocation( range ): shader program is not linked
-- [RX Streamer] data_sid = 00:0f>02:a0 actual recv_buff_size = 212992
-- [0/FIFO_0] source_block_ctrl_base::set_destination() 0.0>0.15
-- [0/FIFO_0]   Setting SID: 2.160>0.15
--   [RX Streamer] resp_out_dst_sid == 15
-- [RX Streamer] Number of upstream radio nodes: 1
-- [RX Streamer] spp == 1024
-- [RX Streamer] Flow Control Window (minus one) = 162, Flow Control Handler Window = 5
-- [0/FIFO_0] source_block_ctrl_base::configure_flow_control_out() buf_size_pkts==162
-- [RX Terminator 1] rx_stream_terminator::set_rx_streamer() 1
-- [0/FIFO_0] source_node_ctrl::set_rx_streamer() 0 -> 1
-- [0/DmaFIFO_0] source_node_ctrl::set_rx_streamer() 1 -> 1
-- [0/fosphor_0] source_node_ctrl::set_rx_streamer() 1 -> 1
-- [Device3] updating RX streamer to RX Terminator 0
--   New tick_rate == 2e+08  New samp_rate == 2e+08 New scaling == 3.05185e-05
-- [Device3] updating RX streamer to RX Terminator 1
--   New tick_rate == 2e+08  New samp_rate == 2e+08 New scaling == 3.05185e-05
-- [0/FIFO_0] source_block_ctrl_base::issue_stream_cmd()
-- [0/FIFO_1] source_block_ctrl_base::issue_stream_cmd()
-- [0/DmaFIFO_0] source_block_ctrl_base::issue_stream_cmd()
-- [0/DmaFIFO_0] source_block_ctrl_base::issue_stream_cmd()
-- [0/fosphor_0] source_block_ctrl_base::issue_stream_cmd()
-- [0/fosphor_0] source_block_ctrl_base::issue_stream_cmd()
-- [0/FFT_0] source_block_ctrl_base::issue_stream_cmd()
-- [0/FFT_0] source_block_ctrl_base::issue_stream_cmd()
-- [0/Window_0] source_block_ctrl_base::issue_stream_cmd()
-- [0/Window_0] source_block_ctrl_base::issue_stream_cmd()
-- [0/Radio_0] radio_ctrl_impl::issue_stream_cmd() 0 a
-- [0/fosphor_0] source_block_ctrl_base::issue_stream_cmd()
-- [0/FFT_0] source_block_ctrl_base::issue_stream_cmd()
-- [0/Radio_0] radio_ctrl_impl::issue_stream_cmd() 0 a
-- [0/Window_0] source_block_ctrl_base::issue_stream_cmd()
-- [0/fosphor_0] source_block_ctrl_base::issue_stream_cmd()
-- [0/Radio_0] radio_ctrl_impl::issue_stream_cmd() 0 a
-- [0/FFT_0] source_block_ctrl_base::issue_stream_cmd()
-- [0/Window_0] source_block_ctrl_base::issue_stream_cmd()
-- [0/Radio_0] radio_ctrl_impl::issue_stream_cmd() 0 a
-- expected: 30 got: 40
Doverrun on chan 0
-- expected: 41 got: 30
Doverrun on chan 0
-- expected: 31 got: 41
Doverrun on chan 0
-- expected: 42 got: 31
Doverrun on chan 0
-- expected: 32 got: 42
Doverrun on chan 0
-- expected: 43 got: 32
Doverrun on chan 0
-- expected: 33 got: 43
Doverrun on chan 0
-- expected: 44 got: 33
Doverrun on chan 0
-- expected: 34 got: 44
Doverrun on chan 0
-- expected: 45 got: 34
Doverrun on chan 0
-- expected: 35 got: 45
Doverrun on chan 0
-- expected: 46 got: 35
Doverrun on chan 0
-- expected: 36 got: 46
Doverrun on chan 0
-- expected: 47 got: 36
Doverrun on chan 0
-- expected: 37 got: 47
Doverrun on chan 0
-- expected: 48 got: 37
Doverrun on chan 0
-- expected: 38 got: 48
Doverrun on chan 0
-- expected: 49 got: 38
Doverrun on chan 0
-- expected: 39 got: 49
Doverrun on chan 0
-- expected: 50 got: 39
Doverrun on chan 0
-- expected: 40 got: 50
Doverrun on chan 0
Segmentation fault (core dumped)



-----Original Message-----
From: Sylvain Munaut [mailto:[hidden email]]
Sent: Tuesday, October 04, 2016 11:04 AM
To: Long, Jeffrey P.
Cc: [hidden email]
Subject: Re: [USRP-users] error in rfnoc_fosphor.grc

Hi,


> Ok that does not seem to be an option for me, it is all grayed out. Nevertheless I just ran the .py from the command line and I get the following output at the end of all the rfnoc verbage:

Yeah, they're grayed out, but F5 / F6 should still work. They bypass the icons.


> RuntimeError: Cannot find a block for ID: FIFO_1

The new flow graph needs two loopback FIFOs. Your FPGA image only has one.


Cheers,

   Sylvain
_______________________________________________
USRP-users mailing list
[hidden email]
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com

_______________________________________________
USRP-users mailing list
[hidden email]
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
Reply | Threaded
Open this post in threaded view
|

Re: [USRP-users] error in rfnoc_fosphor.grc

Martin Braun via USRP-users
Hi,


> Anyway I built a new image with the extra fifo and running the python script version it seems to start up and then it seg faults. Am I still missing something?

rfnoc fosphor doesn't need OpenCL at all.

Most likely you're hitting :
https://bugs.launchpad.net/ubuntu/+source/python-qt4/+bug/941826

Basically ubuntu is messing too much with GL and when you combine
python + qt + opengl + nvidia + ubuntu, then it breaks ...

There is a ugly work around, but it needs to be done at the very
beginning of the python ... and a grc block just can't insert code
there automatically AFAIK


Cheers,

    Sylvain

_______________________________________________
USRP-users mailing list
[hidden email]
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com