Commit c473790b authored by Tiago Jorge's avatar Tiago Jorge
Browse files

Add Brave 'AllModes' keyword meant for HW only blocks.

parent 8d82bf27
......@@ -763,9 +763,10 @@ class SynchronousToolGlueGeneratorGeneric(Generic[TSource, TDestin]):
self.C_SourceFile.write(' extern const char p_szGlobalState[];\n')
self.C_SourceFile.write(' char *fConfig;\n')
self.C_SourceFile.write(' char fConfigList[30] = "%s";\n' % (sp._fpgaConfigurations))
self.C_SourceFile.write(' char allModes[] = "AllModes";\n')
self.C_SourceFile.write(' fConfig = strtok(fConfigList, ",");\n')
self.C_SourceFile.write(' while( fConfig != NULL ) {\n')
self.C_SourceFile.write(' if(!strcmp(p_szGlobalState, fConfig)){\n')
self.C_SourceFile.write(' if(!strcmp(p_szGlobalState, fConfig) || !strcmp(allModes, fConfig)){\n')
self.C_SourceFile.write(' // delegate to HW\n')
self.C_SourceFile.write(' LOGDEBUG("[ <-?-> <-?-> <-?-> %s Dispatcher <-?-> <-?-> <-?-> ] Delegating to HW ... \\n");\n' % (self.CleanNameAsADAWants(maybeFVname)))
self.C_SourceFile.write(" if(%s_%s%s(" % (self.CleanNameAsADAWants(maybeFVname), self.CleanNameAsADAWants(sp._id), fpgaSuffix))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment