Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
dmt
Commits
d0a3ab4f
Commit
d0a3ab4f
authored
Nov 21, 2018
by
Tiago Jorge
Browse files
Update use comma instead of underscore to separate FPGA configurations in IV.
parent
6f8a4727
Changes
1
Hide whitespace changes
Inline
Side-by-side
dmt/B_mappers/synchronousTool.py
View file @
d0a3ab4f
...
...
@@ -715,7 +715,7 @@ 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
(
' fConfig = strtok(fConfigList, "
_
");
\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
(
' // delegate to HW
\n
'
)
...
...
@@ -736,7 +736,7 @@ class SynchronousToolGlueGeneratorGeneric(Generic[TSource, TDestin]):
self
.
C_SourceFile
.
write
(
' // delegated to HW, return 0
\n
'
)
self
.
C_SourceFile
.
write
(
' return 0;
\n
'
)
self
.
C_SourceFile
.
write
(
' }
\n
'
)
self
.
C_SourceFile
.
write
(
' fConfig = strtok(NULL, "
_
");
\n
'
)
self
.
C_SourceFile
.
write
(
' fConfig = strtok(NULL, "
,
");
\n
'
)
self
.
C_SourceFile
.
write
(
' }
\n
'
)
self
.
C_SourceFile
.
write
(
' printf("[ <-?-> <-?-> <-?-> %s Dispatcher <-?-> <-?-> <-?-> ] Delegating to SW ...
\\
n");
\n
'
%
(
self
.
CleanNameAsADAWants
(
maybeFVname
)))
self
.
C_SourceFile
.
write
(
' // delegate to SW, return 1
\n
'
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment