This is an automated email from Gerrit.

Robert Jordens ([email protected]) just uploaded a new patch set to Gerrit, 
which you can find at http://openocd.zylin.com/2849

-- gerrit

commit ef6ffea074f6402e67b1754056f3993ba8a5db43
Author: Robert Jordens <[email protected]>
Date:   Thu Jul 2 18:42:39 2015 -0600

    xilinx-series6: add cfg and special JTAG sequences
    
    The Series6 FPGAs from Xilinx (Spartan6, Virtex6) can
    targeted with the virtex2 pld driver. They do have special
    JTAG sequences to issue reloading of the bitstream.
    
    Change-Id: Ibe2837e94c798791bb7e696e67b93accceccb7b1
    Signed-off-by: Robert Jordens <[email protected]>

diff --git a/tcl/cpld/xilinx-series6.cfg b/tcl/cpld/xilinx-series6.cfg
new file mode 100644
index 0000000..d9ab850
--- /dev/null
+++ b/tcl/cpld/xilinx-series6.cfg
@@ -0,0 +1,36 @@
+if { [info exists CHIPNAME] } {
+       set _CHIPNAME $CHIPNAME
+} else {
+       set _CHIPNAME xc6s
+}
+
+set _CFG_IN 0x05
+set _JSHUTDOWN 0x0d
+set _JPROGRAM 0x0b
+set _JSTART 0x0c
+set _BYPASS 0x3f
+
+jtag newtap $_CHIPNAME fpga -irlen 6 -expected-id $FPGATAPID
+pld device virtex2 $_CHIPNAME.fpga
+
+proc fpga_program {} {
+       global _JSHUTDOWN _JPROGRAM _JSTART _BYPASS _CHIPNAME
+       irscan $_CHIPNAME.fpga $_JSHUTDOWN
+       irscan $_CHIPNAME.fpga $_JPROGRAM
+       irscan $_CHIPNAME.fpga $_JSTART
+       irscan $_CHIPNAME.fpga $_BYPASS
+}
+
+#xtp038 and xc3sprog approach
+proc fpga_program_iprog {} {
+       global _JSHUTDOWN _JSTART _BYPASS _CFG_IN _CHIPNAME
+       irscan $_CHIPNAME.fpga $_JSHUTDOWN
+       runtest 16
+       irscan $_CHIPNAME.fpga $_CFG_IN
+       # xtp038 IPROG 16bit flipped
+       drscan $_CHIPNAME.fpga 16 0xffff 16 0x9955 16 0x66aa 16 0x850c 16 
0x7000 16 0x0004
+       irscan $_CHIPNAME.fpga $_JSTART
+       runtest 32
+       irscan $_CHIPNAME.fpga $_BYPASS
+       runtest 1
+}

-- 

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to