diff options
author | André Apitzsch <andre.apitzsch@etit.tu-chemnitz.de> | 2021-12-08 17:22:42 +0100 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2022-02-24 13:33:22 -0600 |
commit | 0db4d4124f9eb6f14c89dc31104f273ae259c39c (patch) | |
tree | d463ca3e01c5731c55b10df4144592bcd29166cd /host/python | |
parent | 8b19791f37c56da57d3c901afc71d258bc84260d (diff) | |
download | uhd-0db4d4124f9eb6f14c89dc31104f273ae259c39c.tar.gz uhd-0db4d4124f9eb6f14c89dc31104f273ae259c39c.tar.bz2 uhd-0db4d4124f9eb6f14c89dc31104f273ae259c39c.zip |
python: Read number of ports from grc file in image builder
Diffstat (limited to 'host/python')
-rw-r--r-- | host/python/uhd/imgbuilder/image_builder.py | 4 |
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"] |