From 22255af36eb6bcbbe951f13335a398d5ab846d73 Mon Sep 17 00:00:00 2001 From: Pascal Bauer Date: Thu, 26 Jun 2025 15:06:03 +0200 Subject: [PATCH 1/3] add: miob.conf ecample for platform based fpgas Example can use hw loopback. Signed-off-by: Pascal Bauer Signed-off-by: Steffen Vogel --- etc/examples/nodes/fpga-miob.conf | 62 +++++++++++++++++++++++++++++++ tests/integration/test-config.sh | 1 + 2 files changed, 63 insertions(+) create mode 100644 etc/examples/nodes/fpga-miob.conf diff --git a/etc/examples/nodes/fpga-miob.conf b/etc/examples/nodes/fpga-miob.conf new file mode 100644 index 000000000..381052533 --- /dev/null +++ b/etc/examples/nodes/fpga-miob.conf @@ -0,0 +1,62 @@ +# SPDX-FileCopyrightText: 2025 Institute for Automation of Complex Power Systems, RWTH Aachen University +# SPDX-License-Identifier: Apache-2.0 + +logging = { + level = "info" +} + +fpgas = { + zcu106 = { + interface = "platform", + ips = "../../fpga/zcu106-dino/zcu106-dino.json", + #ignore_ips = ["dino_dinoif_dac_0", "dino_dinoif_fast_nologic_0"], # Optionally ignore IPs + polling = true, + } +} + +nodes = { + fpga_0 = { + type = "fpga", + card = "zcu106" + # connect = ["dino<->dma"] # Alternate HW Loopback + connect = ["0<->dma"] # Loopback + lowLatencyMode = false, + }, + + signal_gen_0 = { + type = "signal.v2", + realtime = true, + rate = 2, + in = { + signals = ( + { + name = "sine.v2", + signal = "sine", + frequency = 0.1, + amplitude = 10, + } + ) + }, + } +} + +paths = ( + { + in = "signal_gen_0" + out = "fpga_0" + hooks = ( + { + type = "print" + }) + + }, + { + in = "fpga_0" + hooks = ( + { + type = "print" + } + ) + } +) + diff --git a/tests/integration/test-config.sh b/tests/integration/test-config.sh index d7786b989..155b2c5a3 100755 --- a/tests/integration/test-config.sh +++ b/tests/integration/test-config.sh @@ -15,6 +15,7 @@ for CONFIG in ${CONFIGS}; do if [ "$(basename ${CONFIG})" == "opal_orchestra.conf" ] || [ "$(basename ${CONFIG})" == "opal_async.conf" ] || [ "$(basename ${CONFIG})" == "fpga.conf" ] || + [ "$(basename ${CONFIG})" == "miob.conf" ] || [ "$(basename ${CONFIG})" == "paths.conf" ] || [ "$(basename ${CONFIG})" == "tricks.json" ] || [ "$(basename ${CONFIG})" == "tricks.conf" ] || From 373a9a5662b0a16eaba51fcf5460ae96cbab836e Mon Sep 17 00:00:00 2001 From: IgnoreWarnings <119685519+IgnoreWarnings@users.noreply.github.com> Date: Wed, 5 Nov 2025 17:40:20 +0100 Subject: [PATCH 2/3] fix: wrong config name in ignored configs Replace 'miob.conf' with 'fpga-miob.conf' in config checks. Signed-off-by: IgnoreWarnings <119685519+IgnoreWarnings@users.noreply.github.com> --- tests/integration/test-config.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/test-config.sh b/tests/integration/test-config.sh index 155b2c5a3..277c3a4ce 100755 --- a/tests/integration/test-config.sh +++ b/tests/integration/test-config.sh @@ -15,7 +15,7 @@ for CONFIG in ${CONFIGS}; do if [ "$(basename ${CONFIG})" == "opal_orchestra.conf" ] || [ "$(basename ${CONFIG})" == "opal_async.conf" ] || [ "$(basename ${CONFIG})" == "fpga.conf" ] || - [ "$(basename ${CONFIG})" == "miob.conf" ] || + [ "$(basename ${CONFIG})" == "fpga-miob.conf" ] || [ "$(basename ${CONFIG})" == "paths.conf" ] || [ "$(basename ${CONFIG})" == "tricks.json" ] || [ "$(basename ${CONFIG})" == "tricks.conf" ] || From fe51ca11199e3361682b624671d43dba3882056b Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Thu, 6 Nov 2025 09:41:54 +0100 Subject: [PATCH 3/3] fix(config): Fix end-of-file Signed-off-by: Steffen Vogel --- etc/examples/nodes/fpga-miob.conf | 1 - 1 file changed, 1 deletion(-) diff --git a/etc/examples/nodes/fpga-miob.conf b/etc/examples/nodes/fpga-miob.conf index 381052533..92337b200 100644 --- a/etc/examples/nodes/fpga-miob.conf +++ b/etc/examples/nodes/fpga-miob.conf @@ -59,4 +59,3 @@ paths = ( ) } ) -