From d194867b19ff9758cca4d99e8535244c27bf3719 Mon Sep 17 00:00:00 2001 From: Pradeep2004 <78598837+Pradeep2004@users.noreply.github.com> Date: Fri, 30 Apr 2021 23:14:50 +0200 Subject: [PATCH] Create usb_connect.cfg --- doc/nativeJtag/usb_connect.cfg | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 doc/nativeJtag/usb_connect.cfg diff --git a/doc/nativeJtag/usb_connect.cfg b/doc/nativeJtag/usb_connect.cfg new file mode 100644 index 0000000..09b75df --- /dev/null +++ b/doc/nativeJtag/usb_connect.cfg @@ -0,0 +1,32 @@ +if [info exists env(SPINAL_SIM)] { + set SPINAL_SIM $::env(SPINAL_SIM) +} else { + set SPINAL_SIM no +} + + + +if {$SPINAL_SIM == "yes"} { + interface jtag_tcp + set _CHIPNAME fpga_spinal + set TAP_NAME $_CHIPNAME.bridge + set _CPUTAPID 0x10001fff + jtag newtap $_CHIPNAME bridge -expected-id $_CPUTAPID -irlen 4 -ircapture 0x1 -irmask 0xF + reset_config none + adapter_khz 50000 +} else { + interface ftdi + ftdi_device_desc "Digilent USB Device" + ftdi_vid_pid 0x0403 0x6010 + ftdi_channel 0 + ftdi_layout_init 0x00e8 0x60eb + ftdi_tdo_sample_edge falling + + reset_config none + adapter_khz 50000 + + source [find cpld/xilinx-xc7.cfg] + source [find cpld/jtagspi.cfg] + + set TAP_NAME xc7.tap +}