adds offset to registerResources() function for simple regs (#6)

This commit is contained in:
Eyck Jentzsch 2023-01-05 14:28:23 +01:00
parent c6efe0f9d2
commit 13594cf149
1 changed files with 1 additions and 1 deletions

View File

@ -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»