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
c51a0641
Commit
c51a0641
authored
6 years ago
by
whitequark
Browse files
Options
Download
Email Patches
Plain Diff
build/platforms/versaecp55g: allow programming without ispCLOCK in chain.
parent
34eeb3b9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
19 deletions
+22
-19
migen/build/platforms/versaecp55g.py
migen/build/platforms/versaecp55g.py
+22
-19
No files found.
migen/build/platforms/versaecp55g.py
View file @
c51a0641
...
@@ -86,24 +86,8 @@ class Platform(LatticePlatform):
...
@@ -86,24 +86,8 @@ class Platform(LatticePlatform):
except
ConstraintError
:
except
ConstraintError
:
pass
pass
def
create_programmer
(
self
):
def
create_programmer
(
self
,
with_ispclock
=
True
):
_xcf_template
=
"""
_xcf_ispclock
=
"""
<?xml version='1.0' encoding='utf-8' ?>
<!DOCTYPE ispXCF SYSTEM "IspXCF.dtd" >
<ispXCF version="3.4.1">
<Comment></Comment>
<Chain>
<Comm>JTAG</Comm>
<Device>
<SelectedProg value="TRUE"/>
<Pos>1</Pos>
<Vendor>Lattice</Vendor>
<Family>ECP5UM5G</Family>
<Name>LFE5UM5G-45F</Name>
<IDCode>0x81112043</IDCode>
<File>{bitstream_file}</File>
<Operation>Fast Program</Operation>
</Device>
<Device>
<Device>
<SelectedProg value="FALSE"/>
<SelectedProg value="FALSE"/>
<Pos>2</Pos>
<Pos>2</Pos>
...
@@ -119,6 +103,25 @@ class Platform(LatticePlatform):
...
@@ -119,6 +103,25 @@ class Platform(LatticePlatform):
<BScanVal>0</BScanVal>
<BScanVal>0</BScanVal>
</Bypass>
</Bypass>
</Device>
</Device>
"""
_xcf_template
=
"""
<?xml version='1.0' encoding='utf-8' ?>
<!DOCTYPE ispXCF SYSTEM "IspXCF.dtd" >
<ispXCF version="3.4.1">
<Comment></Comment>
<Chain>
<Comm>JTAG</Comm>
<Device>
<SelectedProg value="TRUE"/>
<Pos>1</Pos>
<Vendor>Lattice</Vendor>
<Family>ECP5UM5G</Family>
<Name>LFE5UM5G-45F</Name>
<IDCode>0x81112043</IDCode>
<File>{{bitstream_file}}</File>
<Operation>Fast Program</Operation>
</Device>{ispclock}
</Chain>
</Chain>
<ProjectOptions>
<ProjectOptions>
<Program>SEQUENTIAL</Program>
<Program>SEQUENTIAL</Program>
...
@@ -134,6 +137,6 @@ class Platform(LatticePlatform):
...
@@ -134,6 +137,6 @@ class Platform(LatticePlatform):
<USBID>LATTICE ECP5_5G VERSA BOARD A Location 0000 Serial Lattice ECP5_5G VERSA Board A</USBID>
<USBID>LATTICE ECP5_5G VERSA BOARD A Location 0000 Serial Lattice ECP5_5G VERSA Board A</USBID>
</CableOptions>
</CableOptions>
</ispXCF>
</ispXCF>
"""
"""
.
format
(
ispclock
=
_xcf_ispclock
if
with_ispclock
else
""
)
return
LatticeProgrammer
(
_xcf_template
)
return
LatticeProgrammer
(
_xcf_template
)
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