9
0
mirror of https://github.com/Minres/RDL-Editor.git synced 2025-01-11 06:11:31 +01:00

Fixed build problem and adapted visibility in generated code

This commit is contained in:
Eyck Jentzsch 2017-10-03 15:52:48 +02:00
parent 8a4469923a
commit f950322d05
3 changed files with 4 additions and 6 deletions
com.minres.rdl.parent
com.minres.rdl.ui
com.minres.rdl
src/com/minres/rdl/generator
xtend-gen/com/minres/rdl/generator

@ -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, " ");