Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
orchestrator
Commits
88088871
Commit
88088871
authored
Sep 20, 2019
by
Tiago Jorge
Browse files
Generate GRMON script to load bitfiles into the flash SPI.
parent
6633af60
Changes
1
Hide whitespace changes
Inline
Side-by-side
orchestrator/taste-orchestrator.py
View file @
88088871
...
...
@@ -2620,6 +2620,12 @@ struct config_bitfile {
int size;
};
'''
);
grmonScript
=
open
(
"loadBitfilesToSpi.gr"
,
"w"
)
grmonScript
.
write
(
'''grcg enable 9
spi set pm 2
spi flash detect
spi flash erase
'''
);
for
braveMakefile
in
os
.
popen
(
"find . -path *VHDL-DESIGN/design/Makefile*"
):
os
.
chdir
(
os
.
path
.
dirname
(
braveMakefile
))
...
...
@@ -2660,6 +2666,7 @@ struct config_bitfile bitfiles[] = {''');
else
:
bitFilesHeader
.
write
(
''',
"%s", globalFpgaStatus_%s, %s, %s'''
%
(
config
,
fBlockName
,
bitFileOffset
,
btfileSize
))
grmonScript
.
write
(
'''spi flash load ./GlueAndBuild/glue%s/TASTE-VHDL-DESIGN/design/bitfile-swapped.nxb %s
\n
'''
%
(
fBlockName
,
bitFileOffset
))
bitFileOffset
=
bitFileOffset
+
maxBitfileSize
os
.
chdir
(
savedDir
)
bitFilesHeader
.
write
(
'''
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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