Skip to content
Snippets Groups Projects
Commit a47c1f39 authored by Daniela Genius's avatar Daniela Genius
Browse files

bugfixes in syŚytemC-AMS code generation

parent 80cf419d
Branches
No related tags found
1 merge request!234New lip6
......@@ -152,7 +152,8 @@ public class PrimitiveCode {
// System.out.println("@@@@@ Conv ports non empty");
for (SysCAMSTPortConverter conv : convports) {
if(conv.getConvType() !="sc_uint") {
// if(conv.getConvType() !="sc_uint") {
if(conv.getNbits()==0){
if (conv.getOrigin() == 0) {
corpsPrimitiveTDF = corpsPrimitiveTDF + "\tsca_tdf::sca_de::sca_in <" + conv.getConvType()+"> " + conv.getName() + ";" + CR;
......@@ -471,6 +472,21 @@ public class PrimitiveCode {
if (!deports.isEmpty()) {
//System.out.println("@@@@@@@@@DE ports non empty");
for (SysCAMSTPortDE t : deports) {
if(t.getNbits()==0)
{ if (t.getOrigin() == 0) {
corpsPrimitiveDE = corpsPrimitiveDE + "\tsc_core::sc_in <" + t.getDEType() + ">" + t.getName() + ";" + CR;
//System.out.println("@@@@@@@@@2DE "+t.getDEType()+t.getNbits());
} else if (t.getOrigin() == 1) {
corpsPrimitiveDE = corpsPrimitiveDE + "\tsc_core::sc_out <" + t.getDEType() + "> "+ t.getName() + ";" + CR;
//System.out.println("@@@@@@@@@2DE "+t.getDEType()+t.getNbits());
}
}
else {
if (t.getOrigin() == 0) {
corpsPrimitiveDE = corpsPrimitiveDE + "\tsc_core::sc_in <" + t.getDEType() + "<"+t.getNbits()+"> >" + t.getName() + ";" + CR;
......@@ -480,6 +496,10 @@ public class PrimitiveCode {
//System.out.println("@@@@@@@@@2DE "+t.getDEType()+t.getNbits());
}
}
}
}
......
......@@ -150,7 +150,8 @@ public class PrimitiveCodeSoclib {
if (!convports.isEmpty()) {
for (SysCAMSTPortConverter conv : convports) {
if(conv.getConvType()!="sc_uint")
//if(conv.getConvType()!="sc_uint")
if(conv.getNbits()==0)
{
if (conv.getOrigin() == 0) {
......@@ -161,7 +162,8 @@ public class PrimitiveCodeSoclib {
}
}
else{ if (conv.getOrigin() == 0) {
else{
if (conv.getOrigin() == 0) {
corpsPrimitiveTDF = corpsPrimitiveTDF + "\tsca_tdf::sca_de::sca_in <" + conv.getConvType()+"<" + conv.getNbits()+"> > " + conv.getName() + ";" + CR;
} else if (conv.getOrigin() == 1) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment