mirror of https://github.com/Minres/RDL-Editor.git
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/
|
||||
bin.includes = .,\
|
||||
META-INF/,\
|
||||
plugin.xml
|
||||
plugin.xml,\
|
||||
icons/
|
||||
bin.excludes = **/*.xtend
|
||||
|
|
|
@ -66,7 +66,7 @@ class RegfileGenerator extends RdlBaseGenerator{
|
|||
public sc_core::sc_module,
|
||||
public sysc::resetable
|
||||
{
|
||||
protected:
|
||||
public:
|
||||
// storage declarations
|
||||
«FOR cdef : componentDefinition.componentDefinitions»
|
||||
«IF cdef.type == ComponentDefinitionType.REG»
|
||||
|
@ -119,7 +119,6 @@ class RegfileGenerator extends RdlBaseGenerator{
|
|||
«ENDFOR»
|
||||
«ENDFOR»
|
||||
|
||||
public:
|
||||
«componentDefinition.name»(sc_core::sc_module_name nm);
|
||||
|
||||
template<unsigned BUSWIDTH=32>
|
||||
|
|
|
@ -138,7 +138,7 @@ public class RegfileGenerator extends RdlBaseGenerator {
|
|||
_builder.newLine();
|
||||
_builder.append("{");
|
||||
_builder.newLine();
|
||||
_builder.append("protected:");
|
||||
_builder.append("public:");
|
||||
_builder.newLine();
|
||||
_builder.append(" ");
|
||||
_builder.append("// storage declarations");
|
||||
|
@ -384,8 +384,6 @@ public class RegfileGenerator extends RdlBaseGenerator {
|
|||
}
|
||||
_builder.append(" ");
|
||||
_builder.newLine();
|
||||
_builder.append("public:");
|
||||
_builder.newLine();
|
||||
_builder.append(" ");
|
||||
String _name_8 = this.componentDefinition.getName();
|
||||
_builder.append(_name_8, " ");
|
||||
|
|
Loading…
Reference in New Issue