Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: m-labs/migen
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0df9c16e69bc
Choose a base ref
...
head repository: m-labs/migen
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 73ea404380e4
Choose a head ref
  • 2 commits
  • 2 files changed
  • 2 contributors

Commits on Jul 5, 2015

  1. Verified

    This commit was signed with the committer’s verified signature.
    makenowjust Hiroya Fujinami
    Copy the full SHA
    1d1f851 View commit details
  2. Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    chris-huxtable Chris Huxtable
    Copy the full SHA
    73ea404 View commit details
Showing with 10 additions and 5 deletions.
  1. +1 −1 mibuild/platforms/m1.py
  2. +9 −4 mibuild/xilinx/programmer.py
2 changes: 1 addition & 1 deletion mibuild/platforms/m1.py
Original file line number Diff line number Diff line change
@@ -127,7 +127,7 @@ def __init__(self):
XilinxPlatform.__init__(self, "xc6slx45-fgg484-2", _io)

def create_programmer(self):
return UrJTAG("fjmem-m1.bit")
return UrJTAG(cable="milkymist", flash_proxy_basename="fjmem-m1.bit")

def do_finalize(self, fragment):
XilinxPlatform.do_finalize(self, fragment)
13 changes: 9 additions & 4 deletions mibuild/xilinx/programmer.py
Original file line number Diff line number Diff line change
@@ -15,25 +15,30 @@ def _run_urjtag(cmds):
class UrJTAG(GenericProgrammer):
needs_bitreverse = True

def __init__(self, cable, flash_proxy_basename=None):
GenericProgrammer.__init__(self, flash_proxy_basename)
self.cable = cable

def load_bitstream(self, bitstream_file):
cmds = """cable milkymist
cmds = """cable {cable}
detect
pld load {bitstream}
quit
""".format(bitstream=bitstream_file)
""".format(bitstream=bitstream_file, cable=self.cable)
_run_urjtag(cmds)

def flash(self, address, data_file):
flash_proxy = self.find_flash_proxy()
cmds = """cable milkymist
cmds = """cable {cable}
detect
pld load "{flash_proxy}"
initbus fjmem opcode=000010
frequency 6000000
detectflash 0
endian big
flashmem "{address}" "{data_file}" noverify
""".format(flash_proxy=flash_proxy, address=address, data_file=data_file)
""".format(flash_proxy=flash_proxy, address=address, data_file=data_file,
cable=self.cable)
_run_urjtag(cmds)