-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bugs about enabling load/store on specific tiles in CGRA.cpp #22
Comments
The similar problems occur at CGRANode.cpp:409-424 bool CGRANode::enableFunctionality(string t_func) {
if (t_func.compare("store")) {
enableStore();
} else if (t_func.compare("load")) {
enableLoad();
} else if (t_func.compare("return")) {
enableReturn();
} else if (t_func.compare("call")) {
enableCall();
} else if (t_func.compare("complex")) {
enableComplex();
} else {
return false;
}
return true;
} It should be: bool CGRANode::enableFunctionality(string t_func) {
if (t_func.compare("store")==0) {
enableStore();
} else if (t_func.compare("load")==0) {
enableLoad();
} else if (t_func.compare("return")==0) {
enableReturn();
} else if (t_func.compare("call")==0) {
enableCall();
} else if (t_func.compare("complex")==0) {
enableComplex();
} else {
return false;
}
return true;
} |
Thanks @HobbitQia, can you please make a PR for this simple change? |
Ok, I have created a PR here. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In CGRA.cpp:104-141, the code enables the load/store on specific CGRA nodes based on param.json and in the code below we count nodes that we enable to perform load or store operations.
However, since
compare
method will return 0 if they compare equal, when the condition is true (i.e. The return value does not equal 0) in the if clause, the string in the item oft_additionalFunc
should be different from the string "store" or "load". In that case we should not increment the counterstoreCount
orloadCount
. The correct code should be:The text was updated successfully, but these errors were encountered: