Skip to content

Commit 1398c5c

Browse files
add: miob.conf ecample for platform based fpgas
Example can use hw loopback. Signed-off-by: Pascal Bauer <[email protected]>
1 parent 76a4631 commit 1398c5c

File tree

2 files changed

+63
-0
lines changed

2 files changed

+63
-0
lines changed

etc/examples/nodes/fpga-miob.conf

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# SPDX-FileCopyrightText: 2025 Institute for Automation of Complex Power Systems, RWTH Aachen University
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
logging = {
5+
level = "info"
6+
}
7+
8+
fpgas = {
9+
zcu106 = {
10+
interface = "platform",
11+
ips = "../../fpga/zcu106-dino/zcu106-dino.json",
12+
#ignore_ips = ["dino_dinoif_dac_0", "dino_dinoif_fast_nologic_0"], # Optionally ignore IPs
13+
polling = true,
14+
}
15+
}
16+
17+
nodes = {
18+
fpga_0 = {
19+
type = "fpga",
20+
card = "zcu106"
21+
# connect = ["dino<->dma"] # Alternate HW Loopback
22+
connect = ["0<->dma"] # Loopback
23+
lowLatencyMode = false,
24+
},
25+
26+
signal_gen_0 = {
27+
type = "signal.v2",
28+
realtime = true,
29+
rate = 2,
30+
in = {
31+
signals = (
32+
{
33+
name = "sine.v2",
34+
signal = "sine",
35+
frequency = 0.1,
36+
amplitude = 10,
37+
}
38+
)
39+
},
40+
}
41+
}
42+
43+
paths = (
44+
{
45+
in = "signal_gen_0"
46+
out = "fpga_0"
47+
hooks = (
48+
{
49+
type = "print"
50+
})
51+
52+
},
53+
{
54+
in = "fpga_0"
55+
hooks = (
56+
{
57+
type = "print"
58+
}
59+
)
60+
}
61+
)
62+

tests/integration/test-config.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ CONFIGS=$(find ${SRCDIR}/etc/ -name '*.conf' -o -name '*.json')
1414
for CONFIG in ${CONFIGS}; do
1515
if [ "$(basename ${CONFIG})" == "opal.conf" ] ||
1616
[ "$(basename ${CONFIG})" == "fpga.conf" ] ||
17+
[ "$(basename ${CONFIG})" == "miob.conf" ] ||
1718
[ "$(basename ${CONFIG})" == "paths.conf" ] ||
1819
[ "$(basename ${CONFIG})" == "tricks.json" ] ||
1920
[ "$(basename ${CONFIG})" == "tricks.conf" ] ||

0 commit comments

Comments
 (0)