Commit c51a0641 authored by whitequark's avatar whitequark
Browse files

build/platforms/versaecp55g: allow programming without ispCLOCK in chain.

parent 34eeb3b9
...@@ -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)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment