Thanks for your prompt reply, Michael. I have successfully installed both
gnuradio-master and uhd-master from source. I would like to build an image of
the X310 using the OOT block gain in the example folder. However, the
rfnoc_image_builder.py is giving me an error. I wonder if the syntax I am
providing is correct?
First mkdir and cmake from a build folder in the OOT gain example:
nvd@nvd-VirtualBox:~/rfnoc/src/uhd/host/examples/rfnoc-example/build$ cmake ../
-DUHD_FPGA_DIR=~/rfnoc/src/uhd/fpga/
-- Found bash interpreter: /bin/bash
-- Found UHD:
-- * INCLUDES = /usr/local/include
-- * LIBS = /usr/local/lib/libuhd.so
-- * rfnoc_image_builder = /usr/local/bin/rfnoc_image_builder
-- Checking FPGA source directory...
-- Using FPGA source directory: /home/nvd/rfnoc/src/uhd/fpga
-- Registering RFNoC block: rfnoc_block_gain
-- Adding testbench target: rfnoc_block_gain_tb
-- Adding image core target: x310_rfnoc_image_core
-- Boost version: 1.65.1
-- Found the following Boost libraries:
-- program_options
-- system
-- Configuring done
-- Generating done
-- Build files have been written to:
/home/nvd/rfnoc/src/uhd/host/examples/rfnoc-example/build
Next, change directory and try to build:
nvd@nvd-VirtualBox:~/rfnoc/src/uhd/host/examples/rfnoc-example/build$ cd
~/rfnoc/src/uhd/host/utils/
nvd@nvd-VirtualBox:~/rfnoc/src/uhd/host/utils$ ./rfnoc_image_builder.py -F
../examples/rfnoc-example/ -y
../examples/rfnoc-example/icores/x310_rfnoc_image_core.yml -b
../examples/rfnoc-example/blocks/gain.yml -t X310_HG
[INF] Selected device x310
[INF] Using io_signatures.yml from ../include/uhd/rfnoc/core.
[INF] Using x310_bsp.yml from ../include/uhd/rfnoc/core.
[INF] Adding block description from radio.yml (../include/uhd/rfnoc/blocks).
[INF] Adding block description from radio_2x64.yml
(../include/uhd/rfnoc/blocks).
[INF] Adding block description from fir_filter.yml
(../include/uhd/rfnoc/blocks).
[INF] Adding block description from duc.yml (../include/uhd/rfnoc/blocks).
[INF] Adding block description from fosphor.yml (../include/uhd/rfnoc/blocks).
[INF] Adding block description from radio_1x64.yml
(../include/uhd/rfnoc/blocks).
[INF] Adding block description from axi_ram_fifo_2x64.yml
(../include/uhd/rfnoc/blocks).
[INF] Adding block description from axi_ram_fifo.yml
(../include/uhd/rfnoc/blocks).
[INF] Adding block description from fft_1x64.yml (../include/uhd/rfnoc/blocks).
[INF] Adding block description from ddc.yml (../include/uhd/rfnoc/blocks).
[INF] Adding block description from axi_ram_fifo_4x64.yml
(../include/uhd/rfnoc/blocks).
[INF] Adding block description from null_src_sink.yml
(../include/uhd/rfnoc/blocks).
Traceback (most recent call last):
File "./rfnoc_image_builder.py", line 189, in <module>
sys.exit(main())
File "./rfnoc_image_builder.py", line 185, in main
include_paths=args.include_dir,
File "/usr/local/lib/python3/dist-packages/uhd/imgbuilder/image_builder.py",
line 824, in build_image
builder_conf = ImageBuilderConfig(config, blocks, device_conf)
File "/usr/local/lib/python3/dist-packages/uhd/imgbuilder/image_builder.py",
line 180, in __init__
self._collect_noc_ports()
File "/usr/local/lib/python3/dist-packages/uhd/imgbuilder/image_builder.py",
line 217, in _collect_noc_ports
desc = self.blocks[block["block_desc"]]
KeyError: 'gain.yml'
Also, for using the rfnoc_create_verilog requires a yaml configuration file as
input. Is there an example or documentation somewhere of the format of this
configuration file? Is gain.yml the file that was provided to
rfnoc_create_verilog to produce the OOT in the example folder?
Jeff
From: Michael Dickens <[email protected]>
Sent: Friday, May 29, 2020 8:07 PM
To: Hodges, Jeff <[email protected]>
Cc: [email protected]
Subject: Re: [USRP-users] creating an rfnoc block on master branch
Nope. gr-ettus is, plus or minus, integrated into gr-uhd on GR master. - MLD
---
Michael Dickens
Ettus Research Technical Support
Email: [email protected]<mailto:[email protected]>
Web: https://ettus.com/
On Fri, May 29, 2020 at 5:40 PM Hodges, Jeff
<[email protected]<mailto:[email protected]>> wrote:
Is gr-ettus still required for rfnoc on master branch? I cannot install
gr-ettus with uhd master and gnuradio master.
When I run gnuradio-companion the rfnoc blocks are missing.
Jeff
From: Michael Dickens
<[email protected]<mailto:[email protected]>>
Sent: Friday, May 29, 2020 8:31 AM
To: Hodges, Jeff
<[email protected]<mailto:[email protected]>>
Cc: [email protected]<mailto:[email protected]>
Subject: Re: [USRP-users] creating an rfnoc block on master branch
Hi Jeff - The new tool is called "rfnoc_create_verilog" ... it's located in the
UHD repo as "host/utils/rfnoc_blocktool/rfnoc_create_verilog.py". - MLD
---
Michael Dickens
Ettus Research Technical Support
Email: [email protected]<mailto:[email protected]>
Web: https://ettus.com/
On Thu, May 28, 2020 at 11:54 PM Hodges, Jeff via USRP-users
<[email protected]<mailto:[email protected]>> wrote:
I also would like to know the answer to Rob’s question:
Rfnocmodtool is in gr-ettus but if I try to install gr-ettus with the uhd
master branch, I get the following error:
[ 5%] Building CXX object lib/CMakeFiles/gnuradio-ettus.dir/device3.cc.o
In file included from /home/nvd/rfnoc/src/gr-ettus/lib/device3.cc:27:0:
/home/nvd/rfnoc/src/gr-ettus/include/ettus/device3.h:30:10: fatal error:
uhd/device3.hpp: No such file or directory
#include <uhd/device3.hpp>
^~~~~~~~~~~~~~~~~
compilation terminated.
lib/CMakeFiles/gnuradio-ettus.dir/build.make:72: recipe for target
'lib/CMakeFiles/gnuradio-ettus.dir/device3.cc.o' failed
make[2]: *** [lib/CMakeFiles/gnuradio-ettus.dir/device3.cc.o] Error 1
CMakeFiles/Makefile2:139: recipe for target
'lib/CMakeFiles/gnuradio-ettus.dir/all' failed
make[1]: *** [lib/CMakeFiles/gnuradio-ettus.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
So how does rfnoc work with master branch?
I have also installed UHD-3.15.LTS without PYBOMBS and there were errors that
have been fixed in the master branch but not UHD-3.15.LTS.
There are no current versions of UHD that work with RFNoC to build OOT without
the PYBOMBS method.
Jeff
From: USRP-users
<[email protected]<mailto:[email protected]>>
On Behalf Of Rob Kossler via USRP-users
Sent: Thursday, May 21, 2020 3:19 PM
To: usrp-users <[email protected]<mailto:[email protected]>>
Subject: [USRP-users] creating an rfnoc block on master branch
Hi,
How do I create an rfnoc block using master branch? I am familiar with using
rfnoc_mod_tool with UHD 3.15 and earlier. My understanding was that things are
different with master (and uhd 4.0) such that a different tool would be used
and that this new tool would be part of UHD rather than part of a gnuradio
installation. But, I don't see any such tool in my uhd master checkout.
Rob
_______________________________________________
USRP-users mailing list
[email protected]<mailto:[email protected]>
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
_______________________________________________
USRP-users mailing list
[email protected]
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com