snps_em_sk_fpga.cfg 870 B

123456789101112131415161718192021222324252627282930313233
  1. # SPDX-License-Identifier: GPL-2.0-or-later
  2. # Copyright (C) 2014-2015,2020 Synopsys, Inc.
  3. # Anton Kolesov <anton.kolesov@synopsys.com>
  4. # Didin Evgeniy <didin@synopsys.com>
  5. #
  6. # Xilinx Spartan-6 XC6SLX45 FPGA on EM Starter Kit v1.
  7. # Xilinx Spartan-6 XC6SLX150 FPGA on EM Starter Kit v2.
  8. #
  9. source [find cpu/arc/em.tcl]
  10. set _CHIPNAME arc-em
  11. set _TARGETNAME $_CHIPNAME.cpu
  12. # EM SK IDENTITY is 0x200444b1
  13. # EM SK v2 IDENTITY is 0x200044b1
  14. jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -expected-id 0x200444b1 \
  15. -expected-id 0x200044b1
  16. set _coreid 0
  17. set _dbgbase [expr {0x00000000 | ($_coreid << 13)}]
  18. target create $_TARGETNAME arcv2 -chain-position $_TARGETNAME \
  19. -coreid 0 -dbgbase $_dbgbase -endian little
  20. # There is no SRST, so do a software reset
  21. $_TARGETNAME configure -event reset-assert "arc_em_reset $_TARGETNAME"
  22. arc_em_init_regs
  23. # vim:ft=tcl