mirror of
https://github.com/Minres/RDL-Editor.git
synced 2024-12-21 15:08:03 +01:00
adds offset to registerResources() function for simple regs (#6)
This commit is contained in:
parent
c6efe0f9d2
commit
13594cf149
@ -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»
|
||||
|
Loading…
Reference in New Issue
Block a user