Hello, here is a patch to add support for Xilinx Artix-7-100T FPGA. Tested OK on a Digilent Arty-A7 board.
Cheers, Jiri.
From e18169482ac8e82e5a5fdc99b7a0b4c5e54eeb7c Mon Sep 17 00:00:00 2001 From: Jiri Gaisler <[email protected]> Date: Wed, 23 Sep 2026 10:57:29 +0200 Subject: [PATCH] Support for Xilinx Artix-7 XC7A100T FPGA Successfully used to connect to Digilent Arty-A7-100T board. Use 'cable DigilentHS1 vid=0x0403 pid=0x6010 driver=ftdi-mpsse' to connect. --- urjtag/ChangeLog | 3 ++ urjtag/data/Makefile.am | 4 ++- urjtag/data/xilinx/xc7a100t/xc7a100t-csg324 | 4 +++ urjtag/src/pld/pld.c | 1 + urjtag/src/pld/xilinx.c | 31 +++++++++++++++++++++ urjtag/src/pld/xilinx.h | 20 +++++++++++++ 6 files changed, 62 insertions(+), 1 deletion(-) diff --git a/urjtag/ChangeLog b/urjtag/ChangeLog index f910d928..448aaacd 100644 --- a/urjtag/ChangeLog +++ b/urjtag/ChangeLog @@ -1,3 +1,6 @@ +2026-09-23 Jiri Gaisler <[email protected]> + * src/pld: Support for Xilinx Artix-7 XC7A100T + 2022-01-04 Teddy B <[email protected]> * Added Freescale device MPC5646 diff --git a/urjtag/data/Makefile.am b/urjtag/data/Makefile.am index a404d0e0..42531b4c 100644 --- a/urjtag/data/Makefile.am +++ b/urjtag/data/Makefile.am @@ -575,5 +575,7 @@ nobase_dist_pkgdata_DATA = \ xilinx/xc2vp4/STEPPINGS \ xilinx/xc2vp4/xc2vp4 \ xilinx/xc6slx150t/STEPPINGS \ - xilinx/xc6slx150t/xc6slx150t + xilinx/xc6slx150t/xc6slx150t \ + xilinx/xc7a100t/STEPPINGS \ + xilinx/xc7a100t/xc7a100t-csg324 diff --git a/urjtag/data/xilinx/xc7a100t/xc7a100t-csg324 b/urjtag/data/xilinx/xc7a100t/xc7a100t-csg324 index 088ffca2..ab73eef9 100644 --- a/urjtag/data/xilinx/xc7a100t/xc7a100t-csg324 +++ b/urjtag/data/xilinx/xc7a100t/xc7a100t-csg324 @@ -338,6 +338,10 @@ instruction SAMPLE/PRELOAD 000001 BSR instruction EXTEST 100110 BSR instruction BYPASS 111111 BYPASS instruction IDCODE 001001 DIR +instruction CFG_OUT 000100 BYPASS +instruction CFG_IN 000101 BYPASS +instruction JPROGRAM 001011 BYPASS +instruction JSTART 001100 BYPASS bit 0 C 1 * bit 1 O ? CCLK_E9 0 1 Z bit 2 I ? CCLK_E9 diff --git a/urjtag/src/pld/pld.c b/urjtag/src/pld/pld.c index 53cd1b53..e9e9c4dc 100644 --- a/urjtag/src/pld/pld.c +++ b/urjtag/src/pld/pld.c @@ -42,6 +42,7 @@ const urj_pld_driver_t * const urj_pld_drivers[] = { &urj_pld_xc3s_driver, &urj_pld_xc6s_driver, &urj_pld_xc4v_driver, + &urj_pld_xc7a_driver, NULL }; diff --git a/urjtag/src/pld/xilinx.c b/urjtag/src/pld/xilinx.c index 9527cef9..2b6ded9c 100644 --- a/urjtag/src/pld/xilinx.c +++ b/urjtag/src/pld/xilinx.c @@ -750,6 +750,26 @@ xlx_detect_xc6s (urj_pld_t *pld) } } +static int +xlx_detect_xc7a (urj_pld_t *pld) +{ + urj_part_t *part = pld->part; + uint32_t idcode; + uint32_t family; + + /* get fpga family from idcode */ + idcode = urj_tap_register_get_value (part->id); + family = (idcode >> 21) & 0x7f; + + switch (family) + { + case XILINX_FAMILY_XC7A: + return URJ_STATUS_OK; + default: + return URJ_STATUS_FAIL; + } +} + const urj_pld_driver_t urj_pld_xc3s_driver = { .name = N_("Xilinx Spartan 3 Family"), .detect = xlx_detect_xc3s, @@ -782,3 +802,14 @@ const urj_pld_driver_t urj_pld_xc4v_driver = { .write_register = xlx_write_register_xc4v, .register_width = 2, }; + +const urj_pld_driver_t urj_pld_xc7a_driver = { + .name = N_("Xilinx Artix 7 Family"), + .detect = xlx_detect_xc7a, + .print_status = xlx_print_status_xc4v, + .configure = xlx_configure, + .reconfigure = xlx_reconfigure, + .read_register = xlx_read_register_xc4v, + .write_register = xlx_write_register_xc4v, + .register_width = 2, +}; diff --git a/urjtag/src/pld/xilinx.h b/urjtag/src/pld/xilinx.h index 1949d01e..73b0d8e8 100644 --- a/urjtag/src/pld/xilinx.h +++ b/urjtag/src/pld/xilinx.h @@ -37,6 +37,7 @@ #define XILINX_XC3S_REG_STAT 8 #define XILINX_XC4V_REG_STAT 7 #define XILINX_XC6S_REG_STAT 8 +#define XILINX_XC7A_REG_STAT 7 #define XILINX_FAMILY_XC2V 0x08 #define XILINX_FAMILY_XC3S 0x0A @@ -53,6 +54,7 @@ #define XILINX_FAMILY_XC5CFXT 0x19 #define XILINX_FAMILY_XC5CTXT 0x22 #define XILINX_FAMILY_XC6S 0x20 +#define XILINX_FAMILY_XC7A 0x1B #define XC3S_STATUS_SYNC_TIMEOUT URJ_BIT(15) #define XC3S_STATUS_SEU_ERR URJ_BIT(14) @@ -105,9 +107,27 @@ #define XC6S_STATUS_ID_ERROR URJ_BIT(1) #define XC6S_STATUS_CRC_ERROR URJ_BIT(0) +#define XC7A_STATUS_DEC_ERROR URJ_BIT(16) +#define XC7A_STATUS_ID_ERROR URJ_BIT(15) +#define XC7A_STATUS_DONE URJ_BIT(14) +#define XC7A_STATUS_RELEASE_DONE URJ_BIT(13) +#define XC7A_STATUS_INIT_B URJ_BIT(12) +#define XC7A_STATUS_MODE_M2 URJ_BIT(10) +#define XC7A_STATUS_MODE_M1 URJ_BIT(9) +#define XC7A_STATUS_MODE_M0 URJ_BIT(8) +#define XC7A_STATUS_GHIGH_B URJ_BIT(7) +#define XC7A_STATUS_GWE URJ_BIT(6) +#define XC7A_STATUS_GTS_CFG_B URJ_BIT(5) +#define XC7A_STATUS_EOS URJ_BIT(5) +#define XC7A_STATUS_DCI_MATCH URJ_BIT(3) +#define XC7A_STATUS_DCM_LOCK URJ_BIT(2) +#define XC7A_STATUS_PART_SECURED URJ_BIT(1) +#define XC7A_STATUS_CRC_ERROR URJ_BIT(0) + extern const urj_pld_driver_t urj_pld_xc3s_driver; extern const urj_pld_driver_t urj_pld_xc6s_driver; extern const urj_pld_driver_t urj_pld_xc4v_driver; +extern const urj_pld_driver_t urj_pld_xc7a_driver; typedef struct { char *design; -- 2.34.1
_______________________________________________ UrJTAG-development mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/urjtag-development
