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
3a84a8bf
Commit
3a84a8bf
authored
6 years ago
by
whitequark
Browse files
Options
Download
Email Patches
Plain Diff
build/lattice/diamond: only run Jedecgen for MachXO.
It does not exist for e.g. ECP.
parent
966781bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
migen/build/lattice/diamond.py
migen/build/lattice/diamond.py
+6
-1
No files found.
migen/build/lattice/diamond.py
View file @
3a84a8bf
...
...
@@ -14,6 +14,10 @@ from migen.build import tools
from
migen.build.lattice
import
common
def
_produces_jedec
(
device
):
return
device
.
startswith
(
"LCMX"
)
def
_format_constraint
(
c
):
if
isinstance
(
c
,
Pins
):
return
(
"LOCATE COMP "
,
" SITE "
+
"
\"
"
+
c
.
identifiers
[
0
]
+
"
\"
"
)
...
...
@@ -57,7 +61,8 @@ def _build_files(device, sources, vincpaths, build_name):
tcl
.
append
(
"prj_run Map -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 Jedecgen"
)
if
_produces_jedec
(
device
):
tcl
.
append
(
"prj_run Export -impl implementation -task Jedecgen"
)
tools
.
write_to_file
(
build_name
+
".tcl"
,
"
\n
"
.
join
(
tcl
))
...
...
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