aboutsummaryrefslogtreecommitdiffstats
path: root/host/examples/rfnoc-example/blocks
diff options
context:
space:
mode:
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: