mirror of
https://github.com/Minres/RDL-Editor.git
synced 2024-12-22 15:28:02 +01:00
Fixed build problem and adapted visibility in generated code
This commit is contained in:
parent
8a4469923a
commit
f950322d05
@ -3,5 +3,6 @@ source.. = src/,\
|
|||||||
xtend-gen/
|
xtend-gen/
|
||||||
bin.includes = .,\
|
bin.includes = .,\
|
||||||
META-INF/,\
|
META-INF/,\
|
||||||
plugin.xml
|
plugin.xml,\
|
||||||
|
icons/
|
||||||
bin.excludes = **/*.xtend
|
bin.excludes = **/*.xtend
|
||||||
|
@ -66,7 +66,7 @@ class RegfileGenerator extends RdlBaseGenerator{
|
|||||||
public sc_core::sc_module,
|
public sc_core::sc_module,
|
||||||
public sysc::resetable
|
public sysc::resetable
|
||||||
{
|
{
|
||||||
protected:
|
public:
|
||||||
// storage declarations
|
// storage declarations
|
||||||
«FOR cdef : componentDefinition.componentDefinitions»
|
«FOR cdef : componentDefinition.componentDefinitions»
|
||||||
«IF cdef.type == ComponentDefinitionType.REG»
|
«IF cdef.type == ComponentDefinitionType.REG»
|
||||||
@ -119,7 +119,6 @@ class RegfileGenerator extends RdlBaseGenerator{
|
|||||||
«ENDFOR»
|
«ENDFOR»
|
||||||
«ENDFOR»
|
«ENDFOR»
|
||||||
|
|
||||||
public:
|
|
||||||
«componentDefinition.name»(sc_core::sc_module_name nm);
|
«componentDefinition.name»(sc_core::sc_module_name nm);
|
||||||
|
|
||||||
template<unsigned BUSWIDTH=32>
|
template<unsigned BUSWIDTH=32>
|
||||||
|
@ -138,7 +138,7 @@ public class RegfileGenerator extends RdlBaseGenerator {
|
|||||||
_builder.newLine();
|
_builder.newLine();
|
||||||
_builder.append("{");
|
_builder.append("{");
|
||||||
_builder.newLine();
|
_builder.newLine();
|
||||||
_builder.append("protected:");
|
_builder.append("public:");
|
||||||
_builder.newLine();
|
_builder.newLine();
|
||||||
_builder.append(" ");
|
_builder.append(" ");
|
||||||
_builder.append("// storage declarations");
|
_builder.append("// storage declarations");
|
||||||
@ -384,8 +384,6 @@ public class RegfileGenerator extends RdlBaseGenerator {
|
|||||||
}
|
}
|
||||||
_builder.append(" ");
|
_builder.append(" ");
|
||||||
_builder.newLine();
|
_builder.newLine();
|
||||||
_builder.append("public:");
|
|
||||||
_builder.newLine();
|
|
||||||
_builder.append(" ");
|
_builder.append(" ");
|
||||||
String _name_8 = this.componentDefinition.getName();
|
String _name_8 = this.componentDefinition.getName();
|
||||||
_builder.append(_name_8, " ");
|
_builder.append(_name_8, " ");
|
||||||
|
Loading…
Reference in New Issue
Block a user