mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
add openFPGAloader programmer
This commit is contained in:
parent
9e07623b61
commit
f6e20700d4
1 changed files with 20 additions and 0 deletions
20
litex/build/openfpgaloader.py
Normal file
20
litex/build/openfpgaloader.py
Normal file
|
@ -0,0 +1,20 @@
|
|||
# This file is Copyright (c) 2020 Florent Kermarrec <florent@enjoy-digital.fr>
|
||||
# License: BSD
|
||||
|
||||
import subprocess
|
||||
|
||||
from litex.build.tools import write_to_file
|
||||
from litex.build.generic_programmer import GenericProgrammer
|
||||
|
||||
# openFPGAloader ------------------------------------------------------------------------------------------
|
||||
|
||||
class OpenFPGALoader(GenericProgrammer):
|
||||
needs_bitreverse = False
|
||||
|
||||
def __init__(self, board):
|
||||
self.board = board
|
||||
|
||||
def load_bitstream(self, bitstream_file):
|
||||
print(["openFPGALoader", "--board", self.board, bitstream_file])
|
||||
subprocess.call(["openFPGALoader", "--board", self.board, bitstream_file])
|
||||
print("done")
|
Loading…
Reference in a new issue