From 13594cf1493ee6b2db4fc76d3c993abc5831350a Mon Sep 17 00:00:00 2001 From: Eyck Jentzsch Date: Thu, 5 Jan 2023 14:28:23 +0100 Subject: [PATCH] adds offset to registerResources() function for simple regs (#6) --- .../src/com/minres/rdl/generator/RegfileGenerator.xtend | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/com.minres.rdl.parent/com.minres.rdl/src/com/minres/rdl/generator/RegfileGenerator.xtend b/com.minres.rdl.parent/com.minres.rdl/src/com/minres/rdl/generator/RegfileGenerator.xtend index b5c833f..4080308 100644 --- a/com.minres.rdl.parent/com.minres.rdl/src/com/minres/rdl/generator/RegfileGenerator.xtend +++ b/com.minres.rdl.parent/com.minres.rdl/src/com/minres/rdl/generator/RegfileGenerator.xtend @@ -157,7 +157,7 @@ class RegfileGenerator extends RdlBaseGenerator{ «IF instantiation.componentDefinition.type == ComponentDefinitionType.REGFILE» i_«instance.name».registerResources(target, «instance.addressValue»UL+offset); «ELSEIF instantiation.componentDefinition.type == ComponentDefinitionType.REG» - target.addResource(«instance.name», «instance.addressValue»UL); + target.addResource(«instance.name», «instance.addressValue»UL+offset); «ENDIF» «ENDFOR» «ENDFOR»