Merge pull request #995 from david-sawatzke/ecpprog
Add ecpprog-based programmer for ecp5
This commit is contained in:
commit
20e910b836
|
@ -185,3 +185,18 @@ class EcpDapProgrammer(GenericProgrammer):
|
|||
"--freq", str(self.frequency_khz),
|
||||
bitstream_file
|
||||
])
|
||||
|
||||
# EcpprogProgrammer -------------------------------------------------------------------------------
|
||||
|
||||
class EcpprogProgrammer(GenericProgrammer):
|
||||
"""ecpprog allows you to program ECP5 FPGAs and attached SPI flash using FTDI based JTAG probes
|
||||
|
||||
You can get `ecpprog` here: https://github.com/gregdavill/ecpprog
|
||||
"""
|
||||
needs_bitreverse = False
|
||||
|
||||
def flash(self, address, bitstream_file):
|
||||
self.call(["ecpprog", "-o", str(address), bitstream_file])
|
||||
|
||||
def load_bitstream(self, bitstream_file):
|
||||
self.call(["ecpprog", "-S", bitstream_file])
|
||||
|
|
Loading…
Reference in New Issue