sayma_amc.cfg 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # SPDX-License-Identifier: GPL-2.0-or-later
  2. # Sayma AMC is an FPGA board for the µTCA AMC format
  3. # The board is open hardware (CERN OHL) and the gateware and software
  4. # running on it are open source (ARTIQ, LGPLv3+).
  5. #
  6. # https://github.com/m-labs/sinara/wiki/Sayma
  7. #
  8. # It contains a Xilinx Kintex Ultrascale 040 FPGA (xcku040).
  9. # There is a SCANSTA112SM JTAG router on the board which is configured to
  10. # automatically add devices to the JTAG svcan chain when they are added.
  11. # Sayma AMC is usually combined with Sayma RTM (rear transition module)
  12. # which features an Artix 7 FPGA.
  13. adapter driver ftdi
  14. ftdi device_desc "Quad RS232-HS"
  15. ftdi vid_pid 0x0403 0x6011
  16. ftdi channel 0
  17. # Use this to distinguish multiple boards by topology
  18. #adapter usb location 5:1
  19. # sampling on falling edge generally seems to work and accelerates things but
  20. # is not fully tested
  21. #ftdi tdo_sample_edge falling
  22. # EN_USB_JTAG on ADBUS7: out, high
  23. # USB_nTRST on ADBUS4: out, high, but R46 is DNP
  24. ftdi layout_init 0x0098 0x008b
  25. #ftdi layout_signal EN_USB -data 0x0080
  26. #ftdi layout_signal nTRST -data 0x0010
  27. reset_config none
  28. adapter speed 5000
  29. transport select jtag
  30. # Add the RTM Artix to the chain. Note that this changes the PLD numbering.
  31. # Unfortunately openocd TAPs can't be disabled after they have been added and
  32. # before `init`.
  33. #source [find cpld/xilinx-xc7.cfg]
  34. set CHIP XCKU040
  35. source [find cpld/xilinx-xcu.cfg]
  36. set XILINX_USER1 0x02
  37. set XILINX_USER2 0x03
  38. set JTAGSPI_IR $XILINX_USER1
  39. source [find cpld/jtagspi.cfg]
  40. flash bank xcu.spi1 jtagspi 0 0 0 0 xcu.proxy $XILINX_USER2