Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Kestrel Collaboration
Kestrel LiteX
migen
Commits
f1410cfd
Commit
f1410cfd
authored
7 years ago
by
Florent Kermarrec
Browse files
Options
Download
Email Patches
Plain Diff
build/lattice/diamond: generate .jed file (used for flashing)
parent
34385047
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
migen/build/lattice/diamond.py
migen/build/lattice/diamond.py
+2
-0
No files found.
migen/build/lattice/diamond.py
View file @
f1410cfd
...
@@ -56,6 +56,7 @@ def _build_files(device, sources, vincpaths, build_name):
...
@@ -56,6 +56,7 @@ def _build_files(device, sources, vincpaths, build_name):
tcl
.
append
(
"prj_run Map -impl implementation"
)
tcl
.
append
(
"prj_run Map -impl implementation"
)
tcl
.
append
(
"prj_run PAR -impl implementation"
)
tcl
.
append
(
"prj_run PAR -impl implementation"
)
tcl
.
append
(
"prj_run Export -impl implementation -task Bitgen"
)
tcl
.
append
(
"prj_run Export -impl implementation -task Bitgen"
)
tcl
.
append
(
"prj_run Export -impl implementation -task Jedecgen"
)
tools
.
write_to_file
(
build_name
+
".tcl"
,
"
\n
"
.
join
(
tcl
))
tools
.
write_to_file
(
build_name
+
".tcl"
,
"
\n
"
.
join
(
tcl
))
...
@@ -67,6 +68,7 @@ def _run_diamond(build_name, source, ver=None):
...
@@ -67,6 +68,7 @@ def _run_diamond(build_name, source, ver=None):
tools
.
write_to_file
(
build_script_file
,
build_script_contents
)
tools
.
write_to_file
(
build_script_file
,
build_script_contents
)
r
=
subprocess
.
call
([
build_script_file
])
r
=
subprocess
.
call
([
build_script_file
])
shutil
.
copy
(
os
.
path
.
join
(
"implementation"
,
build_name
+
"_implementation.bit"
),
build_name
+
".bit"
)
shutil
.
copy
(
os
.
path
.
join
(
"implementation"
,
build_name
+
"_implementation.bit"
),
build_name
+
".bit"
)
shutil
.
copy
(
os
.
path
.
join
(
"implementation"
,
build_name
+
"_implementation.jed"
),
build_name
+
".jed"
)
else
:
else
:
raise
NotImplementedError
raise
NotImplementedError
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
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