Hi all,
I am currently following the Getting started UHD 4 guide and when building
a fpga image running the following command:
* rfnoc_image_builder -F ~/uhd/fpga/ -I ~/rfnoc-ws/rfnoc-test/rfnoc/blocks
-y ~/rfnoc_ws/rfnoc-test/rfnoc/icores/demo_x310_rfnoc_image_core.yml -t
X310_XG*
I get the following error message:
...
[INF] Adding block description from fir_filter.yml
(/usr/local/share/uhd/rfnoc/blocks).
[INF] Adding block description from radio_1x64.yml
(/usr/local/share/uhd/rfnoc/blocks).
Traceback (most recent call last):
File "/usr/local/bin/rfnoc_image_builder", line 212, in <module>
sys.exit(main())
File "/usr/local/bin/rfnoc_image_builder", line 195, in main
image_builder.build_image(
File
"/usr/local/lib/python3/dist-packages/uhd/imgbuilder/image_builder.py",
line 864, 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: 'demo.yml'
Basically what I did was to modify the *gain.yml *to be *demo.yml,*
the *gain_x310_rfnoc_image_core.yml
*to be *demo_x310_rfnoc_image_core.yml, * I also modified both demo yaml
files with different name, noc_id, I changed the static connections to
reflect the demo0 device like this:
* demo_x310_rfnoc_image_core.yml:*
...
radio1:
block_desc: 'radio_2x64.yml'
demo0:
block_desc: '*demo.ym*l'
...
- { srcblk: ddc1, srcport: out_1, dstblk: ep3, dstport: in0 }
# Custom block connection: ep4 to demo0 and demo0 to ep4
- { srcblk: ep4, srcport: out0, dstblk: *demo0*, dstport: in }
- { srcblk: *demo0*, srcport: out, dstblk: ep4, dstport: in0 }
...
clk_domains:
- { srcblk: _device_, srcport: radio, dstblk: radio0, dstport: radio }
- { srcblk: _device_, srcport: ce, dstblk: ddc0, dstport: ce }
- { srcblk: _device_, srcport: ce, dstblk: duc0, dstport: ce }
- { srcblk: _device_, srcport: radio, dstblk: radio1, dstport: radio }
- { srcblk: _device_, srcport: ce, dstblk: ddc1, dstport: ce }
- { srcblk: _device_, srcport: ce, dstblk: duc1, dstport: ce }
- { srcblk: _device_, srcport: ce, dstblk: *demo0*, dstport: ce }
*demo.yml:*
schema: rfnoc_modtool_args
3 module_name: *demo*
4 version: 1.0
5 rfnoc_version: 1.0
6 chdr_width: 64
7 noc_id: *0x1000DE31*
8 makefile_srcs: "/home/wisp/rfnoc_ws/rfnoc-test/rfnoc/fpga/rfnoc_block_
*demo/*Makefile.srcs"
9
10 clocks:
11 - name: rfnoc_chdr
12 freq: "[]"
13 - name: rfnoc_ctrl
14 freq: "[]"
15 - name: ce
16 freq: "[]"
17
18 control:
19 sw_iface: nocscript
20 fpga_iface: ctrlport
21 interface_direction: slave
22 fifo_depth: 32
23 clk_domain: ce
24 ctrlport:
25 byte_mode: False
26 timed: False
27 has_status: False
28
29 data:
30 fpga_iface: axis_data
31 clk_domain: ce
32 inputs:
33 in:
34 item_width: 32
35 nipc: 1
36 info_fifo_depth: 32
37 payload_fifo_depth: 32
38 format: int32
39 mdata_sig: ~
40 outputs:
41 out:
42 item_width: 32
43 nipc: 1
44 info_fifo_depth: 32
45 payload_fifo_depth: 32
46 format: int32
47 mdata_sig: ~
Could you please help me to find the issue? I followed the UHD 4 guide and
started from scratch again to see I was missing something but I got the
same error.
Thanks
J
_______________________________________________
USRP-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]