You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

34 lines
872 B

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