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
9f3064b0
Commit
9f3064b0
authored
6 years ago
by
Kenneth Ryerson
Committed by
whitequark
6 years ago
Browse files
Options
Download
Email Patches
Plain Diff
added support for Lattice UP5K device
parent
1caf61d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
migen/build/lattice/icestorm.py
migen/build/lattice/icestorm.py
+2
-1
No files found.
migen/build/lattice/icestorm.py
View file @
9f3064b0
...
...
@@ -157,12 +157,13 @@ class LatticeIceStormToolchain:
"lp8k"
:
[
"cm81"
,
"cm81:4k"
,
"cm121"
,
"cm121:4k"
,
"cm225"
,
"cm225:4k"
],
"hx8k"
:
[
"cb132"
,
"cb132:4k"
,
"tq144:4k"
,
"cm225"
,
"ct256"
],
"up5k"
:
[
"sg48"
],
}
(
family
,
series_size
,
package
)
=
device_str
.
split
(
"-"
)
if
family
not
in
[
"ice40"
]:
raise
ValueError
(
"Unknown device family"
)
if
series_size
not
in
[
"lp384"
,
"lp1k"
,
"hx1k"
,
"lp8k"
,
"hx8k"
]:
if
series_size
not
in
[
"lp384"
,
"lp1k"
,
"hx1k"
,
"lp8k"
,
"hx8k"
,
"up5k"
]:
raise
ValueError
(
"Invalid device series/size"
)
if
package
not
in
valid_packages
[
series_size
]:
raise
ValueError
(
"Invalid device package"
)
...
...
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