aboutsummaryrefslogtreecommitdiffstats
path: root/host/utils/rfnoc
diff options
context:
space:
mode:
authorAlex Williams <alex.williams@ni.com>2019-09-24 13:51:25 -0700
committerMartin Braun <martin.braun@ettus.com>2019-11-26 12:21:31 -0800
commit28a1d079a7b2198096d665ee40c18b4cc1b748d2 (patch)
tree42f48560255bfc03ece020225dd9d99e0ab827f3 /host/utils/rfnoc
parentf5c06403041edeecd0c0d7078ccadb60e7c98838 (diff)
downloaduhd-28a1d079a7b2198096d665ee40c18b4cc1b748d2.tar.gz
uhd-28a1d079a7b2198096d665ee40c18b4cc1b748d2.tar.bz2
uhd-28a1d079a7b2198096d665ee40c18b4cc1b748d2.zip
images: Fix THIS_PORTID calculation to offset from num ctrl_seps
THIS_PORTID was calculating the block port ID via the number of SEPs in the design, but it should be smaller when not all SEPs have a ctrl port. This commit fixes that calculation.
Diffstat (limited to 'host/utils/rfnoc')
-rw-r--r--host/utils/rfnoc/templates/rfnoc_image_core.v.mako2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/utils/rfnoc/templates/rfnoc_image_core.v.mako b/host/utils/rfnoc/templates/rfnoc_image_core.v.mako
index 57b70ece3..fb3cb3d2e 100644
--- a/host/utils/rfnoc/templates/rfnoc_image_core.v.mako
+++ b/host/utils/rfnoc/templates/rfnoc_image_core.v.mako
@@ -131,7 +131,7 @@ module rfnoc_image_core #(
// Blocks
// ----------------------------------------------------
%for i, name in enumerate(config.noc_blocks):
-<%include file="/modules/rfnoc_block.v.mako" args="block_id=i + len(config.stream_endpoints) + 1, block_number=i, block_name=name, block=config.blocks[config.noc_blocks[name]['block_desc']], block_params=config.noc_blocks[name]['parameters']"/>
+<%include file="/modules/rfnoc_block.v.mako" args="block_id=i + len(ctrl_seps) + 1, block_number=i, block_name=name, block=config.blocks[config.noc_blocks[name]['block_desc']], block_params=config.noc_blocks[name]['parameters']"/>
%endfor
// ----------------------------------------------------