This patch adds support for manually adding parts to a chain. The command "addpart" takes the instruction register length as a parameter. BYPASS instruction (all ones) and BR register (length 1) are defined. The part id is a single zero.
After adding parts, the chain is run into BYPASS.
This patch is experimental. It allows, for example, the use of SVF files without running "detect". For example, the following magic programs a CPLD from a SVF file:
cable jtagkey ftdi-mpsse 0403:cff8
svf myfile.svf svf
The patch has been tested with Xilinx XC2C64A and Amontec JTAGkey. It has not been tested with a chain of more than one device.Any testing is highly appreciated!
The theory is that this command should allow adding any JTAG-compliant unknown device into the chain if its IR is known. After that all register and instruction descriptions can be added by hand, if required.