From d5644448b2f11b670b369924544b09a16b11f2f0 Mon Sep 17 00:00:00 2001 From: Andrea Enrici <andrea.enrici@nokia.com> Date: Fri, 27 Mar 2015 14:39:06 +0000 Subject: [PATCH] corrected buffer fields names --- src/tmltranslator/ctranslator/CwaMEC.java | 24 +++++++++++------------ src/tmltranslator/ctranslator/CwlMEC.java | 18 ++++++++--------- src/tmltranslator/ctranslator/CwmMEC.java | 18 ++++++++--------- src/tmltranslator/ctranslator/CwpMEC.java | 18 ++++++++--------- src/tmltranslator/ctranslator/FftMEC.java | 18 ++++++++--------- src/tmltranslator/ctranslator/SumMEC.java | 6 +++--- 6 files changed, 51 insertions(+), 51 deletions(-) diff --git a/src/tmltranslator/ctranslator/CwaMEC.java b/src/tmltranslator/ctranslator/CwaMEC.java index eb9950f89d..ccc4247dba 100644 --- a/src/tmltranslator/ctranslator/CwaMEC.java +++ b/src/tmltranslator/ctranslator/CwaMEC.java @@ -56,15 +56,15 @@ public class CwaMEC extends OperationMEC { name = "Component Wise Addition MEC"; exec_code = TAB + "/*firm instruction*/" + CR + TAB + "fep_set_l(&"+ _ctxName + ", ((FEP_BUFF_TYPE*)sig["+ ID0 + "].pBuff)->l);" + CR + TAB + - "fep_set_qx(&"+ _ctxName + ", ((FEP_BUFF_TYPE*)sig["+ ID0 + "].pBuff)->q);" + CR + TAB + - "fep_set_bx(&"+ _ctxName + ", sig["+ ID0 + "].roff + ((FEP_BUFF_TYPE*)sig["+ ID0 + "].pBuff)->b);" + CR + TAB + - "fep_set_tx(&"+ _ctxName + ", ((FEP_BUFF_TYPE*)sig["+ ID0 + "].pBuff)->t);" + CR + TAB + - "fep_set_qy(&"+ _ctxName + ", ((FEP_BUFF_TYPE*)sig["+ ID1 + "].pBuff)->q);" + CR + TAB + - "fep_set_by(&"+ _ctxName + ", sig["+ ID1 + "].roff + ((FEP_BUFF_TYPE*)sig["+ ID1 + "].pBuff)->b);" + CR + TAB + - "fep_set_ty(&"+ _ctxName + ", ((FEP_BUFF_TYPE*)sig["+ ID1 + "].pBuff)->t);" + CR + TAB + - "fep_set_qz(&"+ _ctxName + ", ((FEP_BUFF_TYPE*)sig["+ OD0 + "].pBuff)->q);" + CR + TAB + - "fep_set_bz(&"+ _ctxName + ", sig["+ OD0 + "].woff + ((FEP_BUFF_TYPE*)sig["+ OD0 + "].pBuff)->b);" + CR + TAB + - "fep_set_tz(&"+ _ctxName + ", ((FEP_BUFF_TYPE*)sig["+ OD0 + "].pBuff)->t);" + CR + TAB + + "fep_set_qx(&"+ _ctxName + ", ((FEP_BUFF_TYPE*)sig["+ ID0 + "].pBuff)->bank);" + CR + TAB + + "fep_set_bx(&"+ _ctxName + ", sig["+ ID0 + "].roff + ((FEP_BUFF_TYPE*)sig["+ ID0 + "].pBuff)->base_address);" + CR + TAB + + "fep_set_tx(&"+ _ctxName + ", ((FEP_BUFF_TYPE*)sig["+ ID0 + "].pBuff)->data_type);" + CR + TAB + + "fep_set_qy(&"+ _ctxName + ", ((FEP_BUFF_TYPE*)sig["+ ID1 + "].pBuff)->bank);" + CR + TAB + + "fep_set_by(&"+ _ctxName + ", sig["+ ID1 + "].roff + ((FEP_BUFF_TYPE*)sig["+ ID1 + "].pBuff)->base_address);" + CR + TAB + + "fep_set_ty(&"+ _ctxName + ", ((FEP_BUFF_TYPE*)sig["+ ID1 + "].pBuff)->data_type);" + CR + TAB + + "fep_set_qz(&"+ _ctxName + ", ((FEP_BUFF_TYPE*)sig["+ OD0 + "].pBuff)->bank);" + CR + TAB + + "fep_set_bz(&"+ _ctxName + ", sig["+ OD0 + "].woff + ((FEP_BUFF_TYPE*)sig["+ OD0 + "].pBuff)->base_address);" + CR + TAB + + "fep_set_tz(&"+ _ctxName + ", ((FEP_BUFF_TYPE*)sig["+ OD0 + "].pBuff)->data_type);" + CR + TAB + "/*start execution*/" + CR + TAB + "fep_start(&"+ _ctxName + ");" + CR; @@ -92,9 +92,9 @@ public class CwaMEC extends OperationMEC { "fep_set_vry(&"+ _ctxName + ", (uint64_t) /*USER TODO: value*/);" + CR + TAB + "fep_set_viy(&"+ _ctxName + ", (uint64_t) /*USER TODO: value*/);" + CR + TAB + "// Z vector addressing configuration" + CR + TAB + - "fep_set_qz(&"+ _ctxName + ", ((FEP_BUFF_TYPE*)sig["+ OD0 + "].pBuff)->q);" + CR + TAB + - "fep_set_bz(&"+ _ctxName + ", ((FEP_BUFF_TYPE*)sig["+ OD0 + "].pBuff)->b);" + CR + TAB + - "fep_set_tz(&"+ _ctxName + ", ((FEP_BUFF_TYPE*)sig["+ OD0 + "].pBuff)->t);" + CR + TAB + + "fep_set_qz(&"+ _ctxName + ", ((FEP_BUFF_TYPE*)sig["+ OD0 + "].pBuff)->bank);" + CR + TAB + + "fep_set_bz(&"+ _ctxName + ", ((FEP_BUFF_TYPE*)sig["+ OD0 + "].pBuff)->base_address);" + CR + TAB + + "fep_set_tz(&"+ _ctxName + ", ((FEP_BUFF_TYPE*)sig["+ OD0 + "].pBuff)->data_type);" + CR + TAB + "fep_set_wz(&"+ _ctxName + ", (uint64_t) /*USER TODO: value*/);" + CR + TAB + "fep_set_ri(&"+ _ctxName + ", (uint64_t) /*USER TODO: value*/);" + CR + TAB + "fep_set_sz(&"+ _ctxName + ", (uint64_t) /*USER TODO: value*/);" + CR + TAB + diff --git a/src/tmltranslator/ctranslator/CwlMEC.java b/src/tmltranslator/ctranslator/CwlMEC.java index a7ff507c04..9ebee05e77 100755 --- a/src/tmltranslator/ctranslator/CwlMEC.java +++ b/src/tmltranslator/ctranslator/CwlMEC.java @@ -56,12 +56,12 @@ public class CwlMEC extends OperationMEC { name = "Component Wise Lookup MEC"; exec_code = TAB + "/*firm instruction*/" + CR + TAB + "fep_set_l(&" + _ctxName + ", ((FEP_BUFF_TYPE*)sig[" + ID0 + "].pBuff)->l);" + CR + TAB + - "fep_set_qx(&" + _ctxName + ", ((FEP_BUFF_TYPE*)sig[" + ID0 + "].pBuff)->q);" + CR + TAB + - "fep_set_bx(&" + _ctxName + ", sig[" + ID0 + "].roff + ((FEP_BUFF_TYPE*)sig[" + ID0 + "].pBuff)->b);" + CR + TAB + - "fep_set_tx(&" + _ctxName + ", ((FEP_BUFF_TYPE*)sig[" + ID0 + "].pBuff)->t);" + CR + TAB + - "fep_set_qz(&" + _ctxName + ", ((FEP_BUFF_TYPE*)sig[" + OD0 + "].pBuff)->q);" + CR + TAB + - "fep_set_bz(&" + _ctxName + ", sig[" + OD0 + "].woff + ((FEP_BUFF_TYPE*)sig[" + OD0 + "].pBuff)->b);" + CR + TAB + - "fep_set_tz(&" + _ctxName + ", ((FEP_BUFF_TYPE*)sig[" + OD0 + "].pBuff)->t);" + CR + TAB + + "fep_set_qx(&" + _ctxName + ", ((FEP_BUFF_TYPE*)sig[" + ID0 + "].pBuff)->bank);" + CR + TAB + + "fep_set_bx(&" + _ctxName + ", sig[" + ID0 + "].roff + ((FEP_BUFF_TYPE*)sig[" + ID0 + "].pBuff)->base_address);" + CR + TAB + + "fep_set_tx(&" + _ctxName + ", ((FEP_BUFF_TYPE*)sig[" + ID0 + "].pBuff)->data_type);" + CR + TAB + + "fep_set_qz(&" + _ctxName + ", ((FEP_BUFF_TYPE*)sig[" + OD0 + "].pBuff)->bank);" + CR + TAB + + "fep_set_bz(&" + _ctxName + ", sig[" + OD0 + "].woff + ((FEP_BUFF_TYPE*)sig[" + OD0 + "].pBuff)->base_address);" + CR + TAB + + "fep_set_tz(&" + _ctxName + ", ((FEP_BUFF_TYPE*)sig[" + OD0 + "].pBuff)->data_type);" + CR + TAB + "/*start execution*/" + CR + TAB + "fep_start(&" + _ctxName + ");" + CR; @@ -91,9 +91,9 @@ public class CwlMEC extends OperationMEC { "fep_set_vry(&" + _ctxName + ", (uint64_t) /*USER TODO: value*/);" + CR + TAB + "fep_set_dy(&" + _ctxName + ", (uint64_t) /*USER TODO: value*/);" + CR + TAB + "// Z vector addressing configuration" + CR + TAB + - "fep_set_qz(&" + _ctxName + ", ((FEP_BUFF_TYPE*)sig[" + OD0 + "].pBuff)->q);" + CR + TAB + - "fep_set_bz(&" + _ctxName + ", ((FEP_BUFF_TYPE*)sig[" + OD0 + "].pBuff)->b);" + CR + TAB + - "fep_set_tz(&" + _ctxName + ", ((FEP_BUFF_TYPE*)sig[" + OD0 + "].pBuff)->t);" + CR + TAB + + "fep_set_qz(&" + _ctxName + ", ((FEP_BUFF_TYPE*)sig[" + OD0 + "].pBuff)->bank);" + CR + TAB + + "fep_set_bz(&" + _ctxName + ", ((FEP_BUFF_TYPE*)sig[" + OD0 + "].pBuff)->base_address);" + CR + TAB + + "fep_set_tz(&" + _ctxName + ", ((FEP_BUFF_TYPE*)sig[" + OD0 + "].pBuff)->data_type);" + CR + TAB + "fep_set_wz(&" + _ctxName + ", (uint64_t) /*USER TODO: value*/);" + CR + TAB + "fep_set_sz(&" + _ctxName + ", (uint64_t) /*USER TODO: value*/);" + CR + TAB + "fep_set_nz(&" + _ctxName + ", (uint64_t) /*USER TODO: value*/);" + CR + TAB + diff --git a/src/tmltranslator/ctranslator/CwmMEC.java b/src/tmltranslator/ctranslator/CwmMEC.java index 5216ad3de2..2bfd2061ec 100755 --- a/src/tmltranslator/ctranslator/CwmMEC.java +++ b/src/tmltranslator/ctranslator/CwmMEC.java @@ -56,12 +56,12 @@ public class CwmMEC extends OperationMEC { name = "Component Wise Multiplication MEC"; exec_code = TAB + "/*firm instruction*/" + CR + "fep_set_l(&" + _ctxName + ", ((FEP_BUFF_TYPE*)sig[" + ID0 + "].pBuff)->l);" + CR + - "fep_set_qx(&" + _ctxName + ", ((FEP_BUFF_TYPE*)sig[" + ID0 + "].pBuff)->q);" + CR + - "fep_set_bx(&" + _ctxName + ", sig[" + ID0 + "].roff + ((FEP_BUFF_TYPE*)sig[" + ID0 + "].pBuff)->b);" + CR + - "fep_set_tx(&" + _ctxName + ", ((FEP_BUFF_TYPE*)sig[" + ID0 + "].pBuff)->t);" + CR + - "fep_set_qz(&" + _ctxName + ", ((FEP_BUFF_TYPE*)sig[" + OD0 + "].pBuff)->q);" + CR + - "fep_set_bz(&" + _ctxName + ", sig[" + OD0 + "].woff + ((FEP_BUFF_TYPE*)sig[" + OD0 + "].pBuff)->b);" + CR + - "fep_set_tz(&" + _ctxName + ", ((FEP_BUFF_TYPE*)sig[" + OD0 + "].pBuff)->t);" + CR + + "fep_set_qx(&" + _ctxName + ", ((FEP_BUFF_TYPE*)sig[" + ID0 + "].pBuff)->bank);" + CR + + "fep_set_bx(&" + _ctxName + ", sig[" + ID0 + "].roff + ((FEP_BUFF_TYPE*)sig[" + ID0 + "].pBuff)->base_address);" + CR + + "fep_set_tx(&" + _ctxName + ", ((FEP_BUFF_TYPE*)sig[" + ID0 + "].pBuff)->data_type);" + CR + + "fep_set_qz(&" + _ctxName + ", ((FEP_BUFF_TYPE*)sig[" + OD0 + "].pBuff)->bank);" + CR + + "fep_set_bz(&" + _ctxName + ", sig[" + OD0 + "].woff + ((FEP_BUFF_TYPE*)sig[" + OD0 + "].pBuff)->base_address);" + CR + + "fep_set_tz(&" + _ctxName + ", ((FEP_BUFF_TYPE*)sig[" + OD0 + "].pBuff)->data_type);" + CR + "/*start execution*/" + CR + "fep_start(&" + _ctxName + ");" + CR; @@ -92,9 +92,9 @@ public class CwmMEC extends OperationMEC { "fep_set_vry(&" + _ctxName + ", (uint64_t) /*USER TODO: value*/);" + CR + TAB + "fep_set_dy(&" + _ctxName + ", (uint64_t) /*USER TODO: value*/);" + CR + TAB + "// Z vector addressing configuration" + CR + TAB + - "fep_set_qz(&" + _ctxName + ", ((FEP_BUFF_TYPE*)sig[" + OD0 + "].pBuff)->q);" + CR + TAB + - "fep_set_bz(&" + _ctxName + ", ((FEP_BUFF_TYPE*)sig[" + OD0 + "].pBuff)->b);" + CR + TAB + - "fep_set_tz(&" + _ctxName + ", ((FEP_BUFF_TYPE*)sig[" + OD0 + "].pBuff)->t);" + CR + TAB + + "fep_set_qz(&" + _ctxName + ", ((FEP_BUFF_TYPE*)sig[" + OD0 + "].pBuff)->bank);" + CR + TAB + + "fep_set_bz(&" + _ctxName + ", ((FEP_BUFF_TYPE*)sig[" + OD0 + "].pBuff)->base_address);" + CR + TAB + + "fep_set_tz(&" + _ctxName + ", ((FEP_BUFF_TYPE*)sig[" + OD0 + "].pBuff)->data_type);" + CR + TAB + "fep_set_wz(&" + _ctxName + ", (uint64_t) /*USER TODO: value*/);" + CR + TAB + "fep_set_ri(&" + _ctxName + ", (uint64_t) /*USER TODO: value*/);" + CR + TAB + "fep_set_sz(&" + _ctxName + ", (uint64_t) /*USER TODO: value*/);" + CR + TAB + diff --git a/src/tmltranslator/ctranslator/CwpMEC.java b/src/tmltranslator/ctranslator/CwpMEC.java index 277c6f1534..7ccfaa8296 100755 --- a/src/tmltranslator/ctranslator/CwpMEC.java +++ b/src/tmltranslator/ctranslator/CwpMEC.java @@ -56,12 +56,12 @@ public class CwpMEC extends OperationMEC { name = "Component Wise Product MEC"; exec_code = TAB + "/*firm instruction*/" + CR + TAB + "fep_set_l(&" + _ctxName + ", ((FEP_BUFF_TYPE*)sig[" + ID0 + "].pBuff)->l);" + CR + TAB + - "fep_set_qx(&" + _ctxName + ", ((FEP_BUFF_TYPE*)sig[" + ID0 + "].pBuff)->q);" + CR + TAB + - "fep_set_bx(&" + _ctxName + ", sig[" + ID0 + "].roff + ((FEP_BUFF_TYPE*)sig[" + ID0 + "].pBuff)->b);" + CR + TAB + - "fep_set_tx(&" + _ctxName + ", ((FEP_BUFF_TYPE*)sig[" + ID0 + "].pBuff)->t);" + CR + TAB + - "fep_set_qz(&" + _ctxName + ", ((FEP_BUFF_TYPE*)sig[" + OD0 + "].pBuff)->q);" + CR + TAB + - "fep_set_bz(&" + _ctxName + ", sig[" + OD0 + "].woff + ((FEP_BUFF_TYPE*)sig[" + OD0 + "].pBuff)->b);" + CR + TAB + - "fep_set_tz(&" + _ctxName + ", ((FEP_BUFF_TYPE*)sig[" + OD0 + "].pBuff)->t);" + CR + TAB + + "fep_set_qx(&" + _ctxName + ", ((FEP_BUFF_TYPE*)sig[" + ID0 + "].pBuff)->bank);" + CR + TAB + + "fep_set_bx(&" + _ctxName + ", sig[" + ID0 + "].roff + ((FEP_BUFF_TYPE*)sig[" + ID0 + "].pBuff)->base_address);" + CR + TAB + + "fep_set_tx(&" + _ctxName + ", ((FEP_BUFF_TYPE*)sig[" + ID0 + "].pBuff)->data_type);" + CR + TAB + + "fep_set_qz(&" + _ctxName + ", ((FEP_BUFF_TYPE*)sig[" + OD0 + "].pBuff)->bank);" + CR + TAB + + "fep_set_bz(&" + _ctxName + ", sig[" + OD0 + "].woff + ((FEP_BUFF_TYPE*)sig[" + OD0 + "].pBuff)->base_address);" + CR + TAB + + "fep_set_tz(&" + _ctxName + ", ((FEP_BUFF_TYPE*)sig[" + OD0 + "].pBuff)->data_type);" + CR + TAB + "/*start execution*/" + CR + TAB + "fep_start(&" + _ctxName + ");" + CR; @@ -91,9 +91,9 @@ public class CwpMEC extends OperationMEC { "fep_set_vry(&" + _ctxName + ", (uint64_t) /*USER TODO: value*/);" + CR + TAB + "fep_set_dy(&" + _ctxName + ", (uint64_t) /*USER TODO: value*/);" + CR + TAB + "// Z vector addressing configuration" + CR + TAB + - "fep_set_qz(&" + _ctxName + ", ((FEP_BUFF_TYPE*)sig[" + OD0 + "].pBuff)->q);" + CR + TAB + - "fep_set_bz(&" + _ctxName + ", ((FEP_BUFF_TYPE*)sig[" + OD0 + "].pBuff)->b);" + CR + TAB + - "fep_set_tz(&" + _ctxName + ", ((FEP_BUFF_TYPE*)sig[" + OD0 + "].pBuff)->t);" + CR + TAB + + "fep_set_qz(&" + _ctxName + ", ((FEP_BUFF_TYPE*)sig[" + OD0 + "].pBuff)->bank);" + CR + TAB + + "fep_set_bz(&" + _ctxName + ", ((FEP_BUFF_TYPE*)sig[" + OD0 + "].pBuff)->base_address);" + CR + TAB + + "fep_set_tz(&" + _ctxName + ", ((FEP_BUFF_TYPE*)sig[" + OD0 + "].pBuff)->data_type);" + CR + TAB + "fep_set_wz(&" + _ctxName + ", (uint64_t) /*USER TODO: value*/);" + CR + TAB + "fep_set_sz(&" + _ctxName + ", (uint64_t) /*USER TODO: value*/);" + CR + TAB + "fep_set_nz(&" + _ctxName + ", (uint64_t) /*USER TODO: value*/);" + CR + TAB + diff --git a/src/tmltranslator/ctranslator/FftMEC.java b/src/tmltranslator/ctranslator/FftMEC.java index f6b941f16d..8b830ac7a8 100644 --- a/src/tmltranslator/ctranslator/FftMEC.java +++ b/src/tmltranslator/ctranslator/FftMEC.java @@ -55,12 +55,12 @@ public class FftMEC extends OperationMEC { name = "Fast Fourier Transform MEC"; exec_code = TAB + "/*firm instruction*/" + CR + "fep_set_l(&" + _ctxName + ", ((FEP_BUFF_TYPE*)sig[" + ID0 + "].pBuff)->l);" + CR + TAB + - "fep_set_qx(&" + _ctxName + ", ((FEP_BUFF_TYPE*)sig[" + ID0 + "].pBuff)->q);" + CR + TAB + - "fep_set_bx(&" + _ctxName + ", sig[" + ID0 + "].roff + ((FEP_BUFF_TYPE*)sig[" + ID0 + "].pBuff)->b);" + CR + TAB + - "fep_set_tx(&" + _ctxName + ", ((FEP_BUFF_TYPE*)sig[" + ID0 + "].pBuff)->t);" + CR + TAB + - "fep_set_qz(&" + _ctxName + ", ((FEP_BUFF_TYPE*)sig[" + OD0 + "].pBuff)->q);" + CR + TAB + - "fep_set_bz(&" + _ctxName + ", sig[" + OD0 + "].woff + ((FEP_BUFF_TYPE*)sig[" + OD0 + "].pBuff)->b);" + CR + TAB + - "fep_set_tz(&" + _ctxName + ", ((FEP_BUFF_TYPE*)sig[" + OD0 + "].pBuff)->t);" + CR + TAB + + "fep_set_qx(&" + _ctxName + ", ((FEP_BUFF_TYPE*)sig[" + ID0 + "].pBuff)->bank);" + CR + TAB + + "fep_set_bx(&" + _ctxName + ", sig[" + ID0 + "].roff + ((FEP_BUFF_TYPE*)sig[" + ID0 + "].pBuff)->base_address);" + CR + TAB + + "fep_set_tx(&" + _ctxName + ", ((FEP_BUFF_TYPE*)sig[" + ID0 + "].pBuff)->data_type);" + CR + TAB + + "fep_set_qz(&" + _ctxName + ", ((FEP_BUFF_TYPE*)sig[" + OD0 + "].pBuff)->bank);" + CR + TAB + + "fep_set_bz(&" + _ctxName + ", sig[" + OD0 + "].woff + ((FEP_BUFF_TYPE*)sig[" + OD0 + "].pBuff)->base_address);" + CR + TAB + + "fep_set_tz(&" + _ctxName + ", ((FEP_BUFF_TYPE*)sig[" + OD0 + "].pBuff)->data_type);" + CR + TAB + "/*start execution*/" + CR + TAB + "fep_start(&" + _ctxName + ");" + CR; @@ -91,9 +91,9 @@ public class FftMEC extends OperationMEC { "fep_set_vry(&" + _ctxName + ", (uint64_t) /*USER TODO: value*/);" + CR + TAB + "fep_set_dy(&" + _ctxName + ", (uint64_t) /*USER TODO: value*/);" + CR + TAB + "// Z vector addressing configuration" + CR + TAB + - "fep_set_qz(&" + _ctxName + ", (uint64_t) ((FEP_BUFF_TYPE*)sig[" + OD0 + "].pBuff)->q);" + CR + TAB + - "fep_set_bz(&" + _ctxName + ", (uint64_t) ((FEP_BUFF_TYPE*)sig[" + OD0 + "].pBuff)->b);" + CR + TAB + - "fep_set_tz(&" + _ctxName + ", (uint64_t) ((FEP_BUFF_TYPE*)sig[" + OD0 + "].pBuff)->t);" + CR + TAB + + "fep_set_qz(&" + _ctxName + ", (uint64_t) ((FEP_BUFF_TYPE*)sig[" + OD0 + "].pBuff)->bank);" + CR + TAB + + "fep_set_bz(&" + _ctxName + ", (uint64_t) ((FEP_BUFF_TYPE*)sig[" + OD0 + "].pBuff)->base_address);" + CR + TAB + + "fep_set_tz(&" + _ctxName + ", (uint64_t) ((FEP_BUFF_TYPE*)sig[" + OD0 + "].pBuff)->data_type);" + CR + TAB + "fep_set_wz(&" + _ctxName + ", (uint64_t) /*USER TODO*/);" + CR + TAB + "fep_set_ri(&" + _ctxName + ", (uint64_t) /*USER TODO*/);" + CR + TAB + "fep_set_sz(&" + _ctxName + ", (uint64_t) /*USER TODO*/);" + CR + TAB + diff --git a/src/tmltranslator/ctranslator/SumMEC.java b/src/tmltranslator/ctranslator/SumMEC.java index 7e30455acf..5a54368bf8 100644 --- a/src/tmltranslator/ctranslator/SumMEC.java +++ b/src/tmltranslator/ctranslator/SumMEC.java @@ -54,7 +54,7 @@ public class SumMEC extends OperationMEC { public SumMEC( String _ctxName, String ID0, String OD0, String BTC ) { name = "Sum MEC"; exec_code = TAB + "/*firm instruction*/" + CR + TAB + - "fep_set_qx(&" + _ctxName + ", ((FEP_BUFF_TYPE*)sig[" + ID0 + "].pBuff)->q);" + CR + TAB + + "fep_set_qx(&" + _ctxName + ", ((FEP_BUFF_TYPE*)sig[" + ID0 + "].pBuff)->bank);" + CR + TAB + "/*start execution*/" + CR + TAB + "fep_start(&" + _ctxName + ");" + CR; @@ -79,8 +79,8 @@ public class SumMEC extends OperationMEC { "fep_set_vix(&" + _ctxName + ", (uint64_t) /* USER TODO: value */);" + CR + TAB + "// Operation configuration" + CR + TAB + "fep_set_sma(&" + _ctxName + ", (uint64_t) /* USER TODO: value */);" + CR + TAB + - "fep_set_qs(&" + _ctxName + ", ((FEP_BUFF_TYPE*)sig[" + OD0 + "].pBuff)->q);" + CR + TAB + - "fep_set_bs(&" + _ctxName + ", ((FEP_BUFF_TYPE*)sig[" + OD0 + "].pBuff)->b);" + CR + TAB + + "fep_set_qs(&" + _ctxName + ", ((FEP_BUFF_TYPE*)sig[" + OD0 + "].pBuff)->bank);" + CR + TAB + + "fep_set_bs(&" + _ctxName + ", ((FEP_BUFF_TYPE*)sig[" + OD0 + "].pBuff)->base_address);" + CR + TAB + "}" + CR; cleanup_code = "fep_ctx_cleanup(&" + _ctxName + ");"; } -- GitLab