2020年9月19日土曜日

xc7a200t & Digilent HS2 & urjtag & Vivado 2020.1

urjtagのビルド

libusb*, libftdi* をapt install。
pkg-config も apt install。無いと configureが libusbを見つけてくれない。
あと python3で何か必要だった。

configureは以下のようになる。
urjtag is now configured for


  Libraries:

    libusb     : 1.0

    libftdi    : yes (have async mode)

    libftd2xx  : no

    inpout32   : no


  Subsystems:

    SVF        : yes

    BSDL       : yes

    STAPL      : no


  Drivers:

    Bus        : ahbjtag arm9tdmi au1500 avr32 bcm1250 blackfin bscoach ejtag ejtag_dma fjmem ixp425 ixp435 ixp465 jopcyc h7202 lh7a400 mpc5200 mpc824x mpc8313 mpc837x ppc405ep ppc440gx_ebc8 prototype pxa2x0 pxa27x s3c4510 sa1110 sh7727 sh7750r sh7751r sharc_21065L sharc_21369_ezkit slsup3 tx4925 zefant_xs3 

    Cable      : arcom byteblaster dirtyjtag dlc5 ea253 ei012 ft2232 gpio ice100 igloo jlink keithkoep lattice mpcbdm triton usbblaster vsllink wiggler xpc 

    Lowlevel   : direct ftdi ppdev 


  Language bindings:

    python     : yes

 

Digilent HS2には、ここのパッチが使える。
https://sourceforge.net/p/urjtag/mailman/message/35914143/

以下の、xc7a100t用パッチを反映
https://sourceforge.net/p/urjtag/mailman/attachment/Pine.LNX.4.63.1406200909000.10245%40ariel.telltronics.org/1/
data/xilinx/xc7a100t -> data/xilinx/xc7a200t にコピー。

urjtagの実行例

jtag> cable probe
Found USB cable: DigilentHS2
Connected to libftdi driver.
jtag> idcode
Reading 0 bytes of idcode
Read 10010011(0x93) 01100000(0x60) 01100011(0x63) 00010011(0x13) 00000000(0x00) 00000000(0x00) 00000000(0x00) 00000000(0x00)
jtag> detect
IR length: 6
Chain length: 1
Device Id: 00010011011000110110000010010011 (0x13636093)
Manufacturer: Xilinx (0x093)
Part(0): xc7a200t (0x3636)
Stepping: 1
Filename: /usr/local/share/urjtag/xilinx/xc7a200t/xc7a100t-csg324

Vivado 2020.1 インストール

今 ubuntu18.04入れると、Ubuntu 18.04.5 LTS になるせいか、下のリンクのような羽目になる。対応方法もリンクの通りに。
https://forums.xilinx.com/t5/Installation-and-Licensing/Installation-of-Vivado-2020-1-under-Centos-7-8-fails/td-p/1115482