program-xpla3

CLI reference

glasgow run program-xpla3

Program, verify, and read out Xilinx XPLA3 series CPLD bitstreams via the JTAG interface.

Supported devices are:

  • xcr3032xl

  • xcr3064xl

  • xcr3128xl

  • xcr3256xl

  • xcr3384xl

  • xcr3512xl

Warning: programming SRAM directly will not set the initial register values correctly. Use this option at your own risk.

usage: glasgow run program-xpla3 [-h] [-V VOLTS] [--tck PIN] [--tms PIN]
                                 [--tdi PIN] [--tdo PIN] [--trst PIN]
                                 [-f FREQ] [--scan-ir-max-length LENGTH]
                                 [--scan-dr-max-length LENGTH]
                                 [--ir-lengths IR-LENGTH,...]
                                 [--tap-index INDEX]
                                 OPERATION ...
-h, --help

show this help message and exit

-V <volts>, --voltage <volts>

target power (voltage reference of the interface) (range: 1.8..5 V, or ‘S<port>’ to follow the voltage sensed on a port; default: unchanged)

--tck <pin>

bind test clock to PIN (default: ‘A0’, required)

--tms <pin>

bind test mode select to PIN (default: ‘A1’, required)

--tdi <pin>

bind test data in to PIN (default: ‘A2’, required)

--tdo <pin>

bind test data out to PIN (default: ‘A3’, required)

--trst <pin>

bind test reset (active low) to PIN (optional)

-f <freq>, --frequency <freq>

set TCK frequency to FREQ kHz (default: 100)

--scan-ir-max-length <length>

give up scanning IRs longer than LENGTH bits (default: 128)

--scan-dr-max-length <length>

give up scanning DRs longer than LENGTH bits (default: 1024)

--ir-lengths <ir-length,...>

set IR lengths of each TAP to corresponding IR-LENGTH (default: autodetect)

--tap-index <index>

select TAP #INDEX for communication (default: select only TAP)

glasgow run program-xpla3 erase

usage: glasgow run program-xpla3 erase [-h]
-h, --help

show this help message and exit

glasgow run program-xpla3 program

usage: glasgow run program-xpla3 program [-h] [--otf] [--erase] [--verify]
                                         [--read-protect] [--ues [UES]]
                                         [--ues-hex [UES_HEX]]
                                         JED-FILE
jed-file

JED file to read

-h, --help

show this help message and exit

--otf

use on-the-fly programming (keep device running)

--erase

erase before programming, if necessary

--verify

verify after programming

--read-protect

enable read protection

--ues <ues>

user electronic signature (ASCII)

--ues-hex <ues_hex>

user electronic signature (hex)

glasgow run program-xpla3 program-sram

usage: glasgow run program-xpla3 program-sram [-h] [--verify] JED-FILE
jed-file

JED file to read

-h, --help

show this help message and exit

--verify

verify after programming

glasgow run program-xpla3 read

usage: glasgow run program-xpla3 read [-h] [--otf] JED-FILE
jed-file

JED file to write

-h, --help

show this help message and exit

--otf

use on-the-fly programming (keep device running)

glasgow run program-xpla3 read-sram

usage: glasgow run program-xpla3 read-sram [-h] [--otf] JED-FILE
jed-file

JED file to write

-h, --help

show this help message and exit

--otf

use on-the-fly programming (keep device running)

glasgow run program-xpla3 verify

usage: glasgow run program-xpla3 verify [-h] [--otf] JED-FILE
jed-file

JED file to read

-h, --help

show this help message and exit

--otf

use on-the-fly programming (keep device running)