aboutsummaryrefslogtreecommitdiffstats
path: root/host/examples/rfnoc-example/blocks
diff options
context:
space:
mode:
authorSugandha Gupta <sugandha.gupta@ettus.com>2019-10-15 11:52:46 -0700
committerMartin Braun <martin.braun@ettus.com>2019-11-26 12:21:32 -0800
commita801d6b046743140e9a50c7788dd17dd71f5540a (patch)
tree58d164e1b4cb2a8d871ca532287699f3912ae3d8 /host/examples/rfnoc-example/blocks
parent2a7e69d862f661075b98bab19e58d958c28a9af8 (diff)
downloaduhd-a801d6b046743140e9a50c7788dd17dd71f5540a.tar.gz
uhd-a801d6b046743140e9a50c7788dd17dd71f5540a.tar.bz2
uhd-a801d6b046743140e9a50c7788dd17dd71f5540a.zip
examples: Add example out-of-tree module for RFNoC modules
This subdirectory is its own, self-contained project. It is supposed to work against the UHD version it is shipped with. Co-Authored-By: Martin Braun <martin.braun@ettus.com> Co-Authored-By: Wade Fife <wade.fife@ni.com>
Diffstat (limited to 'host/examples/rfnoc-example/blocks')
-rw-r--r--host/examples/rfnoc-example/blocks/CMakeLists.txt17
-rw-r--r--host/examples/rfnoc-example/blocks/gain.yml51
2 files changed, 68 insertions, 0 deletions
diff --git a/host/examples/rfnoc-example/blocks/CMakeLists.txt b/host/examples/rfnoc-example/blocks/CMakeLists.txt
new file mode 100644
index 000000000..046af2265
--- /dev/null
+++ b/host/examples/rfnoc-example/blocks/CMakeLists.txt
@@ -0,0 +1,17 @@
+#
+# Copyright 2019 Ettus Research, a National Instruments Brand
+#
+# SPDX-License-Identifier: GPL-3.0-or-later
+#
+
+# Reminder: This won't auto-update when you add a file, you need to re-run CMake
+# to re-generate the glob. Or, you add the files directly into the install()
+# statement below.
+file(GLOB yml_files "*.yml")
+# List all header files here (UHD and GNU Radio)
+install(
+ FILES
+ ${yml_files}
+ DESTINATION ${PROJECT_DATA_DIR}/blocks
+ COMPONENT blocks
+)
diff --git a/host/examples/rfnoc-example/blocks/gain.yml b/host/examples/rfnoc-example/blocks/gain.yml
new file mode 100644
index 000000000..58172ae36
--- /dev/null
+++ b/host/examples/rfnoc-example/blocks/gain.yml
@@ -0,0 +1,51 @@
+schema: rfnoc_modtool_args
+module_name: gain
+version: 1.0
+rfnoc_version: 1.0
+chdr_width: 64
+noc_id: 0xB16
+
+clocks:
+ - name: rfnoc_chdr
+ freq: "[]"
+ - name: rfnoc_ctrl
+ freq: "[]"
+
+control:
+ sw_iface: nocscript
+ fpga_iface: ctrlport
+ interface_direction: slave
+ fifo_depth: 32
+ clk_domain: rfnoc_chdr
+ ctrlport:
+ byte_mode: False
+ timed: False
+ has_status: False
+
+data:
+ fpga_iface: axis_pyld_ctxt
+ clk_domain: rfnoc_chdr
+ inputs:
+ in:
+ index: 0
+ item_width: 32
+ nipc: 1
+ context_fifo_depth: 2
+ payload_fifo_depth: 2
+ format: int32
+ mdata_sig: ~
+ outputs:
+ out:
+ index: 0
+ item_width: 32
+ nipc: 1
+ context_fifo_depth: 2
+ payload_fifo_depth: 2
+ format: int32
+ mdata_sig: ~
+
+io_port:
+
+registers:
+
+properties: