aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndré Apitzsch <andre.apitzsch@etit.tu-chemnitz.de>2021-12-08 17:22:42 +0100
committerAaron Rossetto <aaron.rossetto@ni.com>2022-02-24 13:33:22 -0600
commit0db4d4124f9eb6f14c89dc31104f273ae259c39c (patch)
treed463ca3e01c5731c55b10df4144592bcd29166cd
parent8b19791f37c56da57d3c901afc71d258bc84260d (diff)
downloaduhd-0db4d4124f9eb6f14c89dc31104f273ae259c39c.tar.gz
uhd-0db4d4124f9eb6f14c89dc31104f273ae259c39c.tar.bz2
uhd-0db4d4124f9eb6f14c89dc31104f273ae259c39c.zip
python: Read number of ports from grc file in image builder
-rw-r--r--host/python/uhd/imgbuilder/image_builder.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/host/python/uhd/imgbuilder/image_builder.py b/host/python/uhd/imgbuilder/image_builder.py
index 059d40599..9475ed84a 100644
--- a/host/python/uhd/imgbuilder/image_builder.py
+++ b/host/python/uhd/imgbuilder/image_builder.py
@@ -550,6 +550,10 @@ def convert_to_image_config(grc, grc_config_path):
result["noc_blocks"][block["name"]] = {
"block_desc": block["parameters"]["desc"]
}
+ if "nports" in block["parameters"]:
+ result["noc_blocks"][block["name"]]["parameters"] = {
+ "NUM_PORTS": block["parameters"]["nports"]
+ }
device_clocks = {
port["id"]: port for port in grc_blocks[device['id']]["outputs"]