From: Matthew L. <li...@bu...> - 2012-03-14 10:11:04
|
Hi all, Attached is a patch that adds support of programming Xilinx Virtex6 devices to xc3sprog. Patch is based on r658 (current version I synced with this morning). Changes were minimal (as expected) however with the device I had (550T), I had to skip waiting for the reconfiguration step in ProgAlgXC3S::array_program(), ie skip doing: jtag->shiftIR(JPROGRAM, NULL); do jtag->shiftIR(CFG_IN, buf); while (! (buf[0] & 0x10)); /* wait until configuration cleared */ ..otherwise I waited forever. Not sure why this is. I think there's also a bug in function ProgAlgXC3S::flow_enable() too. A byte array of data[1] is shifted through shiftIR() 5 times but as data[] is only 1 byte in size and shiftIR() indexes into the pointer using i++, this will read uninitialised memory. I've switched it to use data[5] and memset it to zero before doing the shiftIR operation. As a side note, I'm also able to reliably program the device using my FTDI 4232 running at full speed (30MHz). This is faster than the Xilinx tools. Nice :-) Cheers, -- Matt |